MCPcopy Create free account
hub / github.com/ElementsProject/elements / PackageAddTransaction

Method PackageAddTransaction

src/txmempool.cpp:1124–1129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1122}
1123
1124void CCoinsViewMemPool::PackageAddTransaction(const CTransactionRef& tx)
1125{
1126 for (unsigned int n = 0; n < tx->vout.size(); ++n) {
1127 m_temp_added.emplace(COutPoint(tx->GetHash(), n), Coin(tx->vout[n], MEMPOOL_HEIGHT, false));
1128 }
1129}
1130
1131// ELEMENTS:
1132bool CCoinsViewMemPool::IsPeginSpent(const std::pair<uint256, COutPoint> &outpoint) const {

Callers 1

Calls 4

CoinClass · 0.70
COutPointClass · 0.50
sizeMethod · 0.45
GetHashMethod · 0.45

Tested by

no test coverage detected