Skip to content

Commit

Permalink
Merge pull request #97 from peerplays-network/feature/GRPH-61
Browse files Browse the repository at this point in the history
Increase block creation timeout to 2500ms
  • Loading branch information
bobinson authored Sep 2, 2019
2 parents e44b04d + 11cf55c commit cdc89c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/plugins/witness/witness.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ block_production_condition::block_production_condition_enum witness_plugin::bloc
("n", capture["n"])("t", capture["t"])("c", capture["c"]));
break;
case block_production_condition::lag:
elog("Not producing block because node didn't wake up within 500ms of the slot time.");
elog("Not producing block because node didn't wake up within 2500ms of the slot time.");
break;
case block_production_condition::consecutive:
elog("Not producing block because the last block was generated by the same witness.\nThis node is probably disconnected from the network so block production has been disabled.\nDisable this check with --allow-consecutive option.");
Expand Down Expand Up @@ -291,7 +291,7 @@ block_production_condition::block_production_condition_enum witness_plugin::mayb
// return block_production_condition::local_clock; //Not producing block because head block is less than a second old.
//}

if( llabs((scheduled_time - now).count()) > fc::milliseconds( 500 ).count() )
if( llabs((scheduled_time - now).count()) > fc::milliseconds( 2500 ).count() )
{
capture("scheduled_time", scheduled_time)("now", now);
return block_production_condition::lag;
Expand Down

0 comments on commit cdc89c1

Please sign in to comment.