diff options
author | Suhas Daftuar <sdaftuar@gmail.com> | 2018-09-17 16:13:37 -0400 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2018-09-17 22:22:30 +0200 |
commit | d1dee205473140aca34180e5de8b9bbe17c2207d (patch) | |
tree | 109abce53b244aa1150e7ea79130a3ead501f164 | |
parent | 9e116a6f8720c10c2f4e295107e217fbf7a9a20d (diff) |
Fix crash bug with duplicate inputs within a transaction
Introduced by #9049
-rw-r--r-- | src/validation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/validation.cpp b/src/validation.cpp index 7795905c48..145862db73 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -3032,7 +3032,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())); |