082f012fcf
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. |
||
---|---|---|
.. | ||
btcd.go | ||
interface_test.go | ||
interface.go | ||
log.go | ||
neutrino.go | ||
queue.go |