mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 03:47:29 -03:00
log: Add V2 handshake timeout
This commit is contained in:
parent
d4a1da8543
commit
7d07daa623
1 changed files with 5 additions and 1 deletions
|
@ -1988,7 +1988,11 @@ bool CConnman::InactivityCheck(const CNode& node) const
|
|||
}
|
||||
|
||||
if (!node.fSuccessfullyConnected) {
|
||||
LogPrint(BCLog::NET, "version handshake timeout peer=%d\n", node.GetId());
|
||||
if (node.m_transport->GetInfo().transport_type == TransportProtocolType::DETECTING) {
|
||||
LogPrint(BCLog::NET, "V2 handshake timeout peer=%d\n", node.GetId());
|
||||
} else {
|
||||
LogPrint(BCLog::NET, "version handshake timeout peer=%d\n", node.GetId());
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue