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

chain: use neutrino filters to speed up bitcoind seed recovery #889

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Sep 29, 2023

  1. chain: refactor btcd filter rescan into maybeShouldFetchBlock

    We also abstract how blocks are fetched in the first place, as bitcoind
    uses a different name for the RPC to fetch filters.
    Roasbeef committed Sep 29, 2023
    Configuration menu
    Copy the full SHA
    b131910 View commit details
    Browse the repository at this point in the history
  2. chain: use neutrino filters to speed up bitcoind seed recovery

    In this commit, we use neutrino filters to speed up bitcoind seed
    recovery. We use the recently created `maybeShouldFetchBlock` function
    to check the filters to see if we need to fetch a block at all. This
    saves us from fetching, decoding, then scanning the block contents if we
    know nothing is present in them.
    
    At this point, we can also further consolidate the `FilterBlocks`
    methods between the two backends, as they're now identical.
    Roasbeef committed Sep 29, 2023
    Configuration menu
    Copy the full SHA
    2cb1df2 View commit details
    Browse the repository at this point in the history