aboutsummaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorGavin Andresen <[email protected]>2011-09-26 06:06:16 -0700
committerGavin Andresen <[email protected]>2011-09-26 06:06:16 -0700
commit17e2c24645a10354849dec917b31f364e9056d58 (patch)
tree0fc4eda5307bbc9dc99eb3c8fec40b303644cd1c /src/util.h
parentMerge pull request #521 from laanwj/qt (diff)
parentMore denial-of-service misbehavior detection: version/addr/inv/getdata messages (diff)
downloaddiscoin-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.h1
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();