Hi, does the ethdo exit verify cmd need to upgrade to support EIP-7044, code staring from
|
// Try with the current fork. |
|
domain := phase0.Domain{} |
|
currentExitDomain, err := e2types.ComputeDomain(e2types.DomainVoluntaryExit, response.Data.CurrentVersion[:], genesis.GenesisValidatorsRoot[:]) |
|
errCheck(err, "Failed to compute domain") |
|
copy(domain[:], currentExitDomain) |
|
verified, err = util.VerifyRoot(account, opRoot, domain, sig) |
|
errCheck(err, "Failed to verify voluntary exit") |
|
if !verified { |
|
// Try again with the previous fork. |
|
previousExitDomain, err := e2types.ComputeDomain(e2types.DomainVoluntaryExit, response.Data.PreviousVersion[:], genesis.GenesisValidatorsRoot[:]) |
|
copy(domain[:], previousExitDomain) |
|
errCheck(err, "Failed to compute domain") |
|
verified, err = util.VerifyRoot(account, opRoot, domain, sig) |
|
errCheck(err, "Failed to verify voluntary exit") |
|
} |
|
assert(verified, "Voluntary exit failed to verify against current and previous fork versions") |
It might not works after Pectra upgrade because it checks the current and the previous fork only.
Hi, does the
ethdo exit verifycmd need to upgrade to support EIP-7044, code staring fromethdo/cmd/exitverify.go
Lines 86 to 101 in 25a5bd9
It might not works after Pectra upgrade because it checks the current and the previous fork only.