@@ -78,7 +78,7 @@ bool CZMQAbstractPublishNotifier::Initialize(void *pcontext)
7878 }
7979 else
8080 {
81- LogPrint (" zmq" , " Reuse socket for address %s\n " , address);
81+ LogPrint (" zmq" , " zmq: Reusing socket for address %s\n " , address);
8282
8383 psocket = i->second ->psocket ;
8484 mapPublishNotifiers.insert (std::make_pair (address, this ));
@@ -120,7 +120,7 @@ void CZMQAbstractPublishNotifier::Shutdown()
120120bool CZMQPublishHashBlockNotifier::NotifyBlock (const CBlockIndex *pindex)
121121{
122122 uint256 hash = pindex->GetBlockHash ();
123- LogPrint (" zmq" , " Publish hash block %s\n " , hash.GetHex ());
123+ LogPrint (" zmq" , " zmq: Publish hashblock %s\n " , hash.GetHex ());
124124 char data[32 ];
125125 for (unsigned int i = 0 ; i < 32 ; i++)
126126 data[31 - i] = hash.begin ()[i];
@@ -131,7 +131,7 @@ bool CZMQPublishHashBlockNotifier::NotifyBlock(const CBlockIndex *pindex)
131131bool CZMQPublishHashTransactionNotifier::NotifyTransaction (const CTransaction &transaction)
132132{
133133 uint256 hash = transaction.GetHash ();
134- LogPrint (" zmq" , " Publish hash transaction %s\n " , hash.GetHex ());
134+ LogPrint (" zmq" , " zmq: Publish hashtx %s\n " , hash.GetHex ());
135135 char data[32 ];
136136 for (unsigned int i = 0 ; i < 32 ; i++)
137137 data[31 - i] = hash.begin ()[i];
@@ -141,7 +141,7 @@ bool CZMQPublishHashTransactionNotifier::NotifyTransaction(const CTransaction &t
141141
142142bool CZMQPublishRawBlockNotifier::NotifyBlock (const CBlockIndex *pindex)
143143{
144- LogPrint (" zmq" , " Publish raw block %s\n " , pindex->GetBlockHash ().GetHex ());
144+ LogPrint (" zmq" , " zmq: Publish rawblock %s\n " , pindex->GetBlockHash ().GetHex ());
145145
146146 const Consensus::Params& consensusParams = Params ().GetConsensus ();
147147 CDataStream ss (SER_NETWORK, PROTOCOL_VERSION);
@@ -164,7 +164,7 @@ bool CZMQPublishRawBlockNotifier::NotifyBlock(const CBlockIndex *pindex)
164164bool CZMQPublishRawTransactionNotifier::NotifyTransaction (const CTransaction &transaction)
165165{
166166 uint256 hash = transaction.GetHash ();
167- LogPrint (" zmq" , " Publish raw transaction %s\n " , hash.GetHex ());
167+ LogPrint (" zmq" , " zmq: Publish rawtx %s\n " , hash.GetHex ());
168168 CDataStream ss (SER_NETWORK, PROTOCOL_VERSION);
169169 ss << transaction;
170170 int rc = zmq_send_multipart (psocket, " rawtx" , 5 , &(*ss.begin ()), ss.size (), 0 );
0 commit comments