Fix witness block production failure on block 1; resolve #163
This commit is contained in:
parent
d9855f9023
commit
46f35d0f89
1 changed files with 3 additions and 3 deletions
|
|
@ -39,10 +39,10 @@ void database::update_global_dynamic_data( const signed_block& b )
|
|||
const auto& global_props = get_global_properties();
|
||||
auto delta_time = b.timestamp - _dgp.time;
|
||||
auto missed_blocks = (delta_time.to_seconds() / global_props.parameters.block_interval) - 1;
|
||||
if( _dgp.head_block_number == 0 )
|
||||
missed_blocks = 0;
|
||||
|
||||
//
|
||||
// dynamic global properties updating
|
||||
//
|
||||
modify( _dgp, [&]( dynamic_global_property_object& dgp ){
|
||||
secret_hash_type::encoder enc;
|
||||
fc::raw::pack( enc, dgp.random );
|
||||
|
|
|
|||
Loading…
Reference in a new issue