-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: make sbtc funding on devnet more robust #1702
Conversation
Codecov ReportAttention: Patch coverage is
📢 Thoughts on this report? Let us know! |
@@ -817,14 +815,23 @@ fn fund_genesis_account( | |||
|
|||
let _ = hiro_system_kit::thread_named("sBTC funding handler").spawn(move || { | |||
while !boot_completed_moved.load(Ordering::SeqCst) { | |||
std::thread::sleep(std::time::Duration::from_secs(1)); | |||
std::thread::sleep(std::time::Duration::from_secs(3)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is probably not bullet prof, but I found 3 seconds to work reliably
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Description
The previous logic was picking an arbitrary bitcoin block as an argument to pass to the mint call.
It was very likely that whatever this height was, it was skipped (because a lot of bitcoin blocks are skipped around epoch 3.0 switch).
The PR just takes the latest bitcoin block, instead of an arbitrary one