Slightly less brokenness

Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
This commit is contained in:
Jacinta Ferrant
2024-04-12 13:20:03 -07:00
committed by jferrant
parent 6be9343a15
commit 00006c62e8

View File

@@ -549,8 +549,10 @@ impl BlockMinerThread {
#[cfg(test)]
{
if TEST_BROADCAST_STALL.lock().unwrap().is_some() {
warn!("Broadcasting is stalled due to testing directive.");
while *TEST_BROADCAST_STALL.lock().unwrap() != Some(true) {
warn!("Broadcasting is stalled due to testing directive.";
"block_id" => %block.block_id()
);
while *TEST_BROADCAST_STALL.lock().unwrap() == Some(true) {
std::thread::sleep(std::time::Duration::from_millis(10));
}
}