Skip to content

Commit 833180f

Browse files
sdaftuarTheBlueMatt
authored andcommitted
Fix crash bug with duplicate inputs within a transaction
Introduced by #9049
1 parent 465a583 commit 833180f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/validation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3130,7 +3130,7 @@ bool CheckBlock(const CBlock& block, CValidationState& state, const Consensus::P
31303130

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

0 commit comments

Comments
 (0)