v29.4-roots.4 · Commit 35: [PATCH 35/37] rpc: report the configured RBF policy in getmempoolinfo
src/rpc/mempool.cpp
Before: src/rpc/mempool.cpp · After: src/rpc/mempool.cpp
File metadata
index 2b883322aa1716022a228a5e5f0680fc3eedaf1a..1e402784b250dd97b7a2a887f36b11e83ef1498b 100644
Download original patch · Release notes
Diff rows 1–8 of 8. 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/rpc/mempool.cpp
CHANGED
|
@@ -684,7 +684,7 @@ UniValue MempoolInfoToJSON(const CTxMemPool& pool)
|
|
| 684 |
ret.pushKV("minrelaytxfee", ValueFromAmount(pool.m_opts.min_relay_feerate.GetFeePerK()));
|
| 685 |
ret.pushKV("incrementalrelayfee", ValueFromAmount(pool.m_opts.incremental_relay_feerate.GetFeePerK()));
|
| 686 |
ret.pushKV("unbroadcastcount", uint64_t{pool.GetUnbroadcastTxs().size()});
|
| 687 |
-
ret.pushKV("fullrbf", true);
|
| 688 |
return ret;
|
| 689 |
}
|
| 690 |
|
|
|
|
| 684 |
ret.pushKV("minrelaytxfee", ValueFromAmount(pool.m_opts.min_relay_feerate.GetFeePerK()));
|
| 685 |
ret.pushKV("incrementalrelayfee", ValueFromAmount(pool.m_opts.incremental_relay_feerate.GetFeePerK()));
|
| 686 |
ret.pushKV("unbroadcastcount", uint64_t{pool.GetUnbroadcastTxs().size()});
|
| 687 |
+
ret.pushKV("fullrbf", pool.m_opts.rbf_policy == RBFPolicy::Always);
|
| 688 |
return ret;
|
| 689 |
}
|
| 690 |
|