| 800 | } |
| 801 | |
| 802 | void CCoinsViewMemPool::PackageAddTransaction(const CTransactionRef &tx) { |
| 803 | for (uint32_t n = 0; n < tx->vout.size(); ++n) { |
| 804 | m_temp_added.emplace(COutPoint(tx->GetId(), n), |
| 805 | Coin(tx->vout[n], MEMPOOL_HEIGHT, false)); |
| 806 | m_non_base_coins.emplace(COutPoint(tx->GetId(), n)); |
| 807 | } |
| 808 | } |
| 809 | void CCoinsViewMemPool::Reset() { |
| 810 | m_temp_added.clear(); |
| 811 | m_non_base_coins.clear(); |