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.
This commit is contained in:
teor 2020-08-06 17:44:19 +10:00 committed by Deirdre Connolly
parent 3de99bd360
commit 62225653f0
1 changed files with 1 additions and 1 deletions

View File

@ -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
}
};
}