Revert "eth: drop eth/65, the last non-reqid protocol version"

This commit is contained in:
Péter Szilágyi
2021-08-20 11:46:56 +03:00
committed by GitHub
parent 5566e5d152
commit 96c6f6e50f
15 changed files with 602 additions and 172 deletions

View File

@ -448,8 +448,8 @@ func (d *Downloader) syncWithPeer(p *peerConnection, hash common.Hash, td *big.I
d.mux.Post(DoneEvent{latest})
}
}()
if p.version < eth.ETH66 {
return fmt.Errorf("%w: advertized %d < required %d", errTooOld, p.version, eth.ETH66)
if p.version < eth.ETH65 {
return fmt.Errorf("%w: advertized %d < required %d", errTooOld, p.version, eth.ETH65)
}
mode := d.getMode()