Merge pull request #4310

7a3ea3a Wizard: fix stagenet getApproximateBlockchainHeight (selsta)
This commit is contained in:
luigi1111 2024-08-13 12:38:27 -04:00
commit 8d110ec790
No known key found for this signature in database
GPG key ID: F4ACA0183641E010

View file

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