Changeset View
Changeset View
Standalone View
Standalone View
src/init.cpp
Show First 20 Lines • Show All 1,970 Lines • ▼ Show 20 Lines | #endif | ||||
// Option to startup with mocktime set (used for regression testing): | // Option to startup with mocktime set (used for regression testing): | ||||
SetMockTime(gArgs.GetArg("-mocktime", 0)); // SetMockTime(0) is a no-op | SetMockTime(gArgs.GetArg("-mocktime", 0)); // SetMockTime(0) is a no-op | ||||
if (gArgs.GetBoolArg("-peerbloomfilters", DEFAULT_PEERBLOOMFILTERS)) { | if (gArgs.GetBoolArg("-peerbloomfilters", DEFAULT_PEERBLOOMFILTERS)) { | ||||
nLocalServices = ServiceFlags(nLocalServices | NODE_BLOOM); | nLocalServices = ServiceFlags(nLocalServices | NODE_BLOOM); | ||||
} | } | ||||
// Signal Bitcoin Cash support. | |||||
// TODO: remove some time after the hardfork when no longer needed | |||||
// to differentiate the network nodes. | |||||
nLocalServices = ServiceFlags(nLocalServices | NODE_BITCOIN_CASH); | |||||
nMaxTipAge = gArgs.GetArg("-maxtipage", DEFAULT_MAX_TIP_AGE); | nMaxTipAge = gArgs.GetArg("-maxtipage", DEFAULT_MAX_TIP_AGE); | ||||
return true; | return true; | ||||
} | } | ||||
static bool LockDataDirectory(bool probeOnly) { | static bool LockDataDirectory(bool probeOnly) { | ||||
// Make sure only a single Bitcoin process is using the data directory. | // Make sure only a single Bitcoin process is using the data directory. | ||||
fs::path datadir = GetDataDir(); | fs::path datadir = GetDataDir(); | ||||
▲ Show 20 Lines • Show All 855 Lines • Show Last 20 Lines |