Revert "Revert "eth: drop eth/65, the last non-reqid protocol version" (#23426)" (#23456)

This reverts commit c368f728c1.
This commit is contained in:
Péter Szilágyi
2021-08-24 21:52:58 +03:00
committed by GitHub
parent d705f5a554
commit 0db0b27754
15 changed files with 172 additions and 602 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.ETH65 {
return fmt.Errorf("%w: advertized %d < required %d", errTooOld, p.version, eth.ETH65)
if p.version < eth.ETH66 {
return fmt.Errorf("%w: advertized %d < required %d", errTooOld, p.version, eth.ETH66)
}
mode := d.getMode()