1
mirror of https://github.com/monero-project/monero-gui synced 2024-11-24 11:17:15 +01:00

Wizard: fix stagenet approx blockheight

This commit is contained in:
selsta 2022-03-01 00:18:09 +01:00
parent e9afaa9cc8
commit ef561949ca
No known key found for this signature in database
GPG Key ID: 2EA0A99A8B07AE5E

View File

@ -164,9 +164,9 @@ function getApproximateBlockchainHeight(_date, _nettype){
secondsPerBlock = secondsPerBlockV2;
}
if(_nettype == "Testnet"){
if(_nettype == "Testnet" || _nettype == "Stagenet"){
// testnet got some huge rollbacks, so the estimation is way off
var approximateTestnetRolledBackBlocks = 342100;
var approximateTestnetRolledBackBlocks = _nettype == "Testnet" ? 342100 : 30000;
if(approxBlockchainHeight > approximateTestnetRolledBackBlocks)
approxBlockchainHeight -= approximateTestnetRolledBackBlocks
}