Skip to content

Commit

Permalink
get_approximate_blockchain_height fix applied to graft_wallet.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
mbg033 committed Jan 12, 2018
1 parent 0868914 commit a4f5b12
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/supernode/graft_wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a4f5b12

Please sign in to comment.