aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2022-06-09 13:53:20 -0500
committerluigi1111 <luigi1111w@gmail.com>2022-06-09 13:53:20 -0500
commit3031e7c37f471350c3a49ea1d019bcc4ee9f2a48 (patch)
tree6571803633ea173988c3ab3734f7a74bc1090ac1
parentab69b9c9b23ed0ca5610d5d29e1cbd18bb9d8d14 (diff)
parentef561949ca3ccd2f1ad980046b4cb650dbf31bbc (diff)
downloadmonzero-gui-3031e7c37f471350c3a49ea1d019bcc4ee9f2a48.tar.gz
monzero-gui-3031e7c37f471350c3a49ea1d019bcc4ee9f2a48.tar.xz
monzero-gui-3031e7c37f471350c3a49ea1d019bcc4ee9f2a48.zip
Merge pull request #3846
ef56194 Wizard: fix stagenet approx blockheight (selsta)
-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
}