diff options
| author | Suhas Daftuar <[email protected]> | 2018-09-17 15:50:55 -0400 |
|---|---|---|
| committer | Suhas Daftuar <[email protected]> | 2018-09-17 15:50:55 -0400 |
| commit | b8f801964f59586508ea8da6cf3decd76bc0e571 (patch) | |
| tree | e5c7fbf40c7cdc3eaf7b431160f0095cffc3f19e /src/validation.cpp | |
| parent | Merge #14236: qa: generate --> generatetoaddress change to allow tests run wi... (diff) | |
| download | discoin-b8f801964f59586508ea8da6cf3decd76bc0e571.tar.xz discoin-b8f801964f59586508ea8da6cf3decd76bc0e571.zip | |
Fix crash bug with duplicate inputs within a transaction
Introduced by #9049
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 947192be0..59c3fb425 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -3122,7 +3122,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())); |