diff options
| author | Wladimir J. van der Laan <[email protected]> | 2018-09-18 01:20:49 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2018-09-18 01:20:52 +0200 |
| commit | c64128df5882e8dc1f76ae7c1e998ed57b8645fe (patch) | |
| tree | 0d362c45d95f5cfe40116dac54c30472559cfddb /src | |
| parent | Replace duplcate reference with reference to reference doc (diff) | |
| parent | [qa] backport: Test for duplicate inputs within a transaction (diff) | |
| download | discoin-c64128df5882e8dc1f76ae7c1e998ed57b8645fe.tar.xz discoin-c64128df5882e8dc1f76ae7c1e998ed57b8645fe.zip | |
Merge #14248: [0.17] Fix crash bug with duplicate inputs within a transaction
0d49c82edd4c2c92f8ebe215c057b0173a258d77 [qa] backport: Test for duplicate inputs within a transaction (Suhas Daftuar)
833180f538c7fa16b097022c7c0d4b4d2f09688b Fix crash bug with duplicate inputs within a transaction (Suhas Daftuar)
Pull request description:
This is a backport of #14247.
Tree-SHA512: 4d3b6244d501a48f56a728c571dac9a346019a671434edac943f4f535ef8f94ec6bfd569a0585ad5e23a6e488ecd7e0079510cbb10a2a22f576eb36d73accb0c
Diffstat (limited to 'src')
| -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 fceb13585..d3908fc1d 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())); |