mirror of https://github.com/poanetwork/gecko.git
Added a best effort getVersion request
This commit is contained in:
parent
fb142d1df5
commit
ffd1c5c89e
|
@ -166,6 +166,9 @@ func (p *peer) handle(msg Msg) {
|
|||
}
|
||||
if !p.connected {
|
||||
p.net.log.Debug("dropping message from %s because the connection hasn't been established yet", p.id)
|
||||
|
||||
// send a get version message so that the peer's future messages are hopefully not dropped
|
||||
p.GetVersion()
|
||||
return
|
||||
}
|
||||
switch msg.Op() {
|
||||
|
|
Loading…
Reference in New Issue