From d8136b7afdcd25847fde216b8d8f9a1325f8c0de Mon Sep 17 00:00:00 2001 From: Abit Date: Fri, 17 Aug 2018 22:23:07 +0200 Subject: [PATCH] Changed block producing timeout to 2500 ms (#1157) --- libraries/plugins/witness/witness.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/plugins/witness/witness.cpp b/libraries/plugins/witness/witness.cpp index 29c6191b8b..b018a47619 100644 --- a/libraries/plugins/witness/witness.cpp +++ b/libraries/plugins/witness/witness.cpp @@ -194,7 +194,7 @@ block_production_condition::block_production_condition_enum witness_plugin::bloc elog("Not producing block because node appears to be on a minority fork with only ${pct}% witness participation", (capture) ); 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."); @@ -266,7 +266,7 @@ block_production_condition::block_production_condition_enum witness_plugin::mayb return block_production_condition::low_participation; } - 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;