diff options
| author | MarcoFalke <[email protected]> | 2020-07-19 11:09:59 +0200 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2020-09-05 11:44:25 +0200 |
| commit | fa831684e54783f6b40533ca218eb7636bdae667 (patch) | |
| tree | 7b016530828cf75ca24592efab81edaa96403649 /src/policy/rbf.cpp | |
| parent | Merge #19878: rawtransaction: fix argument in combinerawtransaction help message (diff) | |
| download | discoin-fa831684e54783f6b40533ca218eb7636bdae667.tar.xz discoin-fa831684e54783f6b40533ca218eb7636bdae667.zip | |
refactor: Add IsRBFOptInEmptyMempool
Co-authored-by: John Newbery <[email protected]>
Diffstat (limited to 'src/policy/rbf.cpp')
| -rw-r--r-- | src/policy/rbf.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/policy/rbf.cpp b/src/policy/rbf.cpp index f8b17d18d..4b5593489 100644 --- a/src/policy/rbf.cpp +++ b/src/policy/rbf.cpp @@ -36,3 +36,9 @@ RBFTransactionState IsRBFOptIn(const CTransaction& tx, const CTxMemPool& pool) } return RBFTransactionState::FINAL; } + +RBFTransactionState IsRBFOptInEmptyMempool(const CTransaction& tx) +{ + // If we don't have a local mempool we can only check the transaction itself. + return SignalsOptInRBF(tx) ? RBFTransactionState::REPLACEABLE_BIP125 : RBFTransactionState::UNKNOWN; +} |