add explanation

This commit is contained in:
wanwiset25 2024-06-28 18:22:07 +04:00
parent 4be4f2eeb1
commit 82f2f63df4

View file

@ -38,6 +38,10 @@ const (
xdpos22 = 101 //xdpos2.2 = eth65
)
// XDC needs the below functions because direct number equality doesn't work (eg. version >= 63)
// we should try to match protocols 1 to 1 from now on, bump xdpos along with any new eth (eg. eth66 = xdpos23 only)
// try to follow the exact comparison from go-ethereum as much as possible (eg. version >= 63 <> isEth63OrHigher(version))
func isEth63(version int) bool {
switch {
case version == 63:
@ -48,7 +52,6 @@ func isEth63(version int) bool {
return false
}
}
func isEth64(version int) bool {
switch {
case version == 64:
@ -57,7 +60,6 @@ func isEth64(version int) bool {
return false
}
}
func isEth65(version int) bool {
switch {
case version == 65: