| 809 | } |
| 810 | |
| 811 | CTransactionRef CTxMemPool::get(const uint256& hash) const |
| 812 | { |
| 813 | LOCK(cs); |
| 814 | indexed_transaction_set::const_iterator i = mapTx.find(hash); |
| 815 | if (i == mapTx.end()) |
| 816 | return nullptr; |
| 817 | return i->GetSharedTx(); |
| 818 | } |
| 819 | |
| 820 | TxMempoolInfo CTxMemPool::info(const uint256& hash) const |
| 821 | { |