Skip to content

Commit

Permalink
nits comments
Browse files Browse the repository at this point in the history
Signed-off-by: nidhi-singh02 <[email protected]>
  • Loading branch information
nidhi-singh02 committed Sep 9, 2024
1 parent f5176dd commit 66b4e8c
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 @@ -140,14 +140,21 @@ func (f *Fork) GetTree() (*fastssz.Node, error) {
return fastssz.ProofTree(f)
}

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

// 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 66b4e8c

Please sign in to comment.