Skip to content

Commit 7b8f9cb

Browse files
authored
Fix crash bug with duplicate inputs within a transaction
1 parent 4dcb44a commit 7b8f9cb

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
@@ -3297,7 +3297,7 @@ bool CheckBlock(const CBlock& block, CValidationState& state, bool fCheckPOW, bo
32973297

32983298
// Check transactions
32993299
BOOST_FOREACH(const CTransaction& tx, block.vtx) {
3300-
if (!CheckTransaction(tx, state, false))
3300+
if (!CheckTransaction(tx, state, true))
33013301
return error("CheckBlock(): CheckTransaction of %s failed with %s",
33023302
tx.GetHash().ToString(),
33033303
FormatStateMessage(state));

0 commit comments

Comments
 (0)