| 693 | } |
| 694 | |
| 695 | std::optional<CTxMemPool::txiter> CTxMemPool::GetIter(const Txid& txid) const |
| 696 | { |
| 697 | AssertLockHeld(cs); |
| 698 | auto it = mapTx.find(txid); |
| 699 | return it != mapTx.end() ? std::make_optional(it) : std::nullopt; |
| 700 | } |
| 701 | |
| 702 | std::optional<CTxMemPool::txiter> CTxMemPool::GetIter(const Wtxid& wtxid) const |
| 703 | { |