Skip to content

Commit

Permalink
Merge pull request #4310
Browse files Browse the repository at this point in the history
7a3ea3a Wizard: fix stagenet getApproximateBlockchainHeight (selsta)
  • Loading branch information
luigi1111 committed Aug 13, 2024
2 parents a49cd13 + 7a3ea3a commit 8d110ec
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 8d110ec

Please sign in to comment.