Remove unused partition check code

This code is unused and was disabled in BTC core and then deleted,
since it didn't work correctly: https://github.com/bitcoin/bitcoin/pull/8275
This commit is contained in:
Duke Leto
2021-02-22 04:44:57 -05:00
parent 3c03d271c2
commit fd0d0e6c75
2 changed files with 5 additions and 71 deletions

View File

@@ -239,8 +239,7 @@ 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 CBlockIndex *const &bestHeader, int64_t nPowTargetSpacing);
/** Check whether we are doing an initial block download (synchronizing from disk or network) */
bool IsInitialBlockDownload();
/** Check if the daemon is in sync, if not, it returns 1 or if due to best header only, the difference in best