-
Notifications
You must be signed in to change notification settings - Fork 22
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
Flash test: no block at requested height #3042
Flash test: no block at requested height #3042
Conversation
A flash test sometimes fails during `gossipChannelsOpen` if the call to `getBlock` fails. This can happen if the discovered channel height is greater than the current block height of the peer we attempt to fetch from. By storing the last block rather than block height we can help prevent this sort of race condition.
Codecov Report
@@ Coverage Diff @@
## v0.x.x #3042 +/- ##
===========================================
+ Coverage 19.83% 78.93% +59.10%
===========================================
Files 61 209 +148
Lines 2702 18588 +15886
===========================================
+ Hits 536 14673 +14137
- Misses 2166 3915 +1749
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
I dont think this will help, |
But it does happen (see the log line in the description). |
Ah it is, we configure Agora to push to all Flash nodes (see flashTestConf). That is not how the real world configuration will look like tho. But the race condition is still there, we may receive the channel open event before the block |
Relates #2425 |
A flash test sometimes fails during
gossipChannelsOpen
if the call togetBlock
fails. This can happen if the discovered channel height isgreater than the current block height of the peer we attempt to fetch
from. By storing the last block rather than block height we can help
prevent this sort of race condition.