chainntnfs/neutrino: Refactor NeutrinoNotifier to use TxConfNotifier.

This commit is contained in:
Jim Posen authored and Olaoluwa Osuntokun committed 2017-12-14 19:16:15 -08:00
1 parent 4405dac4d0
commit abf3685d2d
3 files changed
+67 -257

No files matched your search

+5
View File
@@ -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])