This commit is contained in:
Paul 2018-07-01 22:35:45 -05:00
parent e8a4c505d1
commit a78c8ad2c9

View File

@ -92,11 +92,11 @@ bool CZMQNotificationInterface::Initialize()
{
if ((*it)->Initialize(pcontext))
{
LogPrint("zmq", " Notifier %s ready (address = %s)\n", it->GetType(), it->GetAddress());
LogPrint("zmq", " Notifier %s ready (address = %s)\n", (*it)->GetType(), (*it)->GetAddress());
}
else
{
LogPrint("zmq", " Notifier %s failed (address = %s)\n", it->GetType(), it->GetAddress());
LogPrint("zmq", " Notifier %s failed (address = %s)\n", (*it)->GetType(), (*it)->GetAddress());
break;
}
}
@ -117,7 +117,7 @@ void CZMQNotificationInterface::Shutdown()
{
for (auto it=notifiers.begin(); it!=notifiers.end(); ++it)
{
LogPrint("zmq", " Shutdown notifier %s at %s\n", it->GetType(), it->GetAddress());
LogPrint("zmq", " Shutdown notifier %s at %s\n", (*it)->GetType(), (*it)->GetAddress());
(*it)->Shutdown();
}
zmq_ctx_destroy(pcontext);
@ -140,7 +140,7 @@ void CZMQNotificationInterface::UpdatedBlockTip(const CBlockIndex *pindexNew, co
else
{
(*it)->Shutdown();
it = notifiers.erase(i);
it = notifiers.erase(it);
}
}
}
@ -172,7 +172,7 @@ void CZMQNotificationInterface::NotifyTransactionLock(const CTransaction &tx)
else
{
(*it)->Shutdown();
it = notifiers.erase(i);
it = notifiers.erase(it);
}
}
}
@ -188,7 +188,7 @@ void CZMQNotificationInterface::NotifyGovernanceVote(const CGovernanceVote &vote
else
{
(*it)->Shutdown();
it = notifiers.erase(i);
it = notifiers.erase(it);
}
}
}
@ -204,7 +204,7 @@ void CZMQNotificationInterface::NotifyGovernanceObject(const CGovernanceObject &
else
{
(*it)->Shutdown();
it = notifiers.erase(i);
it = notifiers.erase(it);
}
}
}