@@ -180,7 +180,7 @@ bool CZMQAbstractPublishNotifier::SendZmqMessage(const char *command, const void
180
180
bool CZMQPublishHashBlockNotifier::NotifyBlock (const CBlockIndex *pindex)
181
181
{
182
182
uint256 hash = pindex->GetBlockHash ();
183
- LogPrint (BCLog::ZMQ, " zmq: Publish hashblock %s\n " , hash.GetHex ());
183
+ LogPrint (BCLog::ZMQ, " zmq: Publish hashblock %s to %s \n " , hash.GetHex (), this -> address );
184
184
char data[32 ];
185
185
for (unsigned int i = 0 ; i < 32 ; i++)
186
186
data[31 - i] = hash.begin ()[i];
@@ -190,7 +190,7 @@ bool CZMQPublishHashBlockNotifier::NotifyBlock(const CBlockIndex *pindex)
190
190
bool CZMQPublishHashTransactionNotifier::NotifyTransaction (const CTransaction &transaction)
191
191
{
192
192
uint256 hash = transaction.GetHash ();
193
- LogPrint (BCLog::ZMQ, " zmq: Publish hashtx %s\n " , hash.GetHex ());
193
+ LogPrint (BCLog::ZMQ, " zmq: Publish hashtx %s to %s \n " , hash.GetHex (), this -> address );
194
194
char data[32 ];
195
195
for (unsigned int i = 0 ; i < 32 ; i++)
196
196
data[31 - i] = hash.begin ()[i];
@@ -199,7 +199,7 @@ bool CZMQPublishHashTransactionNotifier::NotifyTransaction(const CTransaction &t
199
199
200
200
bool CZMQPublishRawBlockNotifier::NotifyBlock (const CBlockIndex *pindex)
201
201
{
202
- LogPrint (BCLog::ZMQ, " zmq: Publish rawblock %s\n " , pindex->GetBlockHash ().GetHex ());
202
+ LogPrint (BCLog::ZMQ, " zmq: Publish rawblock %s to %s \n " , pindex->GetBlockHash ().GetHex (), this -> address );
203
203
204
204
const Consensus::Params& consensusParams = Params ().GetConsensus ();
205
205
CDataStream ss (SER_NETWORK, PROTOCOL_VERSION | RPCSerializationFlags ());
@@ -221,7 +221,7 @@ bool CZMQPublishRawBlockNotifier::NotifyBlock(const CBlockIndex *pindex)
221
221
bool CZMQPublishRawTransactionNotifier::NotifyTransaction (const CTransaction &transaction)
222
222
{
223
223
uint256 hash = transaction.GetHash ();
224
- LogPrint (BCLog::ZMQ, " zmq: Publish rawtx %s\n " , hash.GetHex ());
224
+ LogPrint (BCLog::ZMQ, " zmq: Publish rawtx %s to %s \n " , hash.GetHex (), this -> address );
225
225
CDataStream ss (SER_NETWORK, PROTOCOL_VERSION | RPCSerializationFlags ());
226
226
ss << transaction;
227
227
return SendZmqMessage (MSG_RAWTX, &(*ss.begin ()), ss.size ());
@@ -232,7 +232,7 @@ bool CZMQPublishRawTransactionNotifier::NotifyTransaction(const CTransaction &tr
232
232
bool CZMQPublishSequenceNotifier::NotifyBlockConnect (const CBlockIndex *pindex)
233
233
{
234
234
uint256 hash = pindex->GetBlockHash ();
235
- LogPrint (BCLog::ZMQ, " zmq: Publish sequence block connect %s\n " , hash.GetHex ());
235
+ LogPrint (BCLog::ZMQ, " zmq: Publish sequence block connect %s to %s \n " , hash.GetHex (), this -> address );
236
236
char data[sizeof (uint256)+1 ];
237
237
for (unsigned int i = 0 ; i < sizeof (uint256); i++)
238
238
data[sizeof (uint256) - 1 - i] = hash.begin ()[i];
@@ -243,7 +243,7 @@ bool CZMQPublishSequenceNotifier::NotifyBlockConnect(const CBlockIndex *pindex)
243
243
bool CZMQPublishSequenceNotifier::NotifyBlockDisconnect (const CBlockIndex *pindex)
244
244
{
245
245
uint256 hash = pindex->GetBlockHash ();
246
- LogPrint (BCLog::ZMQ, " zmq: Publish sequence block disconnect %s\n " , hash.GetHex ());
246
+ LogPrint (BCLog::ZMQ, " zmq: Publish sequence block disconnect %s to %s \n " , hash.GetHex (), this -> address );
247
247
char data[sizeof (uint256)+1 ];
248
248
for (unsigned int i = 0 ; i < sizeof (uint256); i++)
249
249
data[sizeof (uint256) - 1 - i] = hash.begin ()[i];
@@ -254,7 +254,7 @@ bool CZMQPublishSequenceNotifier::NotifyBlockDisconnect(const CBlockIndex *pinde
254
254
bool CZMQPublishSequenceNotifier::NotifyTransactionAcceptance (const CTransaction &transaction, uint64_t mempool_sequence)
255
255
{
256
256
uint256 hash = transaction.GetHash ();
257
- LogPrint (BCLog::ZMQ, " zmq: Publish hashtx mempool acceptance %s\n " , hash.GetHex ());
257
+ LogPrint (BCLog::ZMQ, " zmq: Publish hashtx mempool acceptance %s to %s \n " , hash.GetHex (), this -> address );
258
258
unsigned char data[sizeof (uint256)+sizeof (mempool_sequence)+1 ];
259
259
for (unsigned int i = 0 ; i < sizeof (uint256); i++)
260
260
data[sizeof (uint256) - 1 - i] = hash.begin ()[i];
@@ -266,7 +266,7 @@ bool CZMQPublishSequenceNotifier::NotifyTransactionAcceptance(const CTransaction
266
266
bool CZMQPublishSequenceNotifier::NotifyTransactionRemoval (const CTransaction &transaction, uint64_t mempool_sequence)
267
267
{
268
268
uint256 hash = transaction.GetHash ();
269
- LogPrint (BCLog::ZMQ, " zmq: Publish hashtx mempool removal %s\n " , hash.GetHex ());
269
+ LogPrint (BCLog::ZMQ, " zmq: Publish hashtx mempool removal %s to %s \n " , hash.GetHex (), this -> address );
270
270
unsigned char data[sizeof (uint256)+sizeof (mempool_sequence)+1 ];
271
271
for (unsigned int i = 0 ; i < sizeof (uint256); i++)
272
272
data[sizeof (uint256) - 1 - i] = hash.begin ()[i];
0 commit comments