aboutsummaryrefslogtreecommitdiff
path: root/src/policy/rbf.h
diff options
context:
space:
mode:
authorglozow <gloriajzhao@gmail.com>2021-09-08 09:44:39 +0100
committerglozow <gloriajzhao@gmail.com>2021-09-10 09:38:01 +0100
commitc78eb8651b0949fefcafb22940512f4ef98d3358 (patch)
treecfc6c3ad0f4a7e1e5672a3d13972208cf4edf947 /src/policy/rbf.h
parent60881158c8010e436e3c107a2d62ffb7aa23220c (diff)
downloadbitcoin-c78eb8651b0949fefcafb22940512f4ef98d3358.tar.xz
[policy/refactor] pass in relay fee instead of using global
Diffstat (limited to 'src/policy/rbf.h')
-rw-r--r--src/policy/rbf.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/policy/rbf.h b/src/policy/rbf.h
index 56468a09b2..e8cfb2e643 100644
--- a/src/policy/rbf.h
+++ b/src/policy/rbf.h
@@ -84,12 +84,14 @@ std::optional<std::string> PaysMoreThanConflicts(const CTxMemPool::setEntries& i
* @param[in] original_fees Total modified fees of original transaction(s).
* @param[in] replacement_fees Total modified fees of replacement transaction(s).
* @param[in] replacement_vsize Total virtual size of replacement transaction(s).
+ * @param[in] relay_fee The node's minimum feerate for transaction relay.
* @param[in] txid Transaction ID, included in the error message if violation occurs.
* @returns error string if fees are insufficient, otherwise std::nullopt.
*/
std::optional<std::string> PaysForRBF(CAmount original_fees,
CAmount replacement_fees,
size_t replacement_vsize,
+ CFeeRate relay_fee,
const uint256& txid);
#endif // BITCOIN_POLICY_RBF_H