lnd/chainntnfs/neutrinonotify
eugene 0d39c0799a
chainntnfs/neutrinonotify: call drainChainUpdates when updating filter
Moves filter handling logic for connecting blocks to the
connectFilteredBlock method. The disconnect logic now lives in
disconnectFilteredBlock. After updating the filter, drainChainUpdates
is called which will drain everything from the chainUpdates chan and
apply all updates by calling either connectFilteredBlock or
disconnectFilteredBlock. This will allow callers to update their
EndHeight if performing a historical dispatch, as blocks up to this
height may not have had the filter applied.
2021-08-27 14:12:01 -04:00
..
driver.go chainntnfs: add block cache to NeutrinoNotifier 2021-04-28 09:59:50 +02:00
neutrino.go chainntnfs/neutrinonotify: call drainChainUpdates when updating filter 2021-08-27 14:12:01 -04:00
neutrino_dev.go chainntnfs/neutrinonotify: make chainUpdates a buffered chan 2021-08-27 14:12:01 -04:00