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 7
7
8
8
#include <txmempool.h>
9
9
10
+ /** The rbf state of unconfirmed transactions */
10
11
enum class RBFTransactionState {
12
+ /** Unconfirmed tx that does not signal rbf and is not in the mempool */
11
13
UNKNOWN ,
14
+ /** Either this tx or a mempool ancestor signals rbf */
12
15
REPLACEABLE_BIP125 ,
13
- FINAL
16
+ /** Neither this tx nor a mempool ancestor signals rbf */
17
+ FINAL ,
14
18
};
15
19
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
+ */
20
31
RBFTransactionState IsRBFOptIn (const CTransaction & tx , const CTxMemPool & pool ) EXCLUSIVE_LOCKS_REQUIRED (pool .cs );
21
32
RBFTransactionState IsRBFOptInEmptyMempool (const CTransaction & tx );
22
33
You can’t perform that action at this time.
0 commit comments