set testnet
This commit is contained in:
parent
96d1d08f48
commit
f9c0871877
|
@ -401,7 +401,7 @@ namespace cryptonote {
|
||||||
difficulty_type next_difficulty_test(std::vector<std::uint64_t> timestamps, std::vector<difficulty_type> cumulative_difficulties, uint64_t T, uint64_t N, uint64_t HEIGHT) {
|
difficulty_type next_difficulty_test(std::vector<std::uint64_t> timestamps, std::vector<difficulty_type> cumulative_difficulties, uint64_t T, uint64_t N, uint64_t HEIGHT) {
|
||||||
assert(timestamps.size() == cumulative_difficulties.size() && timestamps.size() <= N+1 );
|
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);
|
assert(timestamps.size() == N+1);
|
||||||
|
|
||||||
uint64_t L(0), next_D, i, this_timestamp(0), previous_timestamp(0), avg_D;
|
uint64_t L(0), next_D, i, this_timestamp(0), previous_timestamp(0), avg_D;
|
||||||
|
|
|
@ -56,7 +56,8 @@ const hardfork_t testnet_hard_forks[] = {
|
||||||
{ 13, 30, 0, 1559292691 },
|
{ 13, 30, 0, 1559292691 },
|
||||||
{ 14, 35, 0, 1559292774 },
|
{ 14, 35, 0, 1559292774 },
|
||||||
{ 15, 40, 0, 1573280497 },
|
{ 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]);
|
const size_t num_testnet_hard_forks = sizeof(testnet_hard_forks) / sizeof(testnet_hard_forks[0]);
|
||||||
|
|
||||||
|
|
|
@ -603,6 +603,8 @@ namespace nodetool
|
||||||
std::set<std::string> full_addrs;
|
std::set<std::string> full_addrs;
|
||||||
if (nettype == cryptonote::TESTNET)
|
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)
|
else if (nettype == cryptonote::STAGENET)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue