Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions src/public_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ static_assert(AUTO_FORCE_NEXT_TICK_THRESHOLD* TARGET_TICK_DURATION >= PEER_REFRE
// If this flag is 1, it indicates that the whole network (all 676 IDs) will start from scratch and agree that the very first tick time will be set at (2022-04-13 Wed 12:00:00.000UTC).
// If this flag is 0, the node will try to fetch data of the initial tick of the epoch from other nodes, because the tick's timestamp may differ from (2022-04-13 Wed 12:00:00.000UTC).
// If you restart your node after seamless epoch transition, make sure EPOCH and TICK are set correctly for the currently running epoch.
#define START_NETWORK_FROM_SCRATCH 0
#define START_NETWORK_FROM_SCRATCH 1
#ifdef TESTNET
#undef START_NETWORK_FROM_SCRATCH
#define START_NETWORK_FROM_SCRATCH 1
Expand All @@ -115,12 +115,12 @@ static_assert(AUTO_FORCE_NEXT_TICK_THRESHOLD* TARGET_TICK_DURATION >= PEER_REFRE
// Config options that should NOT be changed by operators

#define VERSION_A 1
#define VERSION_B 301
#define VERSION_C 7
#define VERSION_B 302
#define VERSION_C 0

// Epoch and initial tick for node startup
#define EPOCH 227
#define TICK 75241781
#define EPOCH 228
#define TICK 76550000
#define TICK_IS_FIRST_TICK_OF_EPOCH 1 // Set to 0 if the network is restarted during the EPOCH with a new initial TICK

#define ARBITRATOR "AFZPUAIYVPNUYGJRQVLUKOPPVLHAZQTGLYAAUUNBXFTVTAMSBKQBLEIEPCVJ"
Expand Down Expand Up @@ -176,13 +176,13 @@ static constexpr unsigned long long BPP9000_NUMBER_OF_MUTATIONS = 100;
// Number of graded windows. The score is an error count in [0, BPP9000_NUMBER_OF_WINDOWS], smaller is
// better, and a solution passes when score <= threshold.
static constexpr unsigned long long BPP9000_NUMBER_OF_WINDOWS = BPP9000_SEQUENCE_LENGTH - BPP9000_WINDOW_WIDTH;
#ifdef TESTNET
// A fresh root scores around 5500 and one walk reaches about 4500, so the mainnet bound is
// unreachable at depth 1 and the local tree never starts. Raise it on testnet so every walk qualifies
// and the tree deepens; deeper nodes must still strictly beat their parent.
static constexpr unsigned int BPP9000_SOLUTION_THRESHOLD_DEFAULT = 6500;
#else
static constexpr unsigned int BPP9000_SOLUTION_THRESHOLD_DEFAULT = 4000;
#ifdef TESTNET
// A fresh root scores around 5500 and one walk reaches about 4500, so the mainnet bound is
// unreachable at depth 1 and the local tree never starts. Raise it on testnet so every walk qualifies
// and the tree deepens; deeper nodes must still strictly beat their parent.
static constexpr unsigned int BPP9000_SOLUTION_THRESHOLD_DEFAULT = 6500;
#else
static constexpr unsigned int BPP9000_SOLUTION_THRESHOLD_DEFAULT = 4000;
#endif

// Ant colony: a solution must be published within this many ticks of the anchor its walk seeded from.
Expand Down
Loading