diff options
| author | Jonas Schnelli <[email protected]> | 2015-09-16 16:42:23 +0200 |
|---|---|---|
| committer | Jonas Schnelli <[email protected]> | 2015-09-16 16:51:21 +0200 |
| commit | d76a8acb9b7bcabf43e3e05168a36911f187818d (patch) | |
| tree | 2322acc9cd1448c524e7507a517deca6da7cf43c /src/zmq/zmqnotificationinterface.cpp | |
| parent | configure.ac: Revert autotools-auto-updated 2.69 autoconf requirement (diff) | |
| download | discoin-d76a8acb9b7bcabf43e3e05168a36911f187818d.tar.xz discoin-d76a8acb9b7bcabf43e3e05168a36911f187818d.zip | |
use CBlockIndex* insted of uint256 for UpdatedBlockTip signal
- removes mapBlockIndex find operation
- theoretically allows removing the cs_main lock during zqm notification while introducing a new file position lock
Diffstat (limited to 'src/zmq/zmqnotificationinterface.cpp')
| -rw-r--r-- | src/zmq/zmqnotificationinterface.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zmq/zmqnotificationinterface.cpp b/src/zmq/zmqnotificationinterface.cpp index 71ccb59a4..388b86707 100644 --- a/src/zmq/zmqnotificationinterface.cpp +++ b/src/zmq/zmqnotificationinterface.cpp @@ -120,12 +120,12 @@ void CZMQNotificationInterface::Shutdown() } } -void CZMQNotificationInterface::UpdatedBlockTip(const uint256 &hash) +void CZMQNotificationInterface::UpdatedBlockTip(const CBlockIndex *pindex) { for (std::list<CZMQAbstractNotifier*>::iterator i = notifiers.begin(); i!=notifiers.end(); ) { CZMQAbstractNotifier *notifier = *i; - if (notifier->NotifyBlock(hash)) + if (notifier->NotifyBlock(pindex)) { i++; } |