Changeset View
Changeset View
Standalone View
Standalone View
src/validation.cpp
// Copyright (c) 2009-2010 Satoshi Nakamoto | // Copyright (c) 2009-2010 Satoshi Nakamoto | ||||
Lint: Code style violation: '/home/nico/abc/bitcoin-abc/src/validation.cpp' has code style errors. | |||||
// Copyright (c) 2009-2016 The Bitcoin Core developers | // Copyright (c) 2009-2016 The Bitcoin Core developers | ||||
// Copyright (c) 2017-2018 The Bitcoin developers | // Copyright (c) 2017-2018 The Bitcoin developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#include "validation.h" | #include "validation.h" | ||||
#include "arith_uint256.h" | #include "arith_uint256.h" | ||||
▲ Show 20 Lines • Show All 577 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
// Command-line argument "-replayprotectionactivationtime=<timestamp>" will | // Command-line argument "-replayprotectionactivationtime=<timestamp>" will | ||||
// cause the node to switch to replay protected SigHash ForkID value when the | // cause the node to switch to replay protected SigHash ForkID value when the | ||||
// median timestamp of the previous 11 blocks is greater than or equal to | // median timestamp of the previous 11 blocks is greater than or equal to | ||||
// <timestamp>. Defaults to the pre-defined timestamp when not set. | // <timestamp>. Defaults to the pre-defined timestamp when not set. | ||||
static bool IsReplayProtectionEnabled(const Config &config, | static bool IsReplayProtectionEnabled(const Config &config, | ||||
int64_t nMedianTimePast) { | int64_t nMedianTimePast) { | ||||
return nMedianTimePast >= | return nMedianTimePast >= gArgs.GetArg("-replayprotectionactivationtime", | ||||
gArgs.GetArg( | config.GetChainParams() | ||||
"-replayprotectionactivationtime", | .GetConsensus() | ||||
config.GetChainParams().GetConsensus().greatWallActivationTime); | .greatWallActivationTime); | ||||
jasonbcoxUnsubmitted Not Done Inline ActionsThis is strange and shouldn't happen with clang-format-4.0. But I set you up with 4.0, so not sure what happened here. Please revert this. jasonbcox: This is strange and shouldn't happen with clang-format-4.0. But I set you up with 4.0, so not… | |||||
nakihitoAuthorUnsubmitted Not Done Inline ActionsI can change this back, but there are a similar couple of lines from 567-573 that looks more like this changed format than the previous format. In terms of consistency, I believe this change is correct, but am happy to revert to the previous. nakihito: I can change this back, but there are a similar couple of lines from 567-573 that looks more… | |||||
} | } | ||||
static bool IsReplayProtectionEnabled(const Config &config, | static bool IsReplayProtectionEnabled(const Config &config, | ||||
const CBlockIndex *pindexPrev) { | const CBlockIndex *pindexPrev) { | ||||
if (pindexPrev == nullptr) { | if (pindexPrev == nullptr) { | ||||
return false; | return false; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 4,893 Lines • Show Last 20 Lines |
'/home/nico/abc/bitcoin-abc/src/validation.cpp' has code style errors.