diff options
| author | Wladimir J. van der Laan <[email protected]> | 2015-05-26 10:36:19 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2015-05-26 10:41:17 +0200 |
| commit | e9af4e65b5afaa870f6cdcf2f7c2ee56c703bffa (patch) | |
| tree | 97a975217069313fb51b2e9f3225c65dd2fc313c /src/main.h | |
| parent | Merge pull request #6159 (diff) | |
| parent | Alert if it is very likely we are getting a bad chain (diff) | |
| download | discoin-e9af4e65b5afaa870f6cdcf2f7c2ee56c703bffa.tar.xz discoin-e9af4e65b5afaa870f6cdcf2f7c2ee56c703bffa.zip | |
Merge pull request #5947
36cba8f Alert if it is very likely we are getting a bad chain (Gavin Andresen)
Diffstat (limited to 'src/main.h')
| -rw-r--r-- | src/main.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.h b/src/main.h index 07a709b75..6c380b104 100644 --- a/src/main.h +++ b/src/main.h @@ -194,6 +194,8 @@ bool ProcessMessages(CNode* pfrom); bool SendMessages(CNode* pto, bool fSendTrickle); /** Run an instance of the script checking thread */ void ThreadScriptCheck(); +/** Try to detect Partition (network isolation) attacks against us */ +void PartitionCheck(bool (*initialDownloadCheck)(), CCriticalSection& cs, const CChain& chain, int64_t nPowTargetSpacing); /** Check whether we are doing an initial block download (synchronizing from disk or network) */ bool IsInitialBlockDownload(); /** Format a string that describes several potential problems detected by the core */ |