Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

Commit

Permalink
Output request destination node address in sync log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
gumb0 committed Apr 10, 2019
1 parent 2102a41 commit 73d82d9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions libethereum/EthereumPeer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ void EthereumPeer::requestBlockHeaders(
m_host->prep(m_id, c_ethCapability, s, GetBlockHeadersPacket, 4)
<< _startNumber << _count << _skip << (_reverse ? 1 : 0);
LOG(m_logger) << "Requesting " << _count << " block headers starting from " << _startNumber
<< (_reverse ? " in reverse" : "");
<< (_reverse ? " in reverse" : "") << " from " << m_id;
m_lastAskedHeaders = _count;
m_host->sealAndSend(m_id, s);
}
Expand All @@ -122,7 +122,7 @@ void EthereumPeer::requestBlockHeaders(
m_host->prep(m_id, c_ethCapability, s, GetBlockHeadersPacket, 4)
<< _startHash << _count << _skip << (_reverse ? 1 : 0);
LOG(m_logger) << "Requesting " << _count << " block headers starting from " << _startHash
<< (_reverse ? " in reverse" : "");
<< (_reverse ? " in reverse" : "") << " from " << m_id;
m_lastAskedHeaders = _count;
m_host->sealAndSend(m_id, s);
}
Expand Down Expand Up @@ -158,6 +158,8 @@ void EthereumPeer::requestByHashes(
m_host->prep(m_id, c_ethCapability, s, _packetType, _hashes.size());
for (auto const& i : _hashes)
s << i;
LOG(m_logger) << "Requesting " << _hashes.size() << " " << ::toString(_asking) << " from "
<< m_id;
m_host->sealAndSend(m_id, s);
}
else
Expand Down

0 comments on commit 73d82d9

Please sign in to comment.