Skip to content
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

Bump the last watched indexes of HD accounts #2076

Merged
merged 1 commit into from
Aug 13, 2021

Commits on Aug 12, 2021

  1. Bump the last watched indexes of HD accounts

    The last watched indexes were never being increased except on the very
    first call to watchHDAddrs during the wallet sync.  Because this index
    is used as the starting point for watching new addresses, the wallet
    would increasingly watch more and more of the same addresses each
    time, sending each of these in a series of 'loadtxfilter' calls to
    dcrd.  This was bottlenecking block processing on long-running
    heavily-used wallets which create and watch many addresses (especially
    in the case of mixing ticketbuyers).
    
    There are still some duplicate addresses being watched, but this
    prevents the worst case situation of what is effectively a memory leak
    of data that gets sent over the network on every new derived address.
    jrick committed Aug 12, 2021
    Configuration menu
    Copy the full SHA
    af96ee5 View commit details
    Browse the repository at this point in the history