diff options
| author | Matt Corallo <[email protected]> | 2016-10-04 13:52:57 -0400 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2016-10-04 13:52:57 -0400 |
| commit | 12ee1fe018e99bba6c2b74940ece3b39a45ed8d3 (patch) | |
| tree | cf210f0f9b50cd210ef7b0490e184145e7300400 /src/zmq/zmqnotificationinterface.cpp | |
| parent | Remove CConnman parameter from ProcessNewBlock/ActivateBestChain (diff) | |
| download | discoin-12ee1fe018e99bba6c2b74940ece3b39a45ed8d3.tar.xz discoin-12ee1fe018e99bba6c2b74940ece3b39a45ed8d3.zip | |
Always call UpdatedBlockTip, even if blocks were only disconnected
Diffstat (limited to 'src/zmq/zmqnotificationinterface.cpp')
| -rw-r--r-- | src/zmq/zmqnotificationinterface.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zmq/zmqnotificationinterface.cpp b/src/zmq/zmqnotificationinterface.cpp index 020cdfbdc..a0196fe18 100644 --- a/src/zmq/zmqnotificationinterface.cpp +++ b/src/zmq/zmqnotificationinterface.cpp @@ -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(); ) |