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

Output request destination node address in sync log messages #5557

Merged
merged 2 commits into from
Apr 11, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
## [1.7.0] - Unreleased

- Added: [#5537](https://github.com/ethereum/aleth/pull/5537) Creating Ethereum Node Record (ENR) at program start.
- Added: [#5557](https://github.com/ethereum/aleth/pull/5557) Improved debug logging of full sync.
- Changed: [#5559](https://github.com/ethereum/aleth/pull/5559) Update peer validation error messages.


## [1.6.0] - Unreleased

- Added: [#5485](https://github.com/ethereum/aleth/pull/5485) aleth-bootnode now by default connects to official Ethereum bootnodes. This can be disabled with `--no-bootstrap` flag.
Expand Down
6 changes: 4 additions & 2 deletions libethereum/EthereumPeer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,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 @@ -112,7 +112,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 @@ -148,6 +148,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