From f9c08718770e4808b37402e69a2ef6aa91814326 Mon Sep 17 00:00:00 2001 From: wowario Date: Sun, 20 Sep 2020 07:55:59 +0300 Subject: [PATCH] set testnet --- src/cryptonote_basic/difficulty.cpp | 2 +- src/hardforks/hardforks.cpp | 3 ++- src/p2p/net_node.inl | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/cryptonote_basic/difficulty.cpp b/src/cryptonote_basic/difficulty.cpp index c66090ec0..4189acb35 100644 --- a/src/cryptonote_basic/difficulty.cpp +++ b/src/cryptonote_basic/difficulty.cpp @@ -401,7 +401,7 @@ namespace cryptonote { difficulty_type next_difficulty_test(std::vector timestamps, std::vector cumulative_difficulties, uint64_t T, uint64_t N, uint64_t HEIGHT) { assert(timestamps.size() == cumulative_difficulties.size() && timestamps.size() <= N+1 ); - if (HEIGHT < N) { return 1337; } + if (HEIGHT < N) { return 100; } assert(timestamps.size() == N+1); uint64_t L(0), next_D, i, this_timestamp(0), previous_timestamp(0), avg_D; diff --git a/src/hardforks/hardforks.cpp b/src/hardforks/hardforks.cpp index 044ade319..3554bde2e 100644 --- a/src/hardforks/hardforks.cpp +++ b/src/hardforks/hardforks.cpp @@ -56,7 +56,8 @@ const hardfork_t testnet_hard_forks[] = { { 13, 30, 0, 1559292691 }, { 14, 35, 0, 1559292774 }, { 15, 40, 0, 1573280497 }, - { 16, 45, 0, 1589210508 }, + { 16, 45, 0, 1600576508 }, + { 17, 50, 0, 1600576524 }, }; const size_t num_testnet_hard_forks = sizeof(testnet_hard_forks) / sizeof(testnet_hard_forks[0]); diff --git a/src/p2p/net_node.inl b/src/p2p/net_node.inl index 108618015..a18899117 100644 --- a/src/p2p/net_node.inl +++ b/src/p2p/net_node.inl @@ -603,6 +603,8 @@ namespace nodetool std::set full_addrs; if (nettype == cryptonote::TESTNET) { + full_addrs.insert("207.254.29.107:11180"); + full_addrs.insert("51.81.32.130:11180"); } else if (nettype == cryptonote::STAGENET) {