diff options
author | MarcoFalke <falke.marco@gmail.com> | 2019-03-06 16:58:30 -0500 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2019-03-06 16:58:37 -0500 |
commit | 3515612e069e3730f173a08e60b99f96b174188d (patch) | |
tree | afe06836ffb67d495a91a9c45a41cf7ddcc8c0b4 /src/policy/rbf.cpp | |
parent | df36ddf9ce8a4dcf0d7f324e57a13abb6cf6a57c (diff) | |
parent | fa38535130266896c430d146b05d0069e525dbe6 (diff) |
Merge #15473: bench: Benchmark MempoolToJSON
fa38535130 bench: Benchmark MempoolToJSON (MarcoFalke)
fa5dc3534b rpc: Pass mempool into MempoolToJSON (MarcoFalke)
Pull request description:
This is used in production (e.g. https://jochen-hoenicke.de/queue/#0,24h), so add a benchmark to avoid making it even slower.
Related:
* "getrawmempool true RPC call is O(n^2)" #14765
Tree-SHA512: da09d2e54ee261af8671152f97f863cf1acd7a6adc6578e94046b1ec9e647a670c67499760ef765254f65522dfdf773c3c8729006fa2d63ccb6d53166bafc425
Diffstat (limited to 'src/policy/rbf.cpp')
-rw-r--r-- | src/policy/rbf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/policy/rbf.cpp b/src/policy/rbf.cpp index 0dc130d104..c73a97fd7d 100644 --- a/src/policy/rbf.cpp +++ b/src/policy/rbf.cpp @@ -14,7 +14,7 @@ bool SignalsOptInRBF(const CTransaction &tx) return false; } -RBFTransactionState IsRBFOptIn(const CTransaction &tx, CTxMemPool &pool) +RBFTransactionState IsRBFOptIn(const CTransaction& tx, const CTxMemPool& pool) { AssertLockHeld(pool.cs); |