Merge pull request #5947

36cba8f Alert if it is very likely we are getting a bad chain (Gavin Andresen)
This commit is contained in:
Wladimir J. van der Laan
2015-05-26 10:36:19 +02:00
4 changed files with 133 additions and 0 deletions

View File

@@ -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 */