Skip to content
Permalink
Browse files

Fixed important Bug, that occured from BTC Core 0.14 - 0.16

- Fixed a bug, that can cause a node to crash if a block includes duplicate transactions. (bitcoin#14247)
  • Loading branch information...
globaltoken committed Sep 19, 2018
1 parent 4c7f4a6 commit 5a201f2af03c5139c28d2e1652472bc28ada2516
Showing with 4 additions and 4 deletions.
  1. +2 −2 configure.ac
  2. +2 −2 src/validation.cpp
@@ -3,8 +3,8 @@ AC_PREREQ([2.60])
define(_CLIENT_VERSION_MAJOR, 3)
define(_CLIENT_VERSION_MINOR, 0)
define(_CLIENT_VERSION_REVISION, 0)
define(_CLIENT_VERSION_BUILD, 0)
define(_CLIENT_VERSION_IS_RELEASE, true)
define(_CLIENT_VERSION_BUILD, 1)
define(_CLIENT_VERSION_IS_RELEASE, false)
define(_COPYRIGHT_GLT_START, 2017)
define(_COPYRIGHT_YEAR, 2018)
define(_COPYRIGHT_HOLDERS,[The %s developers])
@@ -1,5 +1,5 @@
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2017 The Bitcoin Core developers
// Copyright (c) 2009-2018 The Bitcoin Core developers
// Copyright (c) 2014-2017 The Dash Core developers
// Copyright (c) 2017-2018 The Globaltoken Core developers
// Distributed under the MIT software license, see the accompanying
@@ -3252,7 +3252,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()));

0 comments on commit 5a201f2

Please sign in to comment.
You can’t perform that action at this time.