Multithreaded amount commitment and range proof checking

This commit is contained in:
instagibbs 2016-07-06 12:06:55 +02:00 committed by Gregory Sanders
parent e877750729
commit dfab197543
6 changed files with 148 additions and 83 deletions

View file

@ -759,7 +759,7 @@ void CTxMemPool::check(const CCoinsViewCache *pcoins) const
CValidationState state;
std::set<std::pair<uint256, COutPoint> > setWithdrawsSpent;
bool fCheckResult = tx.IsCoinBase() ||
Consensus::CheckTxInputs(tx, state, mempoolDuplicate, nSpendHeight, setWithdrawsSpent);
Consensus::CheckTxInputs(tx, state, mempoolDuplicate, nSpendHeight, setWithdrawsSpent, NULL);
assert(fCheckResult);
UpdateCoins(tx, mempoolDuplicate, 1000000);
assert(setWithdrawsSpent == it->setWithdrawsSpent);
@ -780,7 +780,7 @@ void CTxMemPool::check(const CCoinsViewCache *pcoins) const
} else {
std::set<std::pair<uint256, COutPoint> > setWithdrawsSpent;
bool fCheckResult = entry->GetTx().IsCoinBase() ||
Consensus::CheckTxInputs(entry->GetTx(), state, mempoolDuplicate, nSpendHeight, setWithdrawsSpent);
Consensus::CheckTxInputs(entry->GetTx(), state, mempoolDuplicate, nSpendHeight, setWithdrawsSpent, NULL);
assert(fCheckResult);
UpdateCoins(entry->GetTx(), mempoolDuplicate, 1000000);
assert(setWithdrawsSpent == entry->setWithdrawsSpent);