Remove use of IsRBFOptIn in wallet code

This commit does not change behavior.
This commit is contained in:
Russell Yanofsky
2017-07-28 19:25:26 -04:00
parent 80f52a2267
commit bdc6628683
3 changed files with 13 additions and 3 deletions

View File

@@ -6,9 +6,11 @@
#include <chain.h>
#include <chainparams.h>
#include <policy/rbf.h>
#include <primitives/block.h>
#include <sync.h>
#include <threadsafety.h>
#include <txmempool.h>
#include <uint256.h>
#include <util/system.h>
#include <validation.h>
@@ -183,6 +185,11 @@ public:
LOCK(cs_main);
return GuessVerificationProgress(Params().TxData(), LookupBlockIndex(block_hash));
}
RBFTransactionState isRBFOptIn(const CTransaction& tx) override
{
LOCK(::mempool.cs);
return IsRBFOptIn(tx, ::mempool);
}
};
} // namespace