Lower beta network work threshold to 1/64x base (#2540)

This commit is contained in:
Guilherme Lawless 2020-02-06 19:50:20 +00:00 committed by GitHub
commit 9627853df4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -62,7 +62,7 @@ TEST (difficulty, multipliers)
TEST (difficulty, network_constants)
{
ASSERT_NEAR (16., nano::difficulty::to_multiplier (nano::network_constants::publish_full_threshold, nano::network_constants::publish_beta_threshold), 1e-10);
ASSERT_NEAR (64., nano::difficulty::to_multiplier (nano::network_constants::publish_full_threshold, nano::network_constants::publish_beta_threshold), 1e-10);
}
TEST (difficulty, overflow)

View file

@ -90,7 +90,7 @@ public:
/** Network work thresholds. ~5 seconds of work for the live network */
static uint64_t const publish_full_threshold{ 0xffffffc000000000 };
static uint64_t const publish_beta_threshold{ 0xfffffc0000000000 }; // 16x lower than full
static uint64_t const publish_beta_threshold{ 0xfffff00000000000 }; // 64x lower than full
static uint64_t const publish_test_threshold{ 0xff00000000000000 }; // very low for tests
/** Error message when an invalid network is specified */