js: fix getApproximateBlockchainHeight (testnet)

This commit is contained in:
selsta 2021-05-08 16:45:10 +02:00
parent 426dc3fa47
commit c8c8736cf3
No known key found for this signature in database
GPG key ID: 2EA0A99A8B07AE5E

View file

@ -155,7 +155,7 @@ function getApproximateBlockchainHeight(_date, _nettype){
if(_nettype == "Testnet"){
// testnet got some huge rollbacks, so the estimation is way off
var approximateTestnetRolledBackBlocks = 303967;
var approximateTestnetRolledBackBlocks = 342100;
if(approxBlockchainHeight > approximateTestnetRolledBackBlocks)
approxBlockchainHeight -= approximateTestnetRolledBackBlocks
}