diff options
| author | Matt Corallo <[email protected]> | 2016-09-30 17:40:03 -0400 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2016-10-04 12:35:07 -0400 |
| commit | 87e7d7280739cccfabaffbbfbbbcfa21e943da3a (patch) | |
| tree | 07cbce45120a9da86345716213c2203b65e250d8 /src/zmq/zmqnotificationinterface.cpp | |
| parent | Merge #8856: Globals: Decouple GetConfigFile and ReadConfigFile from global m... (diff) | |
| download | discoin-87e7d7280739cccfabaffbbfbbbcfa21e943da3a.tar.xz discoin-87e7d7280739cccfabaffbbfbbbcfa21e943da3a.zip | |
Make validationinterface.UpdatedBlockTip more verbose
In anticipation of making all the callbacks out of block processing
flow through it. Note that vHashes will always have something in it
since pindexFork != pindexNewTip.
Diffstat (limited to 'src/zmq/zmqnotificationinterface.cpp')
| -rw-r--r-- | src/zmq/zmqnotificationinterface.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/zmq/zmqnotificationinterface.cpp b/src/zmq/zmqnotificationinterface.cpp index 376e7dec5..020cdfbdc 100644 --- a/src/zmq/zmqnotificationinterface.cpp +++ b/src/zmq/zmqnotificationinterface.cpp @@ -124,12 +124,15 @@ void CZMQNotificationInterface::Shutdown() } } -void CZMQNotificationInterface::UpdatedBlockTip(const CBlockIndex *pindex) +void CZMQNotificationInterface::UpdatedBlockTip(const CBlockIndex *pindexNew, const CBlockIndex *pindexFork, bool fInitialDownload) { + if (fInitialDownload) + return; + for (std::list<CZMQAbstractNotifier*>::iterator i = notifiers.begin(); i!=notifiers.end(); ) { CZMQAbstractNotifier *notifier = *i; - if (notifier->NotifyBlock(pindex)) + if (notifier->NotifyBlock(pindexNew)) { i++; } |