-
Notifications
You must be signed in to change notification settings - Fork 213
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
NBX stops syncing: "Node disconnected for reason: Not sending headers first anymore " #461
Comments
Some more info. This happens during reorgs. I have a test that does the following:
Step 6 is to simulate a reorg from B1'-B3' to B1-B4. |
This is probably a duplicate of #409 |
I can reproduce with your instructions. Two issues at play here:
Since it is easy to reproduce, I should be able to fix it today. |
I get the same functional behaviour when step 2 builds 2 blocks and step 5 builds 1 block (ie nbx seemingly stops syncing), but the messages:
won't appear. It looks like this.
It hangs here. |
fixed in v2.5.1 |
2.5.1 certainly fixes this issue. Great. But thinking more about it, it's just when we do So it might be that this was strictly an academic issue that will never occur in real world, in which case I'm sorry for wasting your time. |
Also, this was not a duplicate of #409 so I'm reopening that one. But feel free to close it if you think that it shouldn't be fixed or that it's not a bug. |
@kallerosenbaum yes the "Not sending headers first anymore" is if we don't do the sleep, I noticed that. For some reason nodes send INV blocks if they detect a reorg in the However, this PR does two things:
The annoying 5min stall is really an unlucky timing issue, and I don't think there is an easy way to detect this condition. (I have some ideas, but implementing them requires me to write some very tricky code that isn't easily testable, which may contains bugs that are more annoying than the stall) The |
When I run some tests on regtest with bitcoin core 26.0 and nbx 2.5.0, NBX often suddenly stops syncing with the node. This did not happen on nbx 2.4.1.
And then it just hangs there.
The same could happen on nbx 2.4.1 too, but it would resolve after one minute of stalling and then pick up the syncing again, whereas in 2.5.0 it hangs seemingly forever.
Here's my nbx environment variables:
And my bitcoin core config:
The text was updated successfully, but these errors were encountered: