limit UpdatedBlockTip in IBD (#1570)
This commit is contained in:
parent
c608bbec1d
commit
0fc13434b4
@ -20,6 +20,9 @@ CDSNotificationInterface::~CDSNotificationInterface()
|
||||
|
||||
void CDSNotificationInterface::UpdatedBlockTip(const CBlockIndex *pindexNew, const CBlockIndex *pindexFork, bool fInitialDownload)
|
||||
{
|
||||
if (fInitialDownload || pindexNew == pindexFork) // In IBD or blocks were disconnected without any new ones
|
||||
return;
|
||||
|
||||
mnodeman.UpdatedBlockTip(pindexNew);
|
||||
privateSendClient.UpdatedBlockTip(pindexNew);
|
||||
instantsend.UpdatedBlockTip(pindexNew);
|
||||
|
Loading…
Reference in New Issue
Block a user