aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorSuhas Daftuar <sdaftuar@gmail.com>2016-07-28 14:27:19 -0400
committerLuke Dashjr <luke-jr+git@utopios.org>2016-09-21 02:43:47 +0000
commita7aa3ccc4f6a80bc23a8f7a419d72d0f1a33dfe1 (patch)
tree06936ca0805128a0ea4b19eaed2b63f0758a12f1 /src/test
parentbea02dc3b664d77745f6701ba7c425b1f9f737cd (diff)
downloadbitcoin-a7aa3ccc4f6a80bc23a8f7a419d72d0f1a33dfe1.tar.xz
Enable size accounting in mining unit tests
Github-Pull: #8419 Rebased-From: 8bfd70817bf8b8b07b81660e47c88dd122b7423f
Diffstat (limited to 'src/test')
-rw-r--r--src/test/miner_tests.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/test/miner_tests.cpp b/src/test/miner_tests.cpp
index fd581db52e..15fceb963a 100644
--- a/src/test/miner_tests.cpp
+++ b/src/test/miner_tests.cpp
@@ -181,9 +181,7 @@ void TestPackageSelection(const CChainParams& chainparams, CScript scriptPubKey,
// NOTE: These tests rely on CreateNewBlock doing its own self-validation!
BOOST_AUTO_TEST_CASE(CreateNewBlock_validity)
{
- // Disable size accounting (CPFP does not support it)
- mapArgs["-blockmaxsize"] = strprintf("%u", MAX_BLOCK_SERIALIZED_SIZE);
-
+ // Note that by default, these tests run with size accounting enabled.
const CChainParams& chainparams = Params(CBaseChainParams::MAIN);
CScript scriptPubKey = CScript() << ParseHex("04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5f") << OP_CHECKSIG;
CBlockTemplate *pblocktemplate;