Skip to content

Commit 35276ed

Browse files
[CVE-2018-17144] Fix crash bug with duplicate inputs within a transaction
1 parent efd7833 commit 35276ed

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

28572857
// Check transactions
28582858
for (const auto& tx : block.vtx)
2859-
if (!CheckTransaction(*tx, state, false))
2859+
if (!CheckTransaction(*tx, state, true))
28602860
return state.Invalid(false, state.GetRejectCode(), state.GetRejectReason(),
28612861
strprintf("Transaction check failed (tx hash %s) %s", tx->GetHash().ToString(), state.GetDebugMessage()));
28622862

0 commit comments

Comments
 (0)