Skip to content

Commit

Permalink
configure testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
gutongjiang committed Sep 9, 2019
1 parent 4b2cadf commit 874b787
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/cryptonote_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@
#define DIFFICULTY_CUT_ADJUST 6 // timestamps to cut after sorting
#define DIFFICULTY_BLOCKS_COUNT_ADJUST DIFFICULTY_WINDOW_ADJUST + DIFFICULTY_LAG_ADJUST
#define BLOCK_FUTURE_TIME_LIMIT_ADJUST (DIFFICULTY_WINDOW_ADJUST * DIFFICULTY_TARGET_V2 / 20)
#define DIFFICULTY_GUESS 2000
#define DIFFICULTY_ADJUST_HEIGHT 9000000
#define HF_VERSION_60 60
#define DIFFICULTY_GUESS 500 // testnet
#define DIFFICULTY_ADJUST_HEIGHT 1926600 // testnet
#define HF_VERSION_60 60

#define CRYPTONOTE_LOCKED_TX_ALLOWED_DELTA_SECONDS_V1 DIFFICULTY_TARGET_V1 * CRYPTONOTE_LOCKED_TX_ALLOWED_DELTA_BLOCKS
#define CRYPTONOTE_LOCKED_TX_ALLOWED_DELTA_SECONDS_V2 DIFFICULTY_TARGET_V2 * CRYPTONOTE_LOCKED_TX_ALLOWED_DELTA_BLOCKS
Expand Down
4 changes: 2 additions & 2 deletions src/cryptonote_core/blockchain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ static const struct {

{ 6, 971400, 0, 1501709789 },

// version 60 starts from block 1881040 , timestamp after block 1876000 + 1week
// { HF_VERSION_60, 1881040, 0, 1561887557 + 7*24*60*60 },
// version 60 starts from block 1926600
{ HF_VERSION_60, DIFFICULTY_ADJUST_HEIGHT, 0, 1568008900},
};
static const uint64_t testnet_hard_fork_version_1_till = 624633;

Expand Down

0 comments on commit 874b787

Please sign in to comment.