Skip to content

Commit 1920d84

Browse files
committed
Merge #413: [backport] Fix crash bug with duplicate inputs within a transaction
05c8066 Fix crash bug with duplicate inputs within a transaction (Suhas Daftuar)
2 parents 8b037a3 + 05c8066 commit 1920d84

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

38603860
// Check transactions
38613861
for (const auto& tx : block.vtx)
3862-
if (!CheckTransaction(*tx, state, false))
3862+
if (!CheckTransaction(*tx, state, true))
38633863
return state.Invalid(false, state.GetRejectCode(), state.GetRejectReason(),
38643864
strprintf("Transaction check failed (tx hash %s) %s", tx->GetHash().ToString(), state.GetDebugMessage()));
38653865

0 commit comments

Comments
 (0)