Always call UpdatedBlockTip, even if blocks were only disconnected

This commit is contained in:
Matt Corallo
2016-10-04 13:52:57 -04:00
parent f5efa28393
commit 12ee1fe018
2 changed files with 5 additions and 8 deletions

View File

@@ -126,7 +126,7 @@ void CZMQNotificationInterface::Shutdown()
void CZMQNotificationInterface::UpdatedBlockTip(const CBlockIndex *pindexNew, const CBlockIndex *pindexFork, bool fInitialDownload)
{
if (fInitialDownload)
if (fInitialDownload || pindexNew == pindexFork) // In IBD or blocks were disconnected without any new ones
return;
for (std::list<CZMQAbstractNotifier*>::iterator i = notifiers.begin(); i!=notifiers.end(); )