Skip to content

Commit

Permalink
Lower beta network work threshold to 1/64x base (#2540)
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermelawless committed Feb 6, 2020
1 parent a796c71 commit 9627853
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nano/core_test/difficulty.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion nano/lib/config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class network_constants

/** 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 */
Expand Down

0 comments on commit 9627853

Please sign in to comment.