@@ -78,7 +78,7 @@ bool CZMQAbstractPublishNotifier::Initialize(void *pcontext)
78
78
}
79
79
else
80
80
{
81
- LogPrint (" zmq" , " Reuse socket for address %s\n " , address);
81
+ LogPrint (" zmq" , " zmq: Reusing socket for address %s\n " , address);
82
82
83
83
psocket = i->second ->psocket ;
84
84
mapPublishNotifiers.insert (std::make_pair (address, this ));
@@ -120,7 +120,7 @@ void CZMQAbstractPublishNotifier::Shutdown()
120
120
bool CZMQPublishHashBlockNotifier::NotifyBlock (const CBlockIndex *pindex)
121
121
{
122
122
uint256 hash = pindex->GetBlockHash ();
123
- LogPrint (" zmq" , " Publish hash block %s\n " , hash.GetHex ());
123
+ LogPrint (" zmq" , " zmq: Publish hashblock %s\n " , hash.GetHex ());
124
124
char data[32 ];
125
125
for (unsigned int i = 0 ; i < 32 ; i++)
126
126
data[31 - i] = hash.begin ()[i];
@@ -131,7 +131,7 @@ bool CZMQPublishHashBlockNotifier::NotifyBlock(const CBlockIndex *pindex)
131
131
bool CZMQPublishHashTransactionNotifier::NotifyTransaction (const CTransaction &transaction)
132
132
{
133
133
uint256 hash = transaction.GetHash ();
134
- LogPrint (" zmq" , " Publish hash transaction %s\n " , hash.GetHex ());
134
+ LogPrint (" zmq" , " zmq: Publish hashtx %s\n " , hash.GetHex ());
135
135
char data[32 ];
136
136
for (unsigned int i = 0 ; i < 32 ; i++)
137
137
data[31 - i] = hash.begin ()[i];
@@ -141,7 +141,7 @@ bool CZMQPublishHashTransactionNotifier::NotifyTransaction(const CTransaction &t
141
141
142
142
bool CZMQPublishRawBlockNotifier::NotifyBlock (const CBlockIndex *pindex)
143
143
{
144
- LogPrint (" zmq" , " Publish raw block %s\n " , pindex->GetBlockHash ().GetHex ());
144
+ LogPrint (" zmq" , " zmq: Publish rawblock %s\n " , pindex->GetBlockHash ().GetHex ());
145
145
146
146
const Consensus::Params& consensusParams = Params ().GetConsensus ();
147
147
CDataStream ss (SER_NETWORK, PROTOCOL_VERSION);
@@ -164,7 +164,7 @@ bool CZMQPublishRawBlockNotifier::NotifyBlock(const CBlockIndex *pindex)
164
164
bool CZMQPublishRawTransactionNotifier::NotifyTransaction (const CTransaction &transaction)
165
165
{
166
166
uint256 hash = transaction.GetHash ();
167
- LogPrint (" zmq" , " Publish raw transaction %s\n " , hash.GetHex ());
167
+ LogPrint (" zmq" , " zmq: Publish rawtx %s\n " , hash.GetHex ());
168
168
CDataStream ss (SER_NETWORK, PROTOCOL_VERSION);
169
169
ss << transaction;
170
170
int rc = zmq_send_multipart (psocket, " rawtx" , 5 , &(*ss.begin ()), ss.size (), 0 );
0 commit comments