mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-02 11:32:26 +02:00
chainntnfs/neutrino: Refactor NeutrinoNotifier to use TxConfNotifier.
This commit is contained in:
committed by
Olaoluwa Osuntokun
parent
4405dac4d0
commit
abf3685d2d
@ -103,6 +103,11 @@ func testSingleConfirmationNotification(miner *rpctest.Harness,
|
||||
|
||||
select {
|
||||
case confInfo := <-confIntent.Confirmed:
|
||||
if !confInfo.BlockHash.IsEqual(blockHash[0]) {
|
||||
t.Fatalf("mismatched block hashes: expected %v, got %v",
|
||||
blockHash[0], confInfo.BlockHash)
|
||||
}
|
||||
|
||||
// Finally, we'll verify that the tx index returned is the exact same
|
||||
// as the tx index of the transaction within the block itself.
|
||||
msgBlock, err := miner.Node.GetBlock(blockHash[0])
|
||||
|
Reference in New Issue
Block a user