Skip to content
Browse files
Fix crash bug with duplicate inputs within a transaction
Introduced by #9049
  • Loading branch information
sdaftuar committed Sep 17, 2018
1 parent 4901c00 commit b8f801964f59586508ea8da6cf3decd76bc0e571
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/validation.cpp
@@ -3122,7 +3122,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 b8f8019

Please sign in to comment.