We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d8dff9 commit 7de7527Copy full SHA for 7de7527
lightning-transaction-sync/tests/integration_tests.rs
@@ -67,6 +67,9 @@ fn wait_for_block(min_height: usize) {
67
let mut header = match get_electrsd().client.block_headers_subscribe() {
68
Ok(header) => header,
69
Err(_) => {
70
+ // While subscribing should succeed the first time around, we ran into some cases where
71
+ // it didn't. Since we can't proceed without subscribing, we try again after a delay
72
+ // and panic if it still fails.
73
std::thread::sleep(Duration::from_secs(3));
74
get_electrsd().client.block_headers_subscribe().expect("failed to subscribe to block headers")
75
}
0 commit comments