diff options
author | fanquake <fanquake@gmail.com> | 2021-03-15 11:59:05 +0800 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2021-03-17 14:56:20 +0800 |
commit | ebc4ab721b0371c0ef217c0f5bd7d42613e951e6 (patch) | |
tree | c4f91deb60589d4d6e5c347d99ca7c611a01ee79 /src/txmempool.cpp | |
parent | 57e980d13ca488031bde6ef197cf34d493d36796 (diff) | |
download | bitcoin-ebc4ab721b0371c0ef217c0f5bd7d42613e951e6.tar.xz |
refactor: post Optional<> removal cleanups
Diffstat (limited to 'src/txmempool.cpp')
-rw-r--r-- | src/txmempool.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/txmempool.cpp b/src/txmempool.cpp index 5691a5faf5..faccd1ade0 100644 --- a/src/txmempool.cpp +++ b/src/txmempool.cpp @@ -8,7 +8,6 @@ #include <consensus/consensus.h> #include <consensus/tx_verify.h> #include <consensus/validation.h> -#include <optional> #include <policy/fees.h> #include <policy/policy.h> #include <policy/settings.h> @@ -19,6 +18,8 @@ #include <validation.h> #include <validationinterface.h> +#include <optional> + CTxMemPoolEntry::CTxMemPoolEntry(const CTransactionRef& _tx, const CAmount& _nFee, int64_t _nTime, unsigned int _entryHeight, bool _spendsCoinbase, int64_t _sigOpsCost, LockPoints lp) @@ -894,7 +895,7 @@ std::optional<CTxMemPool::txiter> CTxMemPool::GetIter(const uint256& txid) const { auto it = mapTx.find(txid); if (it != mapTx.end()) return it; - return std::optional<txiter>{}; + return {}; } CTxMemPool::setEntries CTxMemPool::GetIterSet(const std::set<uint256>& hashes) const |