Browse Source

fix has_opret function

z_createrawtransaction
blackjok3r 5 years ago
parent
commit
660c8dc26c
  1. 2
      src/cc/customcc.cpp

2
src/cc/customcc.cpp

@ -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;

Loading…
Cancel
Save