-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Improve IBD check #45
Comments
This is happening because bitcoind considers itself in IBD when no new blocks were received for more than I'm not sure what's the right way to handle this. We could check for electrs is also using One option that seems safe is keeping the current check for non-regtest chains, and using |
I went ahead and implemented that in 49dc380. @justinmoon Can you confirm this works for you as intended? |
Thanks @romanz! |
I haven't tested this, but I wrote the exact same code locally a few days ago and it fixed it. This looks good. |
With the following regtest
getblockchaininfo
result bwt gets stuck at this loop. I don't know why Bitcoin Core is reportinginitialblockdownload
astrue
... perhaps we should just compareblocks
andheaders
ourselves? Although that could be prone to error the moment the node starts up and hasn't fetched new headers yet.The text was updated successfully, but these errors were encountered: