Skip to content

Commit

Permalink
Fix crash bug with duplicate inputs within a transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
Oskii committed Jan 9, 2019
1 parent cc28e79 commit 21c01ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/validation.cpp
Expand Up @@ -2916,7 +2916,7 @@ bool CheckBlock(const CBlock& block, CValidationState& state, const Consensus::P

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

Expand Down

0 comments on commit 21c01ff

Please sign in to comment.