From d4cc87b860166d00d6b5b9e0d3b3d71d6088d4d4 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Wed, 23 May 2018 20:27:03 -0700 Subject: [PATCH] gcs: properly only use hash of pkscript to insert into filter This commit fixes a mistake during the rebase process meant to include this commit in its entire: https://github.com/Roasbeef/btcutil/commit/dfb640c57141f1c2113b92b4b16d2a89c30dd258 --- gcs/builder/builder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcs/builder/builder.go b/gcs/builder/builder.go index 081e8bd..713a95f 100644 --- a/gcs/builder/builder.go +++ b/gcs/builder/builder.go @@ -331,7 +331,7 @@ func BuildBasicFilter(block *wire.MsgBlock) (*gcs.Filter, error) { // For each output in a transaction, we'll add each of the // individual data pushes within the script. for _, txOut := range tx.TxOut { - b.AddScript(txOut.PkScript) + b.AddEntry(txOut.PkScript) } }