mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-02-22 01:30:21 +02:00
Merge pull request #3467
c8c8736
js: fix getApproximateBlockchainHeight (testnet) (selsta)
This commit is contained in:
commit
6b580cbb00
@ -155,7 +155,7 @@ function getApproximateBlockchainHeight(_date, _nettype){
|
|||||||
|
|
||||||
if(_nettype == "Testnet"){
|
if(_nettype == "Testnet"){
|
||||||
// testnet got some huge rollbacks, so the estimation is way off
|
// testnet got some huge rollbacks, so the estimation is way off
|
||||||
var approximateTestnetRolledBackBlocks = 303967;
|
var approximateTestnetRolledBackBlocks = 342100;
|
||||||
if(approxBlockchainHeight > approximateTestnetRolledBackBlocks)
|
if(approxBlockchainHeight > approximateTestnetRolledBackBlocks)
|
||||||
approxBlockchainHeight -= approximateTestnetRolledBackBlocks
|
approxBlockchainHeight -= approximateTestnetRolledBackBlocks
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user