Add setter for g_initial_block_download_completed

This commit is contained in:
Jonas Schnelli
2018-02-17 21:28:50 +11:00
parent 3f56df5b75
commit eb9183535d
3 changed files with 17 additions and 9 deletions

View File

@@ -892,7 +892,7 @@ void PeerLogicValidation::UpdatedBlockTip(const CBlockIndex *pindexNew, const CB
const int nNewHeight = pindexNew->nHeight;
connman->SetBestHeight(nNewHeight);
g_initial_block_download_completed = !fInitialDownload;
SetServiceFlagsIBDCache(!fInitialDownload);
if (!fInitialDownload) {
// Find the hashes of all blocks that weren't previously in the best chain.
std::vector<uint256> vHashes;