From 7a3ea3a93cb57ef5f28b5cdeae7fba9f80223168 Mon Sep 17 00:00:00 2001 From: selsta Date: Sun, 28 Apr 2024 21:13:18 +0200 Subject: [PATCH] Wizard: fix stagenet getApproximateBlockchainHeight --- js/Wizard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }