fix restore height
This commit is contained in:
parent
ba940d6df4
commit
6241c2e1de
|
@ -24,8 +24,8 @@ struct RestoreHeightLookup {
|
||||||
// date: ((now - lastKnownDate) / blockTime) - clearance
|
// date: ((now - lastKnownDate) / blockTime) - clearance
|
||||||
|
|
||||||
if(this->type == NetworkType::TESTNET) return 1;
|
if(this->type == NetworkType::TESTNET) return 1;
|
||||||
int blockTime = 120;
|
int blockTime = 300;
|
||||||
int blocksPerDay = 86400 / blockTime;
|
int blocksPerDay = 288;
|
||||||
int blockCalcClearance = blocksPerDay * 5;
|
int blockCalcClearance = blocksPerDay * 5;
|
||||||
QList<int> values = this->data.keys();
|
QList<int> values = this->data.keys();
|
||||||
if(date <= values.at(0))
|
if(date <= values.at(0))
|
||||||
|
|
Loading…
Reference in New Issue