From 62225653f0df4919f1bda377e8449611de1f33e0 Mon Sep 17 00:00:00 2001 From: teor Date: Thu, 6 Aug 2020 17:44:19 +1000 Subject: [PATCH] fix: Reduce the previous block waiting time Reduce the amount of time that the block verifier waits for the previous block, before polling again. (Waiting for 2 seconds resulted in some apparent block verifier hangs.) This is a temporary fix, until the state layer handles context checks. --- zebra-consensus/src/block.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zebra-consensus/src/block.rs b/zebra-consensus/src/block.rs index 3cae2e52..5890cb86 100644 --- a/zebra-consensus/src/block.rs +++ b/zebra-consensus/src/block.rs @@ -185,7 +185,7 @@ where // - Replace with AddBlock constraints None => { tracing::debug!(?height, ?hash, "Waiting for state to have block"); - time::delay_for(Duration::from_secs(2)).await + time::delay_for(Duration::from_millis(50)).await } }; }