Add comment to test noting when OP_RETURN limit was removed

This commit is contained in:
Peter Todd 2025-04-28 20:15:08 +00:00
parent cd7872ca54
commit b420376aef
No known key found for this signature in database
GPG key ID: 2E5CB5D535512F37

View file

@ -859,6 +859,9 @@ BOOST_AUTO_TEST_CASE(test_IsStandard)
CheckIsNotStandard(t, "scriptpubkey");
// TxoutType::NULL_DATA
//
// Until v30 OP_RETURN was limited to 83 bytes (80 bytes of data, +1 for
// OP_RETURN, +2 for the pushdata opcodes). Here we test with 84 bytes.
t.vout[0].scriptPubKey = CScript() << OP_RETURN << "04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef3804678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef3800"_hex;
BOOST_CHECK_EQUAL(84, t.vout[0].scriptPubKey.size());
CheckIsStandard(t);