@@ -852,24 +852,24 @@ BOOST_AUTO_TEST_CASE(test_IsStandard)
852
852
CheckIsNotStandard (t, " scriptpubkey" );
853
853
854
854
// 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 ;
856
856
BOOST_CHECK_EQUAL (MAX_OP_RETURN_RELAY, t.vout [0 ].scriptPubKey .size ());
857
857
CheckIsStandard (t);
858
858
859
859
// 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 ;
861
861
BOOST_CHECK_EQUAL (MAX_OP_RETURN_RELAY + 1 , t.vout [0 ].scriptPubKey .size ());
862
862
CheckIsNotStandard (t, " scriptpubkey" );
863
863
864
864
// 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 ;
866
866
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 ;
868
868
CheckIsStandard (t);
869
869
// 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 ;
871
871
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 ;
873
873
CheckIsStandard (t);
874
874
875
875
// ...so long as it only contains PUSHDATA's
@@ -883,13 +883,13 @@ BOOST_AUTO_TEST_CASE(test_IsStandard)
883
883
884
884
// Only one TxoutType::NULL_DATA permitted in all cases
885
885
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 ;
887
887
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 ;
889
889
t.vout [1 ].nValue = 0 ;
890
890
CheckIsNotStandard (t, " multi-op-return" );
891
891
892
- t.vout [0 ].scriptPubKey = CScript () << OP_RETURN << " 04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38" _hex_v_u8 ;
892
+ t.vout [0 ].scriptPubKey = CScript () << OP_RETURN << " 04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38" _hex ;
893
893
t.vout [1 ].scriptPubKey = CScript () << OP_RETURN;
894
894
CheckIsNotStandard (t, " multi-op-return" );
895
895
0 commit comments