Browse files

Fix crash bug with duplicate inputs within a transaction

  • Loading branch information...
ander7agar committed Nov 9, 2018
1 parent 203a528 commit f5a5df1fd15a8b658820cd970a4cf2ebfcd9095e
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/validation.cpp
@@ -2939,7 +2939,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()));

0 comments on commit f5a5df1

Please sign in to comment.