Skip to content

Commit

Permalink
renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
avalonche committed Jul 21, 2023
1 parent dfcc05c commit 605ed5d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions api/versionedsignedblindedbeaconblock.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,8 @@ func (v *VersionedSignedBlindedBeaconBlock) ProposerIndex() (phase0.ValidatorInd
}
}

// BlockHash returns the hash of the beacon block.
func (v *VersionedSignedBlindedBeaconBlock) BlockHash() (phase0.Hash32, error) {
// ExecutionBlockHash returns the hash of the beacon block.
func (v *VersionedSignedBlindedBeaconBlock) ExecutionBlockHash() (phase0.Hash32, error) {
switch v.Version {
case spec.DataVersionBellatrix:
if v.Bellatrix == nil || v.Bellatrix.Message == nil || v.Bellatrix.Message.Body == nil || v.Bellatrix.Message.Body.ExecutionPayloadHeader == nil {
Expand All @@ -261,8 +261,8 @@ func (v *VersionedSignedBlindedBeaconBlock) BlockHash() (phase0.Hash32, error) {
}
}

// BlockNumber returns the block number of the beacon block.
func (v *VersionedSignedBlindedBeaconBlock) BlockNumber() (uint64, error) {
// ExecutionBlockNumber returns the block number of the beacon block.
func (v *VersionedSignedBlindedBeaconBlock) ExecutionBlockNumber() (uint64, error) {
switch v.Version {
case spec.DataVersionBellatrix:
if v.Bellatrix == nil || v.Bellatrix.Message == nil || v.Bellatrix.Message.Body == nil || v.Bellatrix.Message.Body.ExecutionPayloadHeader == nil {
Expand Down

0 comments on commit 605ed5d

Please sign in to comment.