Enable size accounting in mining unit tests #8419
pull sdaftuar wants to merge 1 commits into bitcoin:master from sdaftuar:fix-mining-tests changing 1 files +1 −3-
sdaftuar commented at 6:34 pm on July 28, 2016: memberThis change to the unit test should have happened in #8295. Now that size accounting is supported by the mining algorithm, we shouldn’t disable size accounting in the mining unit tests.
-
Enable size accounting in mining unit tests 8bfd70817b
-
jonasschnelli added the label Tests on Jul 28, 2016
-
sipa commented at 11:44 pm on July 28, 2016: memberutACK 8bfd70817bf8b8b07b81660e47c88dd122b7423f
-
MarcoFalke added the label Mining on Jul 31, 2016
-
paveljanik commented at 7:50 pm on July 31, 2016: contributor
-
paveljanik commented at 8:01 pm on July 31, 2016: contributor
-
in src/test/miner_tests.cpp: in 8bfd70817b
180@@ -181,9 +181,7 @@ void TestPackageSelection(const CChainParams& chainparams, CScript scriptPubKey, 181 // NOTE: These tests rely on CreateNewBlock doing its own self-validation! 182 BOOST_AUTO_TEST_CASE(CreateNewBlock_validity) 183 { 184- // Disable size accounting (CPFP does not support it) 185- mapArgs["-blockmaxsize"] = strprintf("%u", MAX_BLOCK_SERIALIZED_SIZE); 186- 187+ // Note that by default, these tests run with size accounting enabled.
laanwj commented at 8:42 am on August 1, 2016:Whoa, this global state was set without reverting it again at the end of the testcase? Please don’t do that.
In any case ACK.
laanwj merged this on Aug 1, 2016laanwj closed this on Aug 1, 2016
laanwj referenced this in commit ea268747b6 on Aug 1, 2016luke-jr referenced this in commit a7aa3ccc4f on Sep 21, 2016DrahtBot locked this on Sep 8, 2021
github-metadata-mirror
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-09-14 07:12 UTC
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-09-14 07:12 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me