aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorselsta <selsta@sent.at>2022-03-01 00:18:09 +0100
committerselsta <selsta@sent.at>2022-03-01 00:18:09 +0100
commitef561949ca3ccd2f1ad980046b4cb650dbf31bbc (patch)
treedb8a21972e667a3b7f0db051f3949738b484507e /js
parente9afaa9cc89acc06b41e05748c5795efdeee9627 (diff)
downloadmonzero-gui-ef561949ca3ccd2f1ad980046b4cb650dbf31bbc.tar.gz
monzero-gui-ef561949ca3ccd2f1ad980046b4cb650dbf31bbc.tar.xz
monzero-gui-ef561949ca3ccd2f1ad980046b4cb650dbf31bbc.zip
Wizard: fix stagenet approx blockheight
Diffstat (limited to '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
}