From a4f5b121bab1da74b4f0047e55f800e0d7241c6d Mon Sep 17 00:00:00 2001 From: Ilya Kitaev Date: Fri, 12 Jan 2018 15:56:11 +0300 Subject: [PATCH] get_approximate_blockchain_height fix applied to graft_wallet.cpp --- src/supernode/graft_wallet.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/supernode/graft_wallet.cpp b/src/supernode/graft_wallet.cpp index b7b60def1..205ab8747 100644 --- a/src/supernode/graft_wallet.cpp +++ b/src/supernode/graft_wallet.cpp @@ -5659,10 +5659,10 @@ uint64_t GraftWallet::get_daemon_blockchain_target_height(string &err) uint64_t GraftWallet::get_approximate_blockchain_height() const { - // time of v2 fork - const time_t fork_time = m_testnet ? 1448285909 : 1458748658; + // time of begining: testnet: 2018-01-12, mainnet: 2018-01-18; + const time_t fork_time = m_testnet ? 1515715200 : 1516233600; // v2 fork block - const uint64_t fork_block = m_testnet ? 624634 : 1009827; + const uint64_t fork_block = m_testnet ? 1 : 1; // avg seconds per block const int seconds_per_block = DIFFICULTY_TARGET_V2; // Calculated blockchain height