Skip to content

Commit

Permalink
Wizard: fix stagenet getApproximateBlockchainHeight
Browse files Browse the repository at this point in the history
  • Loading branch information
selsta committed Apr 28, 2024
1 parent f0b1b8c commit 7a3ea3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/Wizard.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 7a3ea3a

Please sign in to comment.