Skip to content

Commit

Permalink
Support version Electra for ForkchoiceUpdated (prysmaticlabs#13994)
Browse files Browse the repository at this point in the history
* Support version Electra for ForkchoiceUpdated

* Update PbV3 version check
  • Loading branch information
terencechain authored and ErnestK committed May 19, 2024
1 parent 68687bd commit d83ba37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion beacon-chain/execution/engine_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ func (s *Service) ForkchoiceUpdated(
if err != nil {
return nil, nil, handleRPCError(err)
}
case version.Deneb:
case version.Deneb, version.Electra:
a, err := attrs.PbV3()
if err != nil {
return nil, nil, err
Expand Down
2 changes: 1 addition & 1 deletion consensus-types/payload-attribute/getters.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func (a *data) PbV3() (*enginev1.PayloadAttributesV3, error) {
if a == nil {
return nil, errNilPayloadAttribute
}
if a.version != version.Deneb {
if a.version < version.Deneb {
return nil, consensus_types.ErrNotSupported("PbV3", a.version)
}
if a.timeStamp == 0 && len(a.prevRandao) == 0 && len(a.parentBeaconBlockRoot) == 0 {
Expand Down

0 comments on commit d83ba37

Please sign in to comment.