Skip to content
This repository has been archived by the owner on Jun 22, 2023. It is now read-only.

Commit

Permalink
fix: MUST use GENESIS_FORK_VERSION to sign BLSToExecutionChange message.
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyWh1te committed Mar 10, 2023
1 parent b00af4c commit 1095d36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/wc_rotation/rotation.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ var (
func GetSigningRoot(validatorIndex uint64) ([32]byte, error) {
domain, computeDomainErr := computeDomain(
DomainBlsToExecutionChange,
CapellaForkVersion,
GenesisForkVersion,
GenesisValidatorRoot,
)

Expand Down
4 changes: 2 additions & 2 deletions pkg/wc_rotation/rotation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func TestGetSigningRoot(t *testing.T) {
args: args{
validatorIndex: 393395,
},
want: `5c57b22ed4078f4e4e8ec3188c8c25895154a55c62525488f40b37a3464da6fe`,
want: `23ccffc7767e1b9a54b3e18c986f00d0345825bcab21eae5fe92c849d6cfedb4`,
wantErr: false,
},
}
Expand All @@ -36,7 +36,7 @@ func TestGetSigningRoot(t *testing.T) {
actual := hex.EncodeToString(got[:])

if actual != tt.want {
t.Errorf("GetSigningRoot() got = %v, want %v", got, tt.want)
t.Errorf("GetSigningRoot() got = %v, want %v", actual, tt.want)
}
})
}
Expand Down

0 comments on commit 1095d36

Please sign in to comment.