diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2024-08-13 12:38:27 -0400 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2024-08-13 12:38:27 -0400 |
| commit | 8d110ec790f6b79881d0bf1b799942de03fb5074 (patch) | |
| tree | e2d7c284b43c4c8de77e701f4db23d58b8fe0c20 /js | |
| parent | a49cd13a83557dc8e93282cd0f7a13e7785a50d8 (diff) | |
| parent | 7a3ea3a93cb57ef5f28b5cdeae7fba9f80223168 (diff) | |
| download | monzero-gui-8d110ec790f6b79881d0bf1b799942de03fb5074.tar.gz monzero-gui-8d110ec790f6b79881d0bf1b799942de03fb5074.tar.xz monzero-gui-8d110ec790f6b79881d0bf1b799942de03fb5074.zip | |
Merge pull request #4310
7a3ea3a Wizard: fix stagenet getApproximateBlockchainHeight (selsta)
Diffstat (limited to 'js')
| -rw-r--r-- | js/Wizard.js | 2 |
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 } |
