Skip to content

Commit

Permalink
Fix possible crash when forks are rejected by checkpoints.
Browse files Browse the repository at this point in the history
  • Loading branch information
nlg-buildbot committed Dec 26, 2016
1 parent 67463c2 commit 4ddc1b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3237,7 +3237,7 @@ static bool AcceptBlockHeader(const CBlockHeader& block, CValidationState& state

assert(pindexPrev);
if (fCheckpointsEnabled && !CheckIndexAgainstCheckpoint(pindexPrev, state, chainparams, hash))
return error("%s: CheckIndexAgainstCheckpoint(): %s", __func__, state.GetRejectReason().c_str());
return error("%s: CheckIndexAgainstCheckpoint(): %s", __func__, FormatStateMessage(state));

if (!ContextualCheckBlockHeader(block, state, chainparams.GetConsensus(), pindexPrev, GetAdjustedTime()))
return error("%s: Consensus::ContextualCheckBlockHeader: %s, %s", __func__, hash.ToString(), FormatStateMessage(state));
Expand Down
2 changes: 1 addition & 1 deletion src/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ static const int INIT_PROTO_VERSION = 209;
//! In this version, 'getheaders' was introduced.
static const int GETHEADERS_VERSION = 31800;

static const int MIN_PEER_PROTO_VERSION = 70002;
static const int MIN_PEER_PROTO_VERSION = 70014;

static const int CADDR_TIME_VERSION = 31402;

Expand Down

0 comments on commit 4ddc1b1

Please sign in to comment.