LLFourn / bdk_core_staging

Staging area for bdk_core initial development
15 stars 12 forks source link

Fix `KeychainTxOutIndex` lookahead logic #192

Closed evanlinjin closed 1 year ago

evanlinjin commented 1 year ago

The lookahead logic tries to be as efficient as possible and avoids storing spks that are already stored. However, the original logic failed when the lookahead setting was changed more than once. This fixes it.

Additionally, the methods lookahead_to_target and lookahead_to_target_multi are added. These store unrevealed scripts without affecting lookahead settings.