aboutsummaryrefslogtreecommitdiff
path: root/src/validation.cpp
diff options
context:
space:
mode:
authorSuhas Daftuar <sdaftuar@gmail.com>2018-09-17 16:13:37 -0400
committerMatt Corallo <git@bluematt.me>2018-09-17 16:14:31 -0400
commit833180f538c7fa16b097022c7c0d4b4d2f09688b (patch)
tree16d769295bd202615ccb84f94d62e18944b8f402 /src/validation.cpp
parent465a583f9dcc2383eb20bbb98bffa66fe82f2cde (diff)
Fix crash bug with duplicate inputs within a transaction
Introduced by #9049
Diffstat (limited to 'src/validation.cpp')
-rw-r--r--src/validation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/validation.cpp b/src/validation.cpp
index fceb135854..d3908fc1d8 100644
--- a/src/validation.cpp
+++ b/src/validation.cpp
@@ -3130,7 +3130,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()));