aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile.test_fuzz.include
diff options
context:
space:
mode:
authorCarl Dong <contact@carldong.me>2022-05-17 14:45:18 -0400
committerCarl Dong <contact@carldong.me>2022-07-15 12:26:00 -0400
commitb857ac60d9a0433036519c26675378bbf56a1de1 (patch)
treec68426f9c01a42b17b8571a863e792ca81c2744d /src/Makefile.test_fuzz.include
parentb3267258b052557fc136b9a4dcb754afb9219470 (diff)
test/fuzz: Invoke LoadMempool via CChainState
Not only does this increase coverage, it is also more correct in that when ::LoadMempool is called with a mempool and chainstate, it calls AcceptToMemoryPool with just the chainstate. AcceptToMemoryPool will then act on the chainstate's mempool via CChainState::GetMempool, which may be different from the mempool originally passed to ::LoadMempool. (In this fuzz test's case, it definitely is different) Also, move DummyChainstate to its own file since it's now used by the validation_load_mempool fuzz test to replace CChainState's m_mempool.
Diffstat (limited to 'src/Makefile.test_fuzz.include')
-rw-r--r--src/Makefile.test_fuzz.include1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Makefile.test_fuzz.include b/src/Makefile.test_fuzz.include
index 8922dda3ad..b43816636f 100644
--- a/src/Makefile.test_fuzz.include
+++ b/src/Makefile.test_fuzz.include
@@ -10,6 +10,7 @@ EXTRA_LIBRARIES += \
TEST_FUZZ_H = \
test/fuzz/fuzz.h \
test/fuzz/FuzzedDataProvider.h \
+ test/fuzz/mempool_utils.h \
test/fuzz/util.h
libtest_fuzz_a_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES) $(MINIUPNPC_CPPFLAGS) $(NATPMP_CPPFLAGS) $(EVENT_CFLAGS) $(EVENT_PTHREADS_CFLAGS)