Added a best effort getVersion request

This commit is contained in:
StephenButtolph 2020-05-20 15:49:06 -04:00
parent fb142d1df5
commit ffd1c5c89e
1 changed files with 3 additions and 0 deletions

View File

@ -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() {