v31.1-roots.1 · Commit 2: [PATCH 02/17] feat(policy): preserve Roots parsing and local transaction checks
src/test/util/txmempool.cpp
Before: src/test/util/txmempool.cpp · After: src/test/util/txmempool.cpp
File metadata
index 3c7eb87ccc2efa9c1d44813dc6e1724d5f844b1f..587af69efbeea0d9a0ee3ed0dfb661b6d62875e0 100644
Download original patch · Release notes
Diff rows 1–17 of 17. Line numbers refer to the original before/after files.
+ Added− RemovedUnmarked lines are context.
Scroll the code area horizontally to read long lines. Before is on the left; after is on the right. Unified view fits narrow screens more easily.
src/test/util/txmempool.cpp
CHANGED
|
@@ -20,12 +20,11 @@ using node::NodeContext;
|
|
| 20 |
|
| 21 |
CTxMemPool::Options MemPoolOptionsForTest(const NodeContext& node)
|
| 22 |
{
|
| 23 |
-
CTxMemPool::Options mempool_opts{
|
| 24 |
-
// Default to always checking mempool regardless of
|
| 25 |
-
// chainparams.DefaultConsistencyChecks for tests
|
| 26 |
-
.check_ratio = 1,
|
| 27 |
-
.signals = node.validation_signals.get(),
|
| 28 |
-
};
|
| 29 |
const auto result{ApplyArgsManOptions(*node.args, ::Params(), mempool_opts)};
|
| 30 |
Assert(result);
|
| 31 |
return mempool_opts;
|
|
|
|
| 20 |
|
| 21 |
CTxMemPool::Options MemPoolOptionsForTest(const NodeContext& node)
|
| 22 |
{
|
| 23 |
+
CTxMemPool::Options mempool_opts{};
|
| 24 |
+
// Default to always checking mempool regardless of
|
| 25 |
+
// chainparams.DefaultConsistencyChecks for tests.
|
| 26 |
+
mempool_opts.check_ratio = 1;
|
| 27 |
+
mempool_opts.signals = node.validation_signals.get();
|
|
|
|
| 28 |
const auto result{ApplyArgsManOptions(*node.args, ::Params(), mempool_opts)};
|
| 29 |
Assert(result);
|
| 30 |
return mempool_opts;
|