Skip to content

Commit

Permalink
doc: Add doxygen comment to IsRBFOptIn
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoFalke committed Sep 5, 2020
1 parent faef4fc commit fa9ee52
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions src/policy/rbf.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,27 @@

#include <txmempool.h>

/** The rbf state of unconfirmed transactions */
enum class RBFTransactionState {
/** Unconfirmed tx that does not signal rbf and is not in the mempool */
UNKNOWN,
/** Either this tx or a mempool ancestor signals rbf */
REPLACEABLE_BIP125,
FINAL
/** Neither this tx nor a mempool ancestor signals rbf */
FINAL,
};

// Determine whether an in-mempool transaction is signaling opt-in to RBF
// according to BIP 125
// This involves checking sequence numbers of the transaction, as well
// as the sequence numbers of all in-mempool ancestors.
/**
* Determine whether an unconfirmed transaction is signaling opt-in to RBF
* according to BIP 125
* This involves checking sequence numbers of the transaction, as well
* as the sequence numbers of all in-mempool ancestors.
*
* @param tx The unconfirmed transaction
* @param pool The mempool, which may contain the tx
*
* @return The rbf state
*/
RBFTransactionState IsRBFOptIn(const CTransaction& tx, const CTxMemPool& pool) EXCLUSIVE_LOCKS_REQUIRED(pool.cs);
RBFTransactionState IsRBFOptInEmptyMempool(const CTransaction& tx);

Expand Down

0 comments on commit fa9ee52

Please sign in to comment.