mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
Multithreaded amount commitment and range proof checking
This commit is contained in:
parent
e877750729
commit
dfab197543
6 changed files with 148 additions and 83 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue