aboutsummaryrefslogtreecommitdiff
path: root/src/main.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2015-05-26 10:36:19 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2015-05-26 10:41:17 +0200
commite9af4e65b5afaa870f6cdcf2f7c2ee56c703bffa (patch)
tree97a975217069313fb51b2e9f3225c65dd2fc313c /src/main.h
parente1412d3e96ff11d05d727bebedcc42698853cccc (diff)
parent36cba8f1182e8284ec0017e57c5ffb519cd9798f (diff)
downloadbitcoin-e9af4e65b5afaa870f6cdcf2f7c2ee56c703bffa.tar.xz
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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.h b/src/main.h
index 07a709b75c..6c380b104d 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 */