v29.4-roots.3 · Commit 8: [PATCH 08/30] ci: restore assurance and isolate Core fixtures
src/test/fuzz/mini_miner.cpp
Before: src/test/fuzz/mini_miner.cpp · After: src/test/fuzz/mini_miner.cpp
File metadata
index baa28affceca9b6e3548a157631a25337fd449cd..b449ad4bc33e797474f28c4f51a7f5e07dfa210a 100644
Download original patch · Release notes
Diff rows 1–22 of 22. 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/mini_miner.cpp
CHANGED
|
@@ -37,6 +37,14 @@ void initialize_miner()
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
+
void initialize_miner_selection()
|
|
41
|
+
{
|
|
42
|
+
initialize_miner();
|
|
43
|
+
// MiniMiner models fee-based package selection, so disable the
|
|
44
|
+
// BlockAssembler's independent coin-age-priority region for comparison.
|
|
45
|
+
gArgs.ForceSetArg("-blockprioritysize", 0);
|
|
46
|
+
}
|
|
47
|
+
|
|
40
48
|
// Test that the MiniMiner can run with various outpoints and feerates.
|
|
41
49
|
FUZZ_TARGET(mini_miner, .init = initialize_miner)
|
|
42
50
|
{
|
|
@@ -118,7 +126,7 @@ FUZZ_TARGET(mini_miner, .init = initialize_miner)
|
|
|
118
126
|
}
|
|
119
127
|
|
|
120
128
|
// Test that MiniMiner and BlockAssembler build the same block given the same transactions and constraints.
|
|
121
|
-
FUZZ_TARGET(mini_miner_selection, .init = initialize_miner)
|
|
129
|
+
FUZZ_TARGET(mini_miner_selection, .init = initialize_miner_selection)
|
|
122
130
|
{
|
|
123
131
|
SeedRandomStateForTest(SeedRand::ZEROS);
|
|
124
132
|
FuzzedDataProvider fuzzed_data_provider{buffer.data(), buffer.size()};
|