aboutsummaryrefslogtreecommitdiff
path: root/src/test/txvalidationcache_tests.cpp
diff options
context:
space:
mode:
authorMarcoFalke <[email protected]>2019-11-08 10:29:41 -0500
committerMarcoFalke <[email protected]>2019-11-15 13:40:00 -0500
commitfac07f2038a3ccd5edadc6e6122c02fa30e697bd (patch)
tree7f115cb94e2b7486efd531b48b6ce42a7b92a5a7 /src/test/txvalidationcache_tests.cpp
parentMerge #17362: test: speed up wallet_avoidreuse, add logging (diff)
downloaddiscoin-fac07f2038a3ccd5edadc6e6122c02fa30e697bd.tar.xz
discoin-fac07f2038a3ccd5edadc6e6122c02fa30e697bd.zip
node: Add reference to mempool in NodeContext
Currently it is an alias to the global ::mempool and should be used as follows. * Node code (validation and transaction relay) can use either ::mempool or node.mempool, whichever seems a better fit. * RPC code should use the added convenience getter EnsureMempool, which makes sure the mempool exists before use. This prepares the RPC code to a future where the mempool might be disabled at runtime or compile time. * Test code should use m_node.mempool directly, as the mempool is always initialized for tests.
Diffstat (limited to 'src/test/txvalidationcache_tests.cpp')
0 files changed, 0 insertions, 0 deletions