Skip to content

Commit

Permalink
pass epbs as version
Browse files Browse the repository at this point in the history
  • Loading branch information
potuz committed Nov 7, 2024
1 parent 8ac2e61 commit 259de0e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion beacon-chain/blockchain/execution_engine_epbs.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func (s *Service) notifyForkchoiceUpdateEPBS(ctx context.Context, blockhash [32]
FinalizedBlockHash: finalizedHash[:],
}
if attributes == nil {
attributes = payloadattribute.EmptyWithVersion(version.Deneb)
attributes = payloadattribute.EmptyWithVersion(version.EPBS)
}
payloadID, lastValidHash, err := s.cfg.ExecutionEngineCaller.ForkchoiceUpdated(ctx, fcs, attributes)
if err != nil {
Expand Down
5 changes: 0 additions & 5 deletions consensus-types/payload-attribute/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,6 @@ func New(i interface{}) (Attributer, error) {

// EmptyWithVersion returns an empty payload attribute with the given version.
func EmptyWithVersion(ver int) Attributer {
if ver == version.EPBS {
return &data{
version: version.Deneb,
}
}
return &data{
version: ver,
}
Expand Down

0 comments on commit 259de0e

Please sign in to comment.