Skip to content

Commit

Permalink
fix fetcher test
Browse files Browse the repository at this point in the history
  • Loading branch information
xenowits committed Dec 13, 2023
1 parent fa12391 commit 1759dc3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/fetcher/fetcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,14 +293,14 @@ func TestFetchBlocks(t *testing.T) {
slotA, err := dutyDataA.Slot()
require.NoError(t, err)
require.EqualValues(t, slot, slotA)
require.Equal(t, feeRecipientAddr, fmt.Sprintf("%#x", dutyDataA.Deneb.Block.Body.ExecutionPayload.FeeRecipient))
require.Equal(t, feeRecipientAddr, fmt.Sprintf("%#x", dutyDataA.Capella.Body.ExecutionPayload.FeeRecipient))
assertRandao(t, randaoByPubKey[pubkeysByIdx[vIdxA]].Signature().ToETH2(), dutyDataA)

dutyDataB := resDataSet[pubkeysByIdx[vIdxB]].(core.VersionedProposal)
slotB, err := dutyDataB.Slot()
require.NoError(t, err)
require.EqualValues(t, slot, slotB)
require.Equal(t, feeRecipientAddr, fmt.Sprintf("%#x", dutyDataB.Deneb.Block.Body.ExecutionPayload.FeeRecipient))
require.Equal(t, feeRecipientAddr, fmt.Sprintf("%#x", dutyDataB.Capella.Body.ExecutionPayload.FeeRecipient))
assertRandao(t, randaoByPubKey[pubkeysByIdx[vIdxB]].Signature().ToETH2(), dutyDataB)

return nil
Expand Down Expand Up @@ -329,14 +329,14 @@ func TestFetchBlocks(t *testing.T) {
slotA, err := dutyDataA.Slot()
require.NoError(t, err)
require.EqualValues(t, slot, slotA)
require.Equal(t, feeRecipientAddr, fmt.Sprintf("%#x", dutyDataA.Deneb.Body.ExecutionPayloadHeader.FeeRecipient))
require.Equal(t, feeRecipientAddr, fmt.Sprintf("%#x", dutyDataA.Capella.Body.ExecutionPayloadHeader.FeeRecipient))
assertRandaoBlindedBlock(t, randaoByPubKey[pubkeysByIdx[vIdxA]].Signature().ToETH2(), dutyDataA)

dutyDataB := resDataSet[pubkeysByIdx[vIdxB]].(core.VersionedBlindedProposal)
slotB, err := dutyDataB.Slot()
require.NoError(t, err)
require.EqualValues(t, slot, slotB)
require.Equal(t, feeRecipientAddr, fmt.Sprintf("%#x", dutyDataB.Deneb.Body.ExecutionPayloadHeader.FeeRecipient))
require.Equal(t, feeRecipientAddr, fmt.Sprintf("%#x", dutyDataB.Capella.Body.ExecutionPayloadHeader.FeeRecipient))
assertRandaoBlindedBlock(t, randaoByPubKey[pubkeysByIdx[vIdxB]].Signature().ToETH2(), dutyDataB)

return nil
Expand Down

0 comments on commit 1759dc3

Please sign in to comment.