diff options
| author | Suhas Daftuar <[email protected]> | 2018-09-17 16:13:37 -0400 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2018-09-18 13:05:49 +0200 |
| commit | 52965fbaef4b8ff310e01273817fb027389d3f80 (patch) | |
| tree | ded595fd6f01754db45edf5bd9bbe46d8b193d21 /src/validation.cpp | |
| parent | Merge #11296: [0.14] travis: filter out pyenv (Cory Fields) (diff) | |
| download | discoin-52965fbaef4b8ff310e01273817fb027389d3f80.tar.xz discoin-52965fbaef4b8ff310e01273817fb027389d3f80.zip | |
Fix crash bug with duplicate inputs within a transaction
Introduced by #9049
Github-Pull: #14247
Tree-SHA512: 54ccf896e4c816ba8532644affc984a091ed801d8387bb01a836953c9ec4a345359d98fb58dd5f929617afd42bce0cc40293fecf943a1584207c82dd78da0ea5
Diffstat (limited to 'src/validation.cpp')
| -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 c9135c442..da2c47105 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -2880,7 +2880,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())); |