| 603 | } |
| 604 | |
| 605 | static 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 | |
| 614 | void CTxMemPool::check(const CCoinsViewCache *pcoins) const |
| 615 | { |
no test coverage detected