-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 premature validation call #5894
Fix premature validation call #5894
Conversation
When syncing from genesis the number of blocks are limited so we get the `onParseBlockCompleteAfterBatchProcessing` called each time when the received blocks are processed, and as we are not at wallet height we repeat requesting blocks. But the new check for the BTC recipient triggers a resync from resource call. We add now a check that we do this check only once the wallet is synced and our block height from dao state matches wallet blockheight.
Getting a lot of repeated errors in the log, e.g.
Left it syncing for an hour without finishing. |
Resync from genesis? That will likely take quite some time as the number of blocks is limited, so it repeats to request blocks. |
Doing a resync from genesis as well now. Each blocks request is limited to 6000 blocks. The parsing is fast now, about 10 sec or so, but the blocks requests are slow. So far I dont see errors... |
Got my lite node (and lite monitor mode) synced from genesis and all looks ok. Also tried with 2 other lite nodes and restarted several times and all was ok. But once I got a conflict with seed nodes with request to resync, but I just restarted and it was resolved after restart. So it seems there is some bug still with some edge cases but could not find it or find how to reproduce it. Also on regtest I tried to reproduce but failed. |
When doing a resync from genesis the number of blocks is limited to 6000 so that requires lots of requests and with that increases risk of broken connections. Giving more tolerance for retries avoids that the user has to restart the app.
Got the sync completed ok now, unsure what was the problem before. I'll keep trying it. |
I've been doing syncs today without problems. My earlier error must have been a build glitch. Observations:
|
Sync from genesis? Or from resources (default). From resources should be very fast (10 sec or so). |
New user, fresh data directory. This message is reported at startup:
|
I cannot reproduce that on OSX running from IDEA. Can you check whats the value of |
this is the value of I made a PR to fix the issue. #5898 |
Tested those commits on top of v1.8.0 with an outdated Mainnet client and now everything worked as expected. 👍 |
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.
ACK - Tested it no Mainnet
When syncing from genesis the number of blocks are limited so we get the
onParseBlockCompleteAfterBatchProcessing
called each time when the receivedblocks are processed, and as we are not at wallet height we repeat requesting
blocks. But the new check for the BTC recipient triggers a resync from resource call.
We add now a check that we do this check only once the wallet is synced and our
block height from dao state matches wallet blockheight.
Fixes #5882