warning message if clock is too far off

This commit is contained in:
Satoshi Nakamoto
2010-08-28 00:50:40 +00:00
committed by Gavin Andresen
parent 7a37c906a1
commit c545563d46
6 changed files with 64 additions and 14 deletions

6
util.h
View File

@@ -143,6 +143,7 @@ extern char pszSetDataDir[MAX_PATH];
extern bool fShutdown;
extern bool fDaemon;
extern bool fCommandLine;
extern string strWarning;
void RandAddSeed();
void RandAddSeedPerfmon();
@@ -298,6 +299,11 @@ inline int64 roundint64(double d)
return (int64)(d > 0 ? d + 0.5 : d - 0.5);
}
inline int64 abs64(int64 n)
{
return (n >= 0 ? n : -n);
}
template<typename T>
string HexStr(const T itbegin, const T itend, bool fSpaces=true)
{