gcs/builder: Omit all OP_RETURN scripts from basic filter.

This commit is contained in:
Jim Posen 2018-09-08 16:46:11 -07:00 committed by Olaoluwa Osuntokun
parent bf1e1be935
commit 4c204d6978

View file

@ -320,8 +320,7 @@ func BuildBasicFilter(block *wire.MsgBlock, prevOutScripts [][]byte) (*gcs.Filte
// In order to allow the filters to later be committed
// to within an OP_RETURN output, we ignore all
// OP_RETURNs to avoid a circular dependency.
if txOut.PkScript[0] == txscript.OP_RETURN &&
txscript.IsPushOnlyScript(txOut.PkScript[1:]) {
if txOut.PkScript[0] == txscript.OP_RETURN {
continue
}