-
Notifications
You must be signed in to change notification settings - Fork 278
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 restore misses transactions due to dense transaction activity: (lookahead / BIP44 gap limit) #407
Comments
Have you tried modifying the lookahead parameter to be very large? 1000 instead of the default 10 for instance. Can edit the max lookahead value in lib/wallet/account.js |
Yes, @pinheadmz mentioned this workaround to me and it fixed the issue. However, I still think that the real fix for this is within HSD itself given that it seems to be triggered by some kind of race condition. |
This issue is being tracked upstream in bcoin: |
The hsd wallet gap limit issue discussion has bled into Bob-wallet: kyokan/bob-wallet#165 Here are some references:
It seems to be a common work-around for users to just set the value to There are better solutions described in bcoin-org/bcoin#835 and in fact one unmerged patch in bcoin avoids the issue by rescanning blocks every time a TX is found in a block. The main issue is that bcoin/hsd uses bloom filters for rescanning (even against a full node) and these filters are updated after each block is scanned. We could just remove that optimization and probably a gap limit of 10 or 20 would be fine, but would slow down rescans. Note that this is only an issue during rescan. During a regular Solutions
|
When you have lots of names (>100), rescanning the wallet causes names to be lost. Checkout the following screenshot:
Here, I'm executing a wallet rescan then getting the list of names from the wallet once the rescan completes. (I look at the logs in another terminal to determine when the rescan is done.) As you can see, the number of names in the wallet changes even though the wallet itself hasn't made any new transactions. The number of names increases randomly whenever I rescan then get the names in the wallet.
The text was updated successfully, but these errors were encountered: