fix has_opret function

This commit is contained in:
blackjok3r
2019-04-16 21:08:39 +08:00
parent 997f9ce5fc
commit 660c8dc26c

View File

@@ -81,7 +81,7 @@ bool has_opret(const CTransaction &tx, uint8_t evalcode)
{
for ( auto vout : tx.vout )
{
if ( vout.scriptPubKey[1] == evalcode )
if ( vout.scriptPubKey[0] == OP_RETURN && vout.scriptPubKey[1] == evalcode )
return true;
}
return false;