mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-10 14:08:40 +01:00
zmq: Fix implicit-integer-sign-change
This commit is contained in:
@@ -209,9 +209,10 @@ bool CZMQPublishHashBlockNotifier::NotifyBlock(const CBlockIndex *pindex)
|
|||||||
{
|
{
|
||||||
uint256 hash = pindex->GetBlockHash();
|
uint256 hash = pindex->GetBlockHash();
|
||||||
LogPrint(BCLog::ZMQ, "zmq: Publish hashblock %s to %s\n", hash.GetHex(), this->address);
|
LogPrint(BCLog::ZMQ, "zmq: Publish hashblock %s to %s\n", hash.GetHex(), this->address);
|
||||||
char data[32];
|
uint8_t data[32];
|
||||||
for (unsigned int i = 0; i < 32; i++)
|
for (unsigned int i = 0; i < 32; i++) {
|
||||||
data[31 - i] = hash.begin()[i];
|
data[31 - i] = hash.begin()[i];
|
||||||
|
}
|
||||||
return SendZmqMessage(MSG_HASHBLOCK, data, 32);
|
return SendZmqMessage(MSG_HASHBLOCK, data, 32);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -219,9 +220,10 @@ bool CZMQPublishHashTransactionNotifier::NotifyTransaction(const CTransaction &t
|
|||||||
{
|
{
|
||||||
uint256 hash = transaction.GetHash();
|
uint256 hash = transaction.GetHash();
|
||||||
LogPrint(BCLog::ZMQ, "zmq: Publish hashtx %s to %s\n", hash.GetHex(), this->address);
|
LogPrint(BCLog::ZMQ, "zmq: Publish hashtx %s to %s\n", hash.GetHex(), this->address);
|
||||||
char data[32];
|
uint8_t data[32];
|
||||||
for (unsigned int i = 0; i < 32; i++)
|
for (unsigned int i = 0; i < 32; i++) {
|
||||||
data[31 - i] = hash.begin()[i];
|
data[31 - i] = hash.begin()[i];
|
||||||
|
}
|
||||||
return SendZmqMessage(MSG_HASHTX, data, 32);
|
return SendZmqMessage(MSG_HASHTX, data, 32);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -73,7 +73,6 @@ implicit-integer-sign-change:script/interpreter.cpp
|
|||||||
implicit-integer-sign-change:serialize.h
|
implicit-integer-sign-change:serialize.h
|
||||||
implicit-integer-sign-change:test/streams_tests.cpp
|
implicit-integer-sign-change:test/streams_tests.cpp
|
||||||
implicit-integer-sign-change:txmempool.cpp
|
implicit-integer-sign-change:txmempool.cpp
|
||||||
implicit-integer-sign-change:zmq/zmqpublishnotifier.cpp
|
|
||||||
implicit-signed-integer-truncation:addrman.cpp
|
implicit-signed-integer-truncation:addrman.cpp
|
||||||
implicit-signed-integer-truncation:addrman.h
|
implicit-signed-integer-truncation:addrman.h
|
||||||
implicit-signed-integer-truncation:crypto/
|
implicit-signed-integer-truncation:crypto/
|
||||||
|
|||||||
Reference in New Issue
Block a user