Skip to content

Commit 7d6aaa1

Browse files
committed
Pass scheduler onto CTxMempool
1 parent 0d3fc9e commit 7d6aaa1

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/init.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1546,6 +1546,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
15461546

15471547
CTxMemPool::Options mempool_opts{
15481548
.estimator = node.fee_estimator.get(),
1549+
.scheduler = &*node.scheduler,
15491550
.check_ratio = chainparams.DefaultConsistencyChecks() ? 1 : 0,
15501551
.signals = &validation_signals,
15511552
};

src/kernel/mempool_options.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include <optional>
1515

1616
class CBlockPolicyEstimator;
17+
class CScheduler;
1718
class ValidationSignals;
1819

1920
enum class RBFPolicy { Never, OptIn, Always };
@@ -45,6 +46,7 @@ namespace kernel {
4546
struct MemPoolOptions {
4647
/* Used to estimate appropriate transaction fees. */
4748
CBlockPolicyEstimator* estimator{nullptr};
49+
CScheduler* scheduler{nullptr};
4850
/* The ratio used to determine how often sanity checks will run. */
4951
int check_ratio{0};
5052
int64_t max_size_bytes{DEFAULT_MAX_MEMPOOL_SIZE_MB * 1'000'000};

0 commit comments

Comments
 (0)