From 430f823a6409a02c8001cb5090ec263142d71f70 Mon Sep 17 00:00:00 2001 From: Luke Dashjr Date: Fri, 8 Oct 2021 02:25:46 +0000 Subject: [PATCH] Advertise temporary REPLACE_BY_FEE service bit (when appropriate) --- src/init.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/init.cpp b/src/init.cpp index 4562111db9..4c548baa5d 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -1505,6 +1505,10 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info) LogPrintf("* Flushing caches if available system memory drops below %s MiB\n", util::g_low_memory_threshold / 1024 / 1024); } + if (mempool_opts.full_rbf) { + nLocalServices = ServiceFlags(nLocalServices | NODE_REPLACE_BY_FEE); + } + for (bool fLoaded = false; !fLoaded && !ShutdownRequested();) { node.mempool = std::make_unique(mempool_opts);