lnd.xprv/chainntnfs/neutrinonotify
Olaoluwa Osuntokun 28eb8474f4
chainntnfs: modify all historical rescans to scan backwards
In this commit, we modify all existing historical rescans for
ChainNotifier backends to scan backwards rather than forwards. If we
know that a transaction has been confirmed, or outpoint spent, the it's
likely that the event has recently transpired assuming we've been
offline for a short period of time. Therefore, if we scan backwards
rather than forwards, then we can save potentially hundreds or thousands
of block fetches if the event recently happened close to the tip of the
chain.

We bound this search at the genesis block, to ensure we don't underflow
the uint32 used throughout the package in the main loop.
2018-11-24 15:50:12 -06:00
..
driver.go chainntnfs: add height hint caches to chain notifiers 2018-08-21 12:55:51 -04:00
neutrino_dev.go chainntnfs/neutrinonotify: handle spend notification registration w/ TxNotifier 2018-10-30 17:59:31 -07:00
neutrino.go chainntnfs: modify all historical rescans to scan backwards 2018-11-24 15:50:12 -06:00