diff options
| author | Gavin Andresen <[email protected]> | 2011-09-26 06:06:16 -0700 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2011-09-26 06:06:16 -0700 |
| commit | 17e2c24645a10354849dec917b31f364e9056d58 (patch) | |
| tree | 0fc4eda5307bbc9dc99eb3c8fec40b303644cd1c /src/util.h | |
| parent | Merge pull request #521 from laanwj/qt (diff) | |
| parent | More denial-of-service misbehavior detection: version/addr/inv/getdata messages (diff) | |
| download | discoin-17e2c24645a10354849dec917b31f364e9056d58.tar.xz discoin-17e2c24645a10354849dec917b31f364e9056d58.zip | |
Merge pull request #517 from gavinandresen/DoSprevention
Denial-of-service prevention
Diffstat (limited to 'src/util.h')
| -rw-r--r-- | src/util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h index fabcaf930..dd5c41135 100644 --- a/src/util.h +++ b/src/util.h @@ -197,6 +197,7 @@ void ShrinkDebugFile(); int GetRandInt(int nMax); uint64 GetRand(uint64 nMax); int64 GetTime(); +void SetMockTime(int64 nMockTimeIn); int64 GetAdjustedTime(); void AddTimeData(unsigned int ip, int64 nTime); std::string FormatFullVersion(); |