Skip to content

Commit 5422fa4

Browse files
authored
Merge pull request duality-solutions#210 from duality-solutions/BitcoinDoSBug
Fix crash bug with duplicate inputs within a transaction
2 parents 4dcb44a + 7b8f9cb commit 5422fa4

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)