Merge pull request #3467

c8c8736 js: fix getApproximateBlockchainHeight (testnet) (selsta)
This commit is contained in:
luigi1111 2021-05-12 23:27:10 -05:00
commit 6b580cbb00
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010

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
}