File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ class CScriptID : public uint160
2525 CScriptID (const uint160& in) : uint160(in) {}
2626};
2727
28- static const unsigned int MAX_OP_RETURN_RELAY = 40 ; // ! bytes
28+ static const unsigned int MAX_OP_RETURN_RELAY = 80 ; // ! bytes
2929extern unsigned nMaxDatacarrierBytes;
3030
3131/* *
Original file line number Diff line number Diff line change @@ -347,12 +347,12 @@ BOOST_AUTO_TEST_CASE(test_IsStandard)
347347 t.vout [0 ].scriptPubKey = CScript () << OP_1;
348348 BOOST_CHECK (!IsStandardTx (t, reason));
349349
350- // 40 -byte TX_NULL_DATA (standard)
351- t.vout [0 ].scriptPubKey = CScript () << OP_RETURN << ParseHex (" 04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38 " );
350+ // 80 -byte TX_NULL_DATA (standard)
351+ t.vout [0 ].scriptPubKey = CScript () << OP_RETURN << ParseHex (" 04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef3804678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38 " );
352352 BOOST_CHECK (IsStandardTx (t, reason));
353353
354- // 41 -byte TX_NULL_DATA (non-standard)
355- t.vout [0 ].scriptPubKey = CScript () << OP_RETURN << ParseHex (" 04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef3800 " );
354+ // 81 -byte TX_NULL_DATA (non-standard)
355+ t.vout [0 ].scriptPubKey = CScript () << OP_RETURN << ParseHex (" 04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef3804678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef3800 " );
356356 BOOST_CHECK (!IsStandardTx (t, reason));
357357
358358 // TX_NULL_DATA w/o PUSHDATA
You can’t perform that action at this time.
0 commit comments