chainntnfs/neutrino: Refactor NeutrinoNotifier to use TxConfNotifier.

This commit is contained in:
Jim Posen
2017-11-13 15:49:58 -08:00
committed by Olaoluwa Osuntokun
parent 4405dac4d0
commit abf3685d2d
3 changed files with 67 additions and 257 deletions

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])