mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-07-24 07:08:44 +02:00
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:
@@ -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};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user