v31.1-roots.1 · Commit 4: [PATCH 04/17] feat(mining): preserve Roots priority and template policies
src/test/fuzz/tx_pool.cpp
Before: src/test/fuzz/tx_pool.cpp · After: src/test/fuzz/tx_pool.cpp
File metadata
index b0589bd50f00cfc959cb9cc15d08fbcaf1fa37e7..5f85fa8e74791715ab165d91742dbb200a07e720 100644
Download original patch · Release notes
Diff rows 1–11 of 11. Line numbers refer to the original before/after files.
+ Added− RemovedUnmarked lines are context.
Scroll the code area horizontally to read long lines. The two line-number columns refer to before and after.
src/test/fuzz/tx_pool.cpp
CHANGED
|
@@ -102,6 +102,11 @@ void Finish(FuzzedDataProvider& fuzzed_data_provider, MockedTxPool& tx_pool, Cha
|
|
|
102
102
|
{
|
|
103
103
|
BlockAssembler::Options options;
|
|
104
104
|
options.nBlockMaxWeight = fuzzed_data_provider.ConsumeIntegralInRange(0U, MAX_BLOCK_WEIGHT);
|
|
105
|
+
options.nBlockMaxSize = fuzzed_data_provider.ConsumeIntegralInRange(0U, MAX_BLOCK_SERIALIZED_SIZE);
|
|
106
|
+
options.nBlockPrioritySize = fuzzed_data_provider.ConsumeBool() ? 0 :
|
|
107
|
+
fuzzed_data_provider.ConsumeIntegral<size_t>();
|
|
108
|
+
options.block_reserved_weight = fuzzed_data_provider.ConsumeIntegralInRange(0U, MAX_BLOCK_WEIGHT);
|
|
109
|
+
options.coinbase_output_max_additional_sigops = fuzzed_data_provider.ConsumeIntegralInRange<int64_t>(0, MAX_BLOCK_SIGOPS_COST);
|
|
105
110
|
options.blockMinFeeRate = CFeeRate{ConsumeMoney(fuzzed_data_provider, /*max=*/COIN)};
|
|
106
111
|
options.include_dummy_extranonce = true;
|
|
107
112
|
auto assembler = BlockAssembler{chainstate, &tx_pool, options};
|