Skip to content

Commit 27f260a

Browse files
committed
net: remove now unused global 'g_initial_block_download_completed'
1 parent aff7d92 commit 27f260a

File tree

3 files changed

+0
-13
lines changed

3 files changed

+0
-13
lines changed

src/net_processing.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2086,7 +2086,6 @@ void PeerManagerImpl::NewPoWValidBlock(const CBlockIndex *pindex, const std::sha
20862086
void PeerManagerImpl::UpdatedBlockTip(const CBlockIndex *pindexNew, const CBlockIndex *pindexFork, bool fInitialDownload)
20872087
{
20882088
SetBestBlock(pindexNew->nHeight, std::chrono::seconds{pindexNew->GetBlockTime()});
2089-
SetServiceFlagsIBDCache(!fInitialDownload);
20902089

20912090
// Don't relay inventory during initial block download.
20922091
if (fInitialDownload) return;

src/protocol.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99

1010
#include <atomic>
1111

12-
static std::atomic<bool> g_initial_block_download_completed(false);
13-
1412
namespace NetMsgType {
1513
const char* VERSION = "version";
1614
const char* VERACK = "verack";
@@ -125,12 +123,6 @@ bool CMessageHeader::IsCommandValid() const
125123
return true;
126124
}
127125

128-
void SetServiceFlagsIBDCache(bool state) {
129-
g_initial_block_download_completed = state;
130-
}
131-
132-
bool GetServicesFlagsIBDCache() { return g_initial_block_download_completed; }
133-
134126
CInv::CInv()
135127
{
136128
type = 0;

src/protocol.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -318,10 +318,6 @@ std::vector<std::string> serviceFlagsToStr(uint64_t flags);
318318
*/
319319
constexpr ServiceFlags SeedsServiceFlags() { return ServiceFlags(NODE_NETWORK | NODE_WITNESS); }
320320

321-
/** Set the current IBD status in order to figure out the desirable service flags */
322-
void SetServiceFlagsIBDCache(bool status);
323-
bool GetServicesFlagsIBDCache();
324-
325321
/**
326322
* Checks if a peer with the given service flags may be capable of having a
327323
* robust address-storage DB.

0 commit comments

Comments
 (0)