Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
ix crash bug with duplicate inputs within a transaction bitcoin#14247
  • Loading branch information
sidhujag committed Sep 19, 2018
1 parent 00594d3 commit 8c462d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/validation.cpp
Expand Up @@ -3816,7 +3816,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()));

Expand Down

0 comments on commit 8c462d0

Please sign in to comment.