Skip to content

Commit b8f8019

Browse files
committed
Fix crash bug with duplicate inputs within a transaction
Introduced by #9049
1 parent 4901c00 commit b8f8019

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
@@ -3122,7 +3122,7 @@ bool CheckBlock(const CBlock& block, CValidationState& state, const Consensus::P
31223122

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

0 commit comments

Comments
 (0)