Advertise temporary REPLACE_BY_FEE service bit (when appropriate)

This commit is contained in:
Luke Dashjr 2021-10-08 02:25:46 +00:00
parent a7594a61e4
commit 430f823a64

View File

@ -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<CTxMemPool>(mempool_opts);