aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuhas Daftuar <sdaftuar@gmail.com>2018-09-17 16:13:37 -0400
committerWladimir J. van der Laan <laanwj@gmail.com>2018-09-18 13:06:17 +0200
commit4b8a3f5d235f40be8102506ab26caad005cc40d6 (patch)
tree6a13c4bc8d4b11f4f6fad0796345ed6b5ce08c7a
parentb6677651515534ed81b182467b62a5fd3f42d4b9 (diff)
Fix crash bug with duplicate inputs within a transaction
Introduced by #9049 Github-Pull: #14247 Tree-SHA512: 2815312a3da8ef4a93dbc26b71d9147e34d1fed794aa7188ec12670579d2e45380212cf1e23526a7b5e339a185a73637fc2f342e0699b687c920244bc2edc124
-rw-r--r--src/validation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/validation.cpp b/src/validation.cpp
index 8a92992dba..ddb13f7d1b 100644
--- a/src/validation.cpp
+++ b/src/validation.cpp
@@ -2854,7 +2854,7 @@ bool CheckBlock(const CBlock& block, CValidationState& state, const Consensus::P
// Check transactions
for (const auto& tx : block.vtx)
- if (!CheckTransaction(*tx, state, false))
+ if (!CheckTransaction(*tx, state, true))
return state.Invalid(false, state.GetRejectCode(), state.GetRejectReason(),
strprintf("Transaction check failed (tx hash %s) %s", tx->GetHash().ToString(), state.GetDebugMessage()));