Skip to content

Add start_height parameter to bitcoind_rpc::FilterIter::new #2126

Description

@luisschwab

From evanlinjin's comment on bdk_wallet#368:

bitcoind_rpc::Emitter::new has a start_height parameter. This is used in the case the closest block that connects is below the start_height. So if the tip is reorged out, and we only have tip + genesis, we will start from start_height instead. To convey the wallet birthday with the checkpoint tip, while still taking into account reorgs, we can use tip_height - FINAL_DEPTH as the start_height parameter. FINAL_DEPTH can be as conservative as you want.

bitcoind_rpc::FilterIter::new does not have such a parameter. We can add it?

Then we provide docs as how to convey the wallet's birthday to the chain source using the checkpoint tip.

Activity

  1. added this to the Chain 0.24.0 milestone on Feb 16, 2026
  2. self-assigned this
    on Feb 16, 2026
  3. moved this to Discussion in BDK Chainon Feb 20, 2026
  4. moved this from Discussion to Todo in BDK Chainon Feb 20, 2026
  5. rishi-jat commented on Mar 3, 2026

    @rishi-jat

    Hey @luisschwab , I would like to work on this issue can you please assign this issue to me ? Thanks!

  6. kafeelraza commented on May 18, 2026

    @kafeelraza

    Hi @luisschwab, I started working on this issue and have opened PR #2205 implementing "start_height" support for "FilterIter".
    Would appreciate any feedback/review. Thanks!

  7. evanlinjin commented on Aug 11, 2026

    @evanlinjin
    Member

    I don't think this should be part of the bdk_chain 0.24 release milestone since it's on it's own separate track. This change is not required for bdk_chain 0.24 to function properly and it should not hold up the release.

  8. removed this from the Chain 0.24.0 milestone on Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

new featureNew feature or request

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions