未验证 提交 f259c245 编写于 作者: A arhag 提交者: GitHub

Merge branch 'master' into 3343-validate-configuration

......@@ -47,10 +47,7 @@ namespace eosiosystem {
if( timestamp.slot - _gstate.last_producer_schedule_update.slot > 120 ) {
update_elected_producers( timestamp );
print( "maybe update bids \n" );
if( (timestamp.slot - _gstate.last_name_close.slot) > blocks_per_day ) {
print( "update bids" );
name_bid_table bids(_self,_self);
auto idx = bids.get_index<N(highbid)>();
auto highest = idx.begin();
......
......@@ -84,7 +84,7 @@ namespace eosiosystem {
_producers.modify( *it, 0, [&](auto& p) {
p.time_became_active = block_time;
});
} else if ( block_time.slot > 2 * 21 * 12 + it->time_became_active.slot &&
} else if ( block_time.slot > (2 * 21 * 12 * 100) + it->time_became_active.slot &&
block_time.slot > it->last_produced_block_time.slot + blocks_per_day ) {
_producers.modify( *it, 0, [&](auto& p) {
p.producer_key = public_key();
......
......@@ -294,9 +294,7 @@ namespace eosio { namespace testing {
_start_block(control->head_block_time() + fc::microseconds(config::block_interval_us));
auto c = packed_transaction::none;
if( fc::raw::pack_size(trx) > 1000 )
{
wdump((fc::raw::pack_size(trx)));
if( fc::raw::pack_size(trx) > 1000 ) {
c = packed_transaction::zlib;
}
......
......@@ -1576,7 +1576,7 @@ BOOST_FIXTURE_TEST_CASE(multiple_producer_pay, eosio_system_tester, * boost::uni
// re-register deactivated producer and let him produce blocks again
const uint32_t initial_unpaid_blocks = inactive_prod_info["unpaid_blocks"].as<uint32_t>();
regproducer(producer_names[one_inactive_index]);
produce_blocks(21 * 12);
produce_blocks(21 * 12 * 100);
auto reactivated_prod_info = get_producer_info(producer_names[one_inactive_index]);
const uint32_t unpaid_blocks = reactivated_prod_info["unpaid_blocks"].as<uint32_t>();
BOOST_REQUIRE(initial_unpaid_blocks + 12 <= unpaid_blocks);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册