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:
dfb640c571
This commit is contained in:
Olaoluwa Osuntokun 2018-05-23 20:27:03 -07:00
parent 45edb4b6e5
commit d4cc87b860
No known key found for this signature in database
GPG key ID: 964EA263DD637C21

View file

@ -331,7 +331,7 @@ func BuildBasicFilter(block *wire.MsgBlock) (*gcs.Filter, error) {
// For each output in a transaction, we'll add each of the // For each output in a transaction, we'll add each of the
// individual data pushes within the script. // individual data pushes within the script.
for _, txOut := range tx.TxOut { for _, txOut := range tx.TxOut {
b.AddScript(txOut.PkScript) b.AddEntry(txOut.PkScript)
} }
} }