From f16da156c9b8fcc55a9e59cff106f7f859bc09dd Mon Sep 17 00:00:00 2001 From: pedro martelletto Date: Thu, 19 Jan 2017 16:09:36 +0000 Subject: [PATCH] Include data pushes from pkscripts --- blockchain/indexers/cfindex.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/blockchain/indexers/cfindex.go b/blockchain/indexers/cfindex.go index 04737679..378fcd5c 100644 --- a/blockchain/indexers/cfindex.go +++ b/blockchain/indexers/cfindex.go @@ -118,6 +118,9 @@ func makeBasicFilterForBlock(block *btcutil.Block) ([]byte, error) { for _, txIn := range tx.MsgTx().TxIn { b.AddOutPoint(txIn.PreviousOutPoint) } + for _, txOut := range tx.MsgTx().TxOut { + b.AddScript(txOut.PkScript) + } } f, err := b.Build() if err != nil {