Open nvmd opened 9 years ago
Checkpoints::GetTotalBlocksEstimate will probably fail/produce wrong results on 0.10 branch (commit 047a89831760ff124740fe9f58411d57ee087078).
checkpoints.cpp:72-80
checkpoints.cpp
int GetTotalBlocksEstimate() { if (!fEnabled) return 0; const MapCheckpoints& checkpoints = *Params().Checkpoints().mapCheckpoints; return checkpoints.rbegin()->first; }
Suggest to change checkpoints.cpp:79 from return checkpoints.rbegin()->first; to return checkpoints.rbegin()->first + 1;
return checkpoints.rbegin()->first;
return checkpoints.rbegin()->first + 1;
Checkpoints::GetTotalBlocksEstimate will probably fail/produce wrong results on 0.10 branch (commit 047a89831760ff124740fe9f58411d57ee087078).
checkpoints.cpp
:72-80Suggest to change
checkpoints.cpp
:79 fromreturn checkpoints.rbegin()->first;
toreturn checkpoints.rbegin()->first + 1;