@@ -280,12 +280,12 @@ BOOST_AUTO_TEST_CASE(test_IsStandard)
280
280
t.vout [0 ].scriptPubKey = CScript () << OP_1;
281
281
BOOST_CHECK (!IsStandardTx (t, reason));
282
282
283
- // 80 -byte TX_NULL_DATA (standard)
284
- t.vout [0 ].scriptPubKey = CScript () << OP_RETURN << ParseHex (" 04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef3804678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38 " );
283
+ // 40 -byte TX_NULL_DATA (standard)
284
+ t.vout [0 ].scriptPubKey = CScript () << OP_RETURN << ParseHex (" 04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38 " );
285
285
BOOST_CHECK (IsStandardTx (t, reason));
286
286
287
- // 81 -byte TX_NULL_DATA (non-standard)
288
- t.vout [0 ].scriptPubKey = CScript () << OP_RETURN << ParseHex (" 04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef3804678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef3800 " );
287
+ // 41 -byte TX_NULL_DATA (non-standard)
288
+ t.vout [0 ].scriptPubKey = CScript () << OP_RETURN << ParseHex (" 04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef3800 " );
289
289
BOOST_CHECK (!IsStandardTx (t, reason));
290
290
291
291
// TX_NULL_DATA w/o PUSHDATA
@@ -295,11 +295,11 @@ BOOST_AUTO_TEST_CASE(test_IsStandard)
295
295
296
296
// Only one TX_NULL_DATA permitted in all cases
297
297
t.vout .resize (2 );
298
- t.vout [0 ].scriptPubKey = CScript () << OP_RETURN << ParseHex (" 04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef3804678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38 " );
299
- t.vout [1 ].scriptPubKey = CScript () << OP_RETURN << ParseHex (" 04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef3804678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38 " );
298
+ t.vout [0 ].scriptPubKey = CScript () << OP_RETURN << ParseHex (" 04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38 " );
299
+ t.vout [1 ].scriptPubKey = CScript () << OP_RETURN << ParseHex (" 04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38 " );
300
300
BOOST_CHECK (!IsStandardTx (t, reason));
301
301
302
- t.vout [0 ].scriptPubKey = CScript () << OP_RETURN << ParseHex (" 04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef3804678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38 " );
302
+ t.vout [0 ].scriptPubKey = CScript () << OP_RETURN << ParseHex (" 04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38 " );
303
303
t.vout [1 ].scriptPubKey = CScript () << OP_RETURN;
304
304
BOOST_CHECK (!IsStandardTx (t, reason));
305
305
0 commit comments