X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fcheckpoints.h;h=347b2d08ea9f5d9ad0be83af28ff7e6ac995ea4a;hb=4a6759691d71bf2a7d2a0a9e4710f0887e66ab02;hp=c35289497b234685baf83ff4231a16c3064c634b;hpb=ecf1815faa0e16811c13f01b608336212b0b9070;p=novacoin.git diff --git a/src/checkpoints.h b/src/checkpoints.h index c352894..347b2d0 100644 --- a/src/checkpoints.h +++ b/src/checkpoints.h @@ -5,10 +5,11 @@ #define BITCOIN_CHECKPOINT_H #include -#include "net.h" #include "util.h" +#include "net.h" -#define CHECKPOINT_MAX_SPAN (60 * 60) // max 1 hour before latest block +// max 1 hour before latest block +static const int64_t CHECKPOINT_MAX_SPAN = nOneHour; #ifdef WIN32 #undef STRICT @@ -46,7 +47,7 @@ namespace Checkpoints CBlockIndex* GetLastCheckpoint(const std::map& mapBlockIndex); // Returns last checkpoint timestamp - int GetLastCheckpointTime(); + unsigned int GetLastCheckpointTime(); extern uint256 hashSyncCheckpoint; extern CSyncCheckpoint checkpointMessage;