| 809 | } |
| 810 | |
| 811 | bool exists(const GenTxid& gtxid) const |
| 812 | { |
| 813 | LOCK(cs); |
| 814 | if (gtxid.IsWtxid()) { |
| 815 | return (mapTx.get<index_by_wtxid>().count(gtxid.GetHash()) != 0); |
| 816 | } |
| 817 | return (mapTx.count(gtxid.GetHash()) != 0); |
| 818 | } |
| 819 | |
| 820 | CTransactionRef get(const uint256& hash) const; |
| 821 | txiter get_iter_from_wtxid(const uint256& wtxid) const EXCLUSIVE_LOCKS_REQUIRED(cs) |