aboutsummaryrefslogtreecommitdiff
path: root/js/Wizard.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Wizard.js')
-rw-r--r--js/Wizard.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/Wizard.js b/js/Wizard.js
index 76b41864..d47d1684 100644
--- a/js/Wizard.js
+++ b/js/Wizard.js
@@ -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
}