From c78eb8651b0949fefcafb22940512f4ef98d3358 Mon Sep 17 00:00:00 2001 From: glozow Date: Wed, 8 Sep 2021 09:44:39 +0100 Subject: [policy/refactor] pass in relay fee instead of using global --- src/policy/rbf.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/policy/rbf.h') 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 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 PaysForRBF(CAmount original_fees, CAmount replacement_fees, size_t replacement_vsize, + CFeeRate relay_fee, const uint256& txid); #endif // BITCOIN_POLICY_RBF_H -- cgit v1.2.3