Fix crash bug with duplicate inputs within a transaction

Introduced by #9049
This commit is contained in:
Suhas Daftuar 2018-09-17 15:50:55 -04:00 committed by Gregory Sanders
parent 8b037a3913
commit 05c8066c8e

View file

@ -3859,7 +3859,7 @@ bool CheckBlock(const CBlock& block, CValidationState& state, const Consensus::P
// Check transactions
for (const auto& tx : block.vtx)
if (!CheckTransaction(*tx, state, false))
if (!CheckTransaction(*tx, state, true))
return state.Invalid(false, state.GetRejectCode(), state.GetRejectReason(),
strprintf("Transaction check failed (tx hash %s) %s", tx->GetHash().ToString(), state.GetDebugMessage()));