From ef561949ca3ccd2f1ad980046b4cb650dbf31bbc Mon Sep 17 00:00:00 2001 From: selsta Date: Tue, 1 Mar 2022 00:18:09 +0100 Subject: [PATCH] Wizard: fix stagenet approx blockheight --- js/Wizard.js | 4 ++-- 1 file 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 }