Increase block creation timeout to 2500ms
This commit is contained in:
parent
075710ddc5
commit
e01e66f774
1 changed files with 2 additions and 2 deletions
|
|
@ -206,7 +206,7 @@ block_production_condition::block_production_condition_enum witness_plugin::bloc
|
||||||
("n", capture["n"])("t", capture["t"])("c", capture["c"]));
|
("n", capture["n"])("t", capture["t"])("c", capture["c"]));
|
||||||
break;
|
break;
|
||||||
case block_production_condition::lag:
|
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;
|
break;
|
||||||
case block_production_condition::consecutive:
|
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.");
|
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.");
|
||||||
|
|
@ -286,7 +286,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.
|
// 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);
|
capture("scheduled_time", scheduled_time)("now", now);
|
||||||
return block_production_condition::lag;
|
return block_production_condition::lag;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue