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

Commit 2a6f7dd

Browse files
committed
Log expected/actual abridged genesis hashes
1 parent 5eadfb7 commit 2a6f7dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libethereum/EthereumPeer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ std::string EthereumPeer::validate(
6262
error << "Protocol version mismatch. Host protocol version: " << _hostProtocolVersion
6363
<< ", peer protocol version: " << m_protocolVersion;
6464
else if (m_genesisHash != _hostGenesisHash)
65-
error << "Genesis hash mismatch. Host genesis hash: " << _hostGenesisHash
66-
<< ", peer genesis hash: " << m_genesisHash;
65+
error << "Genesis hash mismatch. Host genesis hash: " << _hostGenesisHash.abridged()
66+
<< ", peer genesis hash: " << m_genesisHash.abridged();
6767
else if (m_asking != Asking::State && m_asking != Asking::Nothing)
6868
error << "Peer banned for unexpected status message.";
6969

0 commit comments

Comments
 (0)