lnd/chainntnfs/neutrinonotify
yyforyongyu 1200b75546
chainntnfs: always notify txns before block
This commit changes the order of notifications when a relevant tx is
found in a block and now we will always notify the tx subscribers before
notifying the block, which has implications in the upcoming blockbeat.

When a block notification is subscribed via `RegisterBlockEpochNtfn` and
a confirm or spend is subscribed via `RegisterConfirmationsNtfn` or
`RegisterSpendNtfn`, we would always notify the block first before the
tx, causing the subsystem to think there's no relevant txns found in
this block, while the notifications are sent later. We now fix it by
always sending the txns notifications first, so the subsystem can
receive the txns, process them, then attempt to advance its state based
on the block received.
2024-11-19 15:55:22 +08:00
..
driver.go chainntnfs: add block cache to NeutrinoNotifier 2021-04-28 09:59:50 +02:00
neutrino.go chainntnfs: always notify txns before block 2024-11-19 15:55:22 +08:00
neutrino_dev.go multi: add golang 1.17 compatible build tags 2021-09-29 17:31:37 -07:00