Skip to content

Commit 721ec32

Browse files
author
Anfauglith
authored
Merge pull request bitcoin#15 from CryptoDJ/patch-2
Fix crash bug with duplicate inputs within a transaction
2 parents 3b457f7 + 6249eca commit 721ec32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/validation.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3202,7 +3202,7 @@ bool CheckBlock(const CBlock& block, CValidationState& state, const Consensus::P
32023202

32033203
// Check transactions
32043204
for (const auto& tx : block.vtx)
3205-
if (!CheckTransaction(*tx, state, false))
3205+
if (!CheckTransaction(*tx, state, true))
32063206
return state.Invalid(false, state.GetRejectCode(), state.GetRejectReason(),
32073207
strprintf("Transaction check failed (tx hash %s) %s", tx->GetHash().ToString(), state.GetDebugMessage()));
32083208

0 commit comments

Comments
 (0)