fix restore height

This commit is contained in:
wowario 2021-02-20 10:42:33 +03:00
parent ba940d6df4
commit 6241c2e1de
No known key found for this signature in database
GPG key ID: 24DCBE762DE9C111

View file

@ -24,8 +24,8 @@ struct RestoreHeightLookup {
// date: ((now - lastKnownDate) / blockTime) - clearance
if(this->type == NetworkType::TESTNET) return 1;
int blockTime = 120;
int blocksPerDay = 86400 / blockTime;
int blockTime = 300;
int blocksPerDay = 288;
int blockCalcClearance = blocksPerDay * 5;
QList<int> values = this->data.keys();
if(date <= values.at(0))