mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
fuzz: add SelectParams to rbf.cpp
We cannot fuzz RBF (or do anything mempool-related, really) without chainparams. This has been true since 2019 at least. I suspect this fuzz test has never really been run.
This commit is contained in:
parent
a3b7e71a3d
commit
ff6482fc29
1 changed files with 7 additions and 1 deletions
|
|
@ -15,7 +15,13 @@
|
|||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
FUZZ_TARGET(rbf)
|
||||
void initialize_rbf(void) {
|
||||
// ELEMENTS: our mempool needs Params() to be set for multiple reasons -- to check
|
||||
// the discount CT rate, to figure out pegin policy, etc
|
||||
SelectParams(CBaseChainParams::LIQUID1);
|
||||
}
|
||||
|
||||
FUZZ_TARGET_INIT(rbf, initialize_rbf)
|
||||
{
|
||||
FuzzedDataProvider fuzzed_data_provider(buffer.data(), buffer.size());
|
||||
SetMockTime(ConsumeTime(fuzzed_data_provider));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue