-
Notifications
You must be signed in to change notification settings - Fork 121
Closed
Description
Hi, does the ethdo exit verify cmd need to upgrade to support EIP-7044, code staring from
Lines 86 to 101 in 25a5bd9
| // 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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels