Changeset View
Changeset View
Standalone View
Standalone View
src/test/transaction_tests.cpp
Show First 20 Lines • Show All 726 Lines • ▼ Show 20 Lines | t.vout[0].scriptPubKey = | ||||
<< ParseHex("04678afdb0fe5548271967f1a67130b7105cd6a828e03909" | << ParseHex("04678afdb0fe5548271967f1a67130b7105cd6a828e03909" | ||||
"a67962e0ea1f61deb649f6bc3f4cef3804678afdb0fe5548" | "a67962e0ea1f61deb649f6bc3f4cef3804678afdb0fe5548" | ||||
"271967f1a67130b7105cd6a828e03909a67962e0ea1f61de" | "271967f1a67130b7105cd6a828e03909a67962e0ea1f61de" | ||||
"b649f6bc3f4cef3877696e6465787800"); | "b649f6bc3f4cef3877696e6465787800"); | ||||
BOOST_CHECK_EQUAL(t.vout[0].scriptPubKey.size(), newMaxSize + 1); | BOOST_CHECK_EQUAL(t.vout[0].scriptPubKey.size(), newMaxSize + 1); | ||||
BOOST_CHECK(!IsStandardTx(CTransaction(t), reason)); | BOOST_CHECK(!IsStandardTx(CTransaction(t), reason)); | ||||
// Clear custom confirguration. | // Clear custom confirguration. | ||||
gArgs.ClearArg("-datacarriersize"); | gArgs.ClearForcedArg("-datacarriersize"); | ||||
// Data payload can be encoded in any way... | // Data payload can be encoded in any way... | ||||
t.vout[0].scriptPubKey = CScript() << OP_RETURN << ParseHex(""); | t.vout[0].scriptPubKey = CScript() << OP_RETURN << ParseHex(""); | ||||
BOOST_CHECK(IsStandardTx(CTransaction(t), reason)); | BOOST_CHECK(IsStandardTx(CTransaction(t), reason)); | ||||
t.vout[0].scriptPubKey = CScript() | t.vout[0].scriptPubKey = CScript() | ||||
<< OP_RETURN << ParseHex("00") << ParseHex("01"); | << OP_RETURN << ParseHex("00") << ParseHex("01"); | ||||
BOOST_CHECK(IsStandardTx(CTransaction(t), reason)); | BOOST_CHECK(IsStandardTx(CTransaction(t), reason)); | ||||
// OP_RESERVED *is* considered to be a PUSHDATA type opcode by IsPushOnly()! | // OP_RESERVED *is* considered to be a PUSHDATA type opcode by IsPushOnly()! | ||||
▲ Show 20 Lines • Show All 63 Lines • Show Last 20 Lines |