Skip to content

Commit fa9ee52

Browse files
author
MarcoFalke
committed
doc: Add doxygen comment to IsRBFOptIn
1 parent faef4fc commit fa9ee52

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

src/policy/rbf.h

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,27 @@
77

88
#include <txmempool.h>
99

10+
/** The rbf state of unconfirmed transactions */
1011
enum class RBFTransactionState {
12+
/** Unconfirmed tx that does not signal rbf and is not in the mempool */
1113
UNKNOWN,
14+
/** Either this tx or a mempool ancestor signals rbf */
1215
REPLACEABLE_BIP125,
13-
FINAL
16+
/** Neither this tx nor a mempool ancestor signals rbf */
17+
FINAL,
1418
};
1519

16-
// Determine whether an in-mempool transaction is signaling opt-in to RBF
17-
// according to BIP 125
18-
// This involves checking sequence numbers of the transaction, as well
19-
// as the sequence numbers of all in-mempool ancestors.
20+
/**
21+
* Determine whether an unconfirmed transaction is signaling opt-in to RBF
22+
* according to BIP 125
23+
* This involves checking sequence numbers of the transaction, as well
24+
* as the sequence numbers of all in-mempool ancestors.
25+
*
26+
* @param tx The unconfirmed transaction
27+
* @param pool The mempool, which may contain the tx
28+
*
29+
* @return The rbf state
30+
*/
2031
RBFTransactionState IsRBFOptIn(const CTransaction& tx, const CTxMemPool& pool) EXCLUSIVE_LOCKS_REQUIRED(pool.cs);
2132
RBFTransactionState IsRBFOptInEmptyMempool(const CTransaction& tx);
2233

0 commit comments

Comments
 (0)