mining: clarify test_block_validity comment

The option defaults to true, so describe the intended exceptional use
case as disabling validation for tests and benchmarks.

Suggested in https://github.com/bitcoin/bitcoin/pull/33966#discussion_r3303387586
This commit is contained in:
Sjors Provoost
2026-05-28 11:37:19 +02:00
parent 978e7216e6
commit 65bd3164fb

View File

@@ -86,7 +86,7 @@ struct BlockCreateOptions {
CScript coinbase_output_script{CScript() << OP_TRUE};
/**
* Whether to call TestBlockValidity() at the end of CreateNewBlock().
* Should only be used for tests / benchmarks.
* Should only be disabled for tests / benchmarks.
*/
bool test_block_validity{true};
};