aboutsummaryrefslogtreecommitdiff
path: root/src/policy/rbf.h
diff options
context:
space:
mode:
authorglozow <gloriajzhao@gmail.com>2021-08-16 10:40:46 +0100
committerglozow <gloriajzhao@gmail.com>2021-09-10 10:32:29 +0100
commit3cf46f6055f7cd2e5da81e0d29cafc51ad4aafba (patch)
treebe6725e5b2e3a44cbfb8157a3081514efedc6c0c /src/policy/rbf.h
parentc78eb8651b0949fefcafb22940512f4ef98d3358 (diff)
downloadbitcoin-3cf46f6055f7cd2e5da81e0d29cafc51ad4aafba.tar.xz
[doc] improve RBF documentation
Document a few non-obvious things and delete no-longer-relevant comments (e.g. about taking a lock that we're already holding). No change in behavior.
Diffstat (limited to 'src/policy/rbf.h')
-rw-r--r--src/policy/rbf.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/policy/rbf.h b/src/policy/rbf.h
index e8cfb2e643..6031745d8f 100644
--- a/src/policy/rbf.h
+++ b/src/policy/rbf.h
@@ -48,14 +48,14 @@ RBFTransactionState IsRBFOptInEmptyMempool(const CTransaction& tx);
std::optional<std::string> GetEntriesForConflicts(const CTransaction& tx, CTxMemPool& pool,
const CTxMemPool::setEntries& iters_conflicting,
CTxMemPool::setEntries& all_conflicts)
- EXCLUSIVE_LOCKS_REQUIRED(pool.cs);
+ EXCLUSIVE_LOCKS_REQUIRED(pool.cs);
/** BIP125 Rule #2: "The replacement transaction may only include an unconfirmed input if that input
* was included in one of the original transactions."
* @returns error message if Rule #2 is broken, otherwise std::nullopt. */
std::optional<std::string> HasNoNewUnconfirmed(const CTransaction& tx, const CTxMemPool& pool,
const CTxMemPool::setEntries& iters_conflicting)
- EXCLUSIVE_LOCKS_REQUIRED(pool.cs);
+ EXCLUSIVE_LOCKS_REQUIRED(pool.cs);
/** Check the intersection between two sets of transactions (a set of mempool entries and a set of
* txids) to make sure they are disjoint.