Move network-time related functions to timedata.cpp/h
The network time-offset-mangement functions from util.cpp are moved to timedata.(cpp|h). This breaks the dependency of util on netbase.
This commit is contained in:
@@ -32,7 +32,6 @@
|
||||
#include <boost/filesystem/path.hpp>
|
||||
#include <boost/thread.hpp>
|
||||
|
||||
class CNetAddr;
|
||||
class uint256;
|
||||
|
||||
static const int64_t COIN = 100000000;
|
||||
@@ -191,11 +190,8 @@ uint64_t GetRand(uint64_t nMax);
|
||||
uint256 GetRandHash();
|
||||
int64_t GetTime();
|
||||
void SetMockTime(int64_t nMockTimeIn);
|
||||
int64_t GetAdjustedTime();
|
||||
int64_t GetTimeOffset();
|
||||
std::string FormatFullVersion();
|
||||
std::string FormatSubVersion(const std::string& name, int nClientVersion, const std::vector<std::string>& comments);
|
||||
void AddTimeData(const CNetAddr& ip, int64_t nTime);
|
||||
void runCommand(std::string strCommand);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user