MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / CheckInputsAndUpdateCoins

Function CheckInputsAndUpdateCoins

src/txmempool.cpp:605–612  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

603}
604
605static void CheckInputsAndUpdateCoins(const CTransaction& tx, CCoinsViewCache& mempoolDuplicate, const int64_t spendheight)
606{
607 CValidationState state;
608 CAmount txfee = 0;
609 bool fCheckResult = tx.IsCoinBase() || Consensus::CheckTxInputs(tx, state, mempoolDuplicate, spendheight, txfee);
610 assert(fCheckResult);
611 UpdateCoins(tx, mempoolDuplicate, 1000000);
612}
613
614void CTxMemPool::check(const CCoinsViewCache *pcoins) const
615{

Callers 1

checkMethod · 0.85

Calls 2

UpdateCoinsFunction · 0.85
IsCoinBaseMethod · 0.45

Tested by

no test coverage detected