diff options
author | glozow <gloriajzhao@gmail.com> | 2021-08-16 10:40:46 +0100 |
---|---|---|
committer | glozow <gloriajzhao@gmail.com> | 2021-09-10 10:32:29 +0100 |
commit | 3cf46f6055f7cd2e5da81e0d29cafc51ad4aafba (patch) | |
tree | be6725e5b2e3a44cbfb8157a3081514efedc6c0c /src/policy/rbf.h | |
parent | c78eb8651b0949fefcafb22940512f4ef98d3358 (diff) | |
download | bitcoin-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.h | 4 |
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. |