limit UpdatedBlockTip in IBD (#1570)

This commit is contained in:
chaeplin 2017-08-12 03:51:24 +09:00 committed by UdjinM6
parent c608bbec1d
commit 0fc13434b4

View File

@ -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);