Skip to content

Commit d08d51e

Browse files
committed
fix(cli): mine 10 blocks early to unblock lightwalletd startup deadlock
1 parent d953862 commit d08d51e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

cli/src/commands/up.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,12 @@ pub async fn execute(backend: String, fresh: bool, timeout: u64, action_mode: bo
127127
sleep(Duration::from_secs(2)).await;
128128
}
129129

130+
// Mine 10 blocks immediately to unblock Lightwalletd's block wait loop
131+
println!("Mining 10 initial blocks to unblock backend indexers...");
132+
if let Err(e) = mine_additional_blocks(10).await {
133+
println!(" Warning: Could not mine 10 blocks immediately: {}", e);
134+
}
135+
130136
// Wait for Sync Node
131137
println!("Waiting for Zebra Sync node to initialize and peer...");
132138
let mut last_error_sync = String::new();

0 commit comments

Comments
 (0)