File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -10152,11 +10152,11 @@ uint64_t wallet2::get_daemon_blockchain_target_height(string &err)
10152
10152
uint64_t wallet2::get_approximate_blockchain_height () const
10153
10153
{
10154
10154
// time of v2 fork
10155
- const time_t fork_time = m_nettype == TESTNET ? 1448285909 : m_nettype == STAGENET ? 1520937818 : 1458748658 ;
10155
+ const time_t fork_time = m_nettype == TESTNET ? 1448285909 : m_nettype == STAGENET ? 1520937818 : 1520584977 ;
10156
10156
// v2 fork block
10157
- const uint64_t fork_block = m_nettype == TESTNET ? 624634 : m_nettype == STAGENET ? 32000 : 1009827 ;
10157
+ const uint64_t fork_block = m_nettype == TESTNET ? 624634 : m_nettype == STAGENET ? 32000 : 67500 ;
10158
10158
// avg seconds per block
10159
- const int seconds_per_block = DIFFICULTY_TARGET_V2 ;
10159
+ const int seconds_per_block = DIFFICULTY_TARGET_V5 ;
10160
10160
// Calculated blockchain height
10161
10161
uint64_t approx_blockchain_height = fork_block + (time (NULL ) - fork_time)/seconds_per_block;
10162
10162
// testnet got some huge rollbacks, so the estimation is way off
You can’t perform that action at this time.
0 commit comments