-
Notifications
You must be signed in to change notification settings - Fork 588
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
wallet: skip rescan if address batch is empty #824
base: master
Are you sure you want to change the base?
Conversation
69caf7a
to
a792319
Compare
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 change sounds reasonable to me, though I'm not sure if there's a reason for allowing empty rescans. @Roasbeef, do you have any insights here?
Any update? |
Should have a PR to |
We're a few days into debugging some performance issues that this would resolve absolutely. What we're finding is that when running starting up an LND node against mutinynet, the initial chain rescan (for the empty state of the wallet) picks a time ~5k blocks in the past.
It consistently picks a block ~5k in the past, and then does a rescan (for an empty wallet). Under most circumstances that we have found, this rescan takes an extremely long time (~50 minutes). We have found cases where it is faster than that, but it's pretty consistently slow under a range of conditions. |
@litch so the height estimation for a wallet's birthday is based on assumption about the block rate interval. If Mutinynet is mining blocks with a diff interval, or one that's variable, then the value will be incorrect. With that said, this comment still stands: #824 (comment) If you're running into this issue in production, do you want to take over this PR @litch? |
No description provided.