chainntnfs/neutrino: Refactor NeutrinoNotifier to use TxConfNotifier.
This commit is contained in:
1 parent
4405dac4d0
commit
abf3685d2d
3 files changed
+67
-257
No files matched your search
@@ -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