Skip to content

Commit

Permalink
chain: update block filterer unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Roasbeef committed Jul 17, 2018
1 parent dbb7ae6 commit fdca047
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions chain/block_filterer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit fdca047

Please sign in to comment.