aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorselsta <selsta@sent.at>2024-04-28 21:13:18 +0200
committerselsta <selsta@sent.at>2024-04-28 21:13:18 +0200
commit7a3ea3a93cb57ef5f28b5cdeae7fba9f80223168 (patch)
tree45a9970cb42eccbd61f71d09944da953024558df /js
parentf0b1b8cd0896b8de6e5272d2206014d7db892942 (diff)
downloadmonzero-gui-7a3ea3a93cb57ef5f28b5cdeae7fba9f80223168.tar.gz
monzero-gui-7a3ea3a93cb57ef5f28b5cdeae7fba9f80223168.tar.xz
monzero-gui-7a3ea3a93cb57ef5f28b5cdeae7fba9f80223168.zip
Wizard: fix stagenet getApproximateBlockchainHeight
Diffstat (limited to 'js')
-rw-r--r--js/Wizard.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/Wizard.js b/js/Wizard.js
index d47d1684..f1a56ff6 100644
--- a/js/Wizard.js
+++ b/js/Wizard.js
@@ -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
}