Skip to content

Commit 8bfd708

Browse files
committed
Enable size accounting in mining unit tests
1 parent 5e3557b commit 8bfd708

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/test/miner_tests.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,7 @@ void TestPackageSelection(const CChainParams& chainparams, CScript scriptPubKey,
181181
// NOTE: These tests rely on CreateNewBlock doing its own self-validation!
182182
BOOST_AUTO_TEST_CASE(CreateNewBlock_validity)
183183
{
184-
// Disable size accounting (CPFP does not support it)
185-
mapArgs["-blockmaxsize"] = strprintf("%u", MAX_BLOCK_SERIALIZED_SIZE);
186-
184+
// Note that by default, these tests run with size accounting enabled.
187185
const CChainParams& chainparams = Params(CBaseChainParams::MAIN);
188186
CScript scriptPubKey = CScript() << ParseHex("04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5f") << OP_CHECKSIG;
189187
CBlockTemplate *pblocktemplate;

0 commit comments

Comments
 (0)