Changeset View
Changeset View
Standalone View
Standalone View
src/validation.cpp
Show First 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | |||||
bool fReindex = false; | bool fReindex = false; | ||||
bool fTxIndex = false; | bool fTxIndex = false; | ||||
bool fHavePruned = false; | bool fHavePruned = false; | ||||
bool fPruneMode = false; | bool fPruneMode = false; | ||||
bool fIsBareMultisigStd = DEFAULT_PERMIT_BAREMULTISIG; | bool fIsBareMultisigStd = DEFAULT_PERMIT_BAREMULTISIG; | ||||
bool fRequireStandard = true; | bool fRequireStandard = true; | ||||
bool fCheckBlockIndex = false; | bool fCheckBlockIndex = false; | ||||
bool fCheckpointsEnabled = DEFAULT_CHECKPOINTS_ENABLED; | bool fCheckpointsEnabled = DEFAULT_CHECKPOINTS_ENABLED; | ||||
std::atomic_bool fActiveChainTipIsUAHF(false); | |||||
size_t nCoinCacheUsage = 5000 * 300; | size_t nCoinCacheUsage = 5000 * 300; | ||||
uint64_t nPruneTarget = 0; | uint64_t nPruneTarget = 0; | ||||
int64_t nMaxTipAge = DEFAULT_MAX_TIP_AGE; | int64_t nMaxTipAge = DEFAULT_MAX_TIP_AGE; | ||||
uint256 hashAssumeValid; | uint256 hashAssumeValid; | ||||
CFeeRate minRelayTxFee = CFeeRate(DEFAULT_MIN_RELAY_TX_FEE); | CFeeRate minRelayTxFee = CFeeRate(DEFAULT_MIN_RELAY_TX_FEE); | ||||
CAmount maxTxFee = DEFAULT_TRANSACTION_MAXFEE; | CAmount maxTxFee = DEFAULT_TRANSACTION_MAXFEE; | ||||
▲ Show 20 Lines • Show All 2,146 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
/** Update chainActive and related internal data structures. */ | /** Update chainActive and related internal data structures. */ | ||||
static void UpdateTip(const Config &config, CBlockIndex *pindexNew) { | static void UpdateTip(const Config &config, CBlockIndex *pindexNew) { | ||||
const CChainParams &chainParams = config.GetChainParams(); | const CChainParams &chainParams = config.GetChainParams(); | ||||
chainActive.SetTip(pindexNew); | chainActive.SetTip(pindexNew); | ||||
// other code that cares about being conditional on UAHF | |||||
// might need this flag | |||||
fActiveChainTipIsUAHF = IsUAHFenabledForCurrentBlock(config); | |||||
// New best block | // New best block | ||||
mempool.AddTransactionsUpdated(1); | mempool.AddTransactionsUpdated(1); | ||||
cvBlockChange.notify_all(); | cvBlockChange.notify_all(); | ||||
static bool fWarned = false; | static bool fWarned = false; | ||||
std::vector<std::string> warningMessages; | std::vector<std::string> warningMessages; | ||||
if (!IsInitialBlockDownload()) { | if (!IsInitialBlockDownload()) { | ||||
▲ Show 20 Lines • Show All 2,715 Lines • Show Last 20 Lines |