Skip to content

Commit

Permalink
nits comments
Browse files Browse the repository at this point in the history
Signed-off-by: nidhi-singh02 <trippin@berachain.com>
  • Loading branch information
nidhi-singh02 committed Sep 9, 2024
1 parent f5176dd commit 4aea9ce
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions mod/consensus-types/pkg/types/fork.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,19 +135,26 @@ func (f *Fork) HashTreeRootWith(hh fastssz.HashWalker) error {
return nil
}

/* -------------------------------------------------------------------------- */
/* Getters */
/* -------------------------------------------------------------------------- */

// GetTree ssz hashes the Fork object.
func (f *Fork) GetTree() (*fastssz.Node, error) {
return fastssz.ProofTree(f)
}

// GetPreviousVersion returns the previous version of the fork.
func (f *Fork) GetPreviousVersion() common.Version {
return f.PreviousVersion
}

// GetCurrentVersion returns the current version of the fork.
func (f *Fork) GetCurrentVersion() common.Version {
return f.CurrentVersion
}

// GetEpoch returns the epoch at which the fork occurred.
func (f *Fork) GetEpoch() math.Epoch {
return f.Epoch
}

0 comments on commit 4aea9ce

Please sign in to comment.