mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-20 17:54:36 +00:00
Wizard: fix stagenet approx blockheight
This commit is contained in:
parent
e9afaa9cc8
commit
ef561949ca
1 changed files with 2 additions and 2 deletions
|
@ -164,9 +164,9 @@ function getApproximateBlockchainHeight(_date, _nettype){
|
||||||
secondsPerBlock = secondsPerBlockV2;
|
secondsPerBlock = secondsPerBlockV2;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(_nettype == "Testnet"){
|
if(_nettype == "Testnet" || _nettype == "Stagenet"){
|
||||||
// testnet got some huge rollbacks, so the estimation is way off
|
// testnet got some huge rollbacks, so the estimation is way off
|
||||||
var approximateTestnetRolledBackBlocks = 342100;
|
var approximateTestnetRolledBackBlocks = _nettype == "Testnet" ? 342100 : 30000;
|
||||||
if(approxBlockchainHeight > approximateTestnetRolledBackBlocks)
|
if(approxBlockchainHeight > approximateTestnetRolledBackBlocks)
|
||||||
approxBlockchainHeight -= approximateTestnetRolledBackBlocks
|
approxBlockchainHeight -= approximateTestnetRolledBackBlocks
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue