Skip to content

Commit 11f7e27

Browse files
authored
Merge pull request #44 from bellflower2015/feature/check_duplicate_inputs
[CVE-2018-17144] Fix crash bug with duplicate inputs within a transaction
2 parents efd7833 + 850618c commit 11f7e27

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ dnl require autoconf 2.60 (AS_ECHO/AS_ECHO_N)
22
AC_PREREQ([2.60])
33
define(_CLIENT_VERSION_MAJOR, 2)
44
define(_CLIENT_VERSION_MINOR, 0)
5-
define(_CLIENT_VERSION_REVISION, 1)
5+
define(_CLIENT_VERSION_REVISION, 2)
66
define(_CLIENT_VERSION_BUILD, 0)
77
define(_CLIENT_VERSION_IS_RELEASE, true)
88
define(_COPYRIGHT_YEAR, 2018)

src/validation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2856,7 +2856,7 @@ bool CheckBlock(const CBlock& block, CValidationState& state, const Consensus::P
28562856

28572857
// Check transactions
28582858
for (const auto& tx : block.vtx)
2859-
if (!CheckTransaction(*tx, state, false))
2859+
if (!CheckTransaction(*tx, state, true))
28602860
return state.Invalid(false, state.GetRejectCode(), state.GetRejectReason(),
28612861
strprintf("Transaction check failed (tx hash %s) %s", tx->GetHash().ToString(), state.GetDebugMessage()));
28622862

0 commit comments

Comments
 (0)