lnd.xprv/chainntnfs/neutrinonotify
Wilmer Paulino 94beabf34b
chainntnfs: cache spend hints within the different chain notifiers
In this commit, we extend the different ChainNotifier implementations to
cache height hints for our spend events. Each outpoint we've requested a
spend notification for will have its initial height hint cached. We then
increment this height hint at every new block for unspent outpoints.
This allows us to retrieve the *exact* height at which the outpoint has
been spent. By doing this, we optimize the different ChainNotifier
implementations since they will no longer have to rescan forward (and
possibly fetch blocks in the neutrino/pruned node case) from the initial
height hint.
2018-08-21 12:55:53 -04:00
..
driver.go chainntnfs: add height hint caches to chain notifiers 2018-08-21 12:55:51 -04:00
neutrino_debug.go chainntnfs: add height hint caches to chain notifiers 2018-08-21 12:55:51 -04:00
neutrino.go chainntnfs: cache spend hints within the different chain notifiers 2018-08-21 12:55:53 -04:00