This is an alternative to #9858
Make TestBlockValidity optional in CreateNewBlock #9859
pull jameshilliard wants to merge 1 commits into bitcoin:master from jameshilliard:tbv-optional changing 6 files +15 −6-
jameshilliard commented at 12:01 AM on February 26, 2017: contributor
- fanquake added the label Mining on Feb 26, 2017
- jameshilliard force-pushed on Feb 26, 2017
-
Make TestBlockValidity optional in CreateNewBlock 2d29f51f8b
- jameshilliard force-pushed on Feb 26, 2017
-
in src/validation.h:None in 2d29f51f8b
130 | @@ -131,6 +131,7 @@ static const int64_t MAX_FEE_ESTIMATION_TIP_AGE = 3 * 60 * 60; 131 | /** Default for -permitbaremultisig */ 132 | static const bool DEFAULT_PERMIT_BAREMULTISIG = true; 133 | static const bool DEFAULT_CHECKPOINTS_ENABLED = true; 134 | +static const bool DEFAULT_TEST_CNBVALID = false;
luke-jr commented at 1:51 AM on February 26, 2017:At the very least, this should default to
true.
jameshilliard commented at 2:32 AM on February 26, 2017:This seems like it should just be a debug option that's off by default since it's something that should never be needed unless there's an internal bug.
in src/init.cpp:None in 2d29f51f8b
380 | @@ -381,6 +381,8 @@ std::string HelpMessage(HelpMessageMode mode) 381 | strUsage += HelpMessageOpt("-proxyrandomize", strprintf(_("Randomize credentials for every proxy connection. This enables Tor stream isolation (default: %u)"), DEFAULT_PROXYRANDOMIZE)); 382 | strUsage += HelpMessageOpt("-rpcserialversion", strprintf(_("Sets the serialization of raw transaction or block hex returned in non-verbose mode, non-segwit(0) or segwit(1) (default: %d)"), DEFAULT_RPC_SERIALIZE_VERSION)); 383 | strUsage += HelpMessageOpt("-seednode=<ip>", _("Connect to a node to retrieve peer addresses, and disconnect")); 384 | + if (showDebug)
luke-jr commented at 1:51 AM on February 26, 2017:Needs braces
jameshilliard commented at 2:30 AM on February 26, 2017:This is the style used above for single debug config options
luke-jr changes_requestedin src/test/miner_tests.cpp:None in 2d29f51f8b
198 | @@ -199,6 +199,7 @@ BOOST_AUTO_TEST_CASE(CreateNewBlock_validity) 199 | 200 | LOCK(cs_main); 201 | fCheckpointsEnabled = false; 202 | + fRunTestBlockValidity = true;
fanquake commented at 7:56 AM on November 28, 2017: memberGoing to close this for now. Needs a rebase, and hasn't had much discussion. Can be re-opened if/when necessary.
fanquake closed this on Nov 28, 2017MarcoFalke locked this on Sep 8, 2021ContributorsLabels
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: 2026-04-18 21:15 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: 2026-04-18 21:15 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