lnd.xprv/routing/chainview
Johan T. Halseth 082f012fcf
routing/chainview: implement staleBlocks for btcd view.
This commit moves btcd view away from using the deprecated
callbacks onBlockConnected/Disconnected, and instead use
onFilteredBlockConnected/disconnected.

This commit also implements the sending of disconnected blocks
over the staleBlocks channel. To send these blocks, the
blockEventQueue is used to ensure the ordering of blocks are
correctly kept.

It also changes the way filter updates are handled. Since we
now load the tx filter to the rpc server itself, we can call
RescanBlocks instead of manually filtering blocks. These
rescanned blocks are also added to the blockEventQueue,
ensuring the ordering is kept.
2017-11-03 00:05:30 +01:00
..
btcd.go routing/chainview: implement staleBlocks for btcd view. 2017-11-03 00:05:30 +01:00
interface_test.go chainntnfs+routing/chainview: reduce neutrino.WaitForMoreCFHeaders value 2017-09-13 16:46:11 +02:00
interface.go routing/chainview: additional comments to FilteredChainView godoc 2017-11-03 00:05:29 +01:00
log.go lnd: remove seelog logger 2017-06-25 14:19:56 +01:00
neutrino.go routing/chainview: Fix data race in block disconnected callback. 2017-09-29 13:53:02 -07:00
queue.go routing/chainView: add blockEventQueue data structure 2017-11-03 00:05:28 +01:00