mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
Update adapt get_approximate_blockchain_height
This commit is contained in:
parent
ee07408ce1
commit
d552924515
1 changed files with 2 additions and 2 deletions
|
@ -9142,9 +9142,9 @@ uint64_t wallet2::get_daemon_blockchain_target_height(string &err)
|
|||
uint64_t wallet2::get_approximate_blockchain_height() const
|
||||
{
|
||||
// time of v8 fork
|
||||
const time_t fork_time = m_nettype == TESTNET ? 1529020649 : 1524622167;
|
||||
const time_t fork_time = m_nettype == TESTNET ? 1530634467 : m_nettype == STAGENET ? 1530635153 : 1524622167;
|
||||
// v8 fork block
|
||||
const uint64_t fork_block = m_nettype == TESTNET ? 10 : 6969;
|
||||
const uint64_t fork_block = m_nettype == TESTNET ? 10 : m_nettype == STAGENET ? 10 : 6969;
|
||||
// avg seconds per block
|
||||
const int seconds_per_block = DIFFICULTY_TARGET_V2;
|
||||
// Calculated blockchain height
|
||||
|
|
Loading…
Reference in a new issue