From fdca047246f8aa31f41655495cf3bd4b7aeb74f2 Mon Sep 17 00:00:00 2001
From: Olaoluwa Osuntokun
Date: Mon, 16 Jul 2018 19:18:05 -0700
Subject: [PATCH] chain: update block filterer unit tests
---
chain/block_filterer_test.go | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/chain/block_filterer_test.go b/chain/block_filterer_test.go
index 4a56a7951f..7ae8bb946b 100644
--- a/chain/block_filterer_test.go
+++ b/chain/block_filterer_test.go
@@ -8,6 +8,7 @@ import (
"github.com/btcsuite/btcd/chaincfg"
"github.com/btcsuite/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/wire"
+ "github.com/btcsuite/btcutil"
"github.com/btcsuite/btcwallet/chain"
)
@@ -272,9 +273,9 @@ func TestBlockFiltererOneInOneOut(t *testing.T) {
// Add each of their single previous outpoints to the set of watched
// outpoints to filter for.
- watchedOutPoints := make(map[wire.OutPoint]struct{})
- watchedOutPoints[firstTx.TxIn[0].PreviousOutPoint] = struct{}{}
- watchedOutPoints[lastTx.TxIn[0].PreviousOutPoint] = struct{}{}
+ watchedOutPoints := make(map[wire.OutPoint]btcutil.Address)
+ watchedOutPoints[firstTx.TxIn[0].PreviousOutPoint] = &btcutil.AddressWitnessPubKeyHash{}
+ watchedOutPoints[lastTx.TxIn[0].PreviousOutPoint] = &btcutil.AddressWitnessPubKeyHash{}
// Construct a filter request, watching only for the outpoints above,
// and construct a block filterer.