File tree Expand file tree Collapse file tree 1 file changed +16
-5
lines changed
Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Original file line number Diff line number Diff line change 77
88#include <txmempool.h>
99
10+ /** The rbf state of unconfirmed transactions */
1011enum 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+ */
2031RBFTransactionState IsRBFOptIn (const CTransaction & tx , const CTxMemPool & pool ) EXCLUSIVE_LOCKS_REQUIRED (pool .cs );
2132RBFTransactionState IsRBFOptInEmptyMempool (const CTransaction & tx );
2233
You can’t perform that action at this time.
0 commit comments