@@ -852,24 +852,24 @@ BOOST_AUTO_TEST_CASE(test_IsStandard)
852852 CheckIsNotStandard (t, " scriptpubkey" );
853853
854854 // MAX_OP_RETURN_RELAY-byte TxoutType::NULL_DATA (standard)
855- t.vout [0 ].scriptPubKey = CScript () << OP_RETURN << " 04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef3804678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38" _hex_v_u8 ;
855+ t.vout [0 ].scriptPubKey = CScript () << OP_RETURN << " 04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef3804678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38" _hex ;
856856 BOOST_CHECK_EQUAL (MAX_OP_RETURN_RELAY, t.vout [0 ].scriptPubKey .size ());
857857 CheckIsStandard (t);
858858
859859 // MAX_OP_RETURN_RELAY+1-byte TxoutType::NULL_DATA (non-standard)
860- t.vout [0 ].scriptPubKey = CScript () << OP_RETURN << " 04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef3804678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef3800" _hex_v_u8 ;
860+ t.vout [0 ].scriptPubKey = CScript () << OP_RETURN << " 04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef3804678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef3800" _hex ;
861861 BOOST_CHECK_EQUAL (MAX_OP_RETURN_RELAY + 1 , t.vout [0 ].scriptPubKey .size ());
862862 CheckIsNotStandard (t, " scriptpubkey" );
863863
864864 // Data payload can be encoded in any way...
865- t.vout [0 ].scriptPubKey = CScript () << OP_RETURN << " " _hex_v_u8 ;
865+ t.vout [0 ].scriptPubKey = CScript () << OP_RETURN << " " _hex ;
866866 CheckIsStandard (t);
867- t.vout [0 ].scriptPubKey = CScript () << OP_RETURN << " 00" _hex_v_u8 << " 01" _hex_v_u8 ;
867+ t.vout [0 ].scriptPubKey = CScript () << OP_RETURN << " 00" _hex << " 01" _hex ;
868868 CheckIsStandard (t);
869869 // OP_RESERVED *is* considered to be a PUSHDATA type opcode by IsPushOnly()!
870- t.vout [0 ].scriptPubKey = CScript () << OP_RETURN << OP_RESERVED << -1 << 0 << " 01" _hex_v_u8 << 2 << 3 << 4 << 5 << 6 << 7 << 8 << 9 << 10 << 11 << 12 << 13 << 14 << 15 << 16 ;
870+ t.vout [0 ].scriptPubKey = CScript () << OP_RETURN << OP_RESERVED << -1 << 0 << " 01" _hex << 2 << 3 << 4 << 5 << 6 << 7 << 8 << 9 << 10 << 11 << 12 << 13 << 14 << 15 << 16 ;
871871 CheckIsStandard (t);
872- t.vout [0 ].scriptPubKey = CScript () << OP_RETURN << 0 << " 01" _hex_v_u8 << 2 << " ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" _hex_v_u8 ;
872+ t.vout [0 ].scriptPubKey = CScript () << OP_RETURN << 0 << " 01" _hex << 2 << " ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" _hex ;
873873 CheckIsStandard (t);
874874
875875 // ...so long as it only contains PUSHDATA's
@@ -883,13 +883,13 @@ BOOST_AUTO_TEST_CASE(test_IsStandard)
883883
884884 // Only one TxoutType::NULL_DATA permitted in all cases
885885 t.vout .resize (2 );
886- t.vout [0 ].scriptPubKey = CScript () << OP_RETURN << " 04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38" _hex_v_u8 ;
886+ t.vout [0 ].scriptPubKey = CScript () << OP_RETURN << " 04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38" _hex ;
887887 t.vout [0 ].nValue = 0 ;
888- t.vout [1 ].scriptPubKey = CScript () << OP_RETURN << " 04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38" _hex_v_u8 ;
888+ t.vout [1 ].scriptPubKey = CScript () << OP_RETURN << " 04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38" _hex ;
889889 t.vout [1 ].nValue = 0 ;
890890 CheckIsNotStandard (t, " multi-op-return" );
891891
892- t.vout [0 ].scriptPubKey = CScript () << OP_RETURN << " 04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38" _hex_v_u8 ;
892+ t.vout [0 ].scriptPubKey = CScript () << OP_RETURN << " 04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38" _hex ;
893893 t.vout [1 ].scriptPubKey = CScript () << OP_RETURN;
894894 CheckIsNotStandard (t, " multi-op-return" );
895895
0 commit comments