MCPcopy Create free account
hub / github.com/Bitcoin-ABC/bitcoin-abc / PackageAddTransaction

Method PackageAddTransaction

src/txmempool.cpp:802–808  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

800}
801
802void 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}
809void CCoinsViewMemPool::Reset() {
810 m_temp_added.clear();
811 m_non_base_coins.clear();

Callers 1

Calls 5

emplaceMethod · 0.80
COutPointClass · 0.70
CoinClass · 0.70
sizeMethod · 0.45
GetIdMethod · 0.45

Tested by

no test coverage detected