Skip to content

Commit

Permalink
feat: Add Service method to Node interface
Browse files Browse the repository at this point in the history
  • Loading branch information
samcm committed Jun 7, 2024
1 parent 55bb102 commit 4abd16c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/beacon/beacon.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ type Node interface {
// Stop stops the node.
Stop(ctx context.Context) error

// Service returns the Service client for the node.
Service() eth2client.Service

// Getters
// Options returns the options for the node.
Options() *Options
Expand Down Expand Up @@ -309,6 +312,10 @@ func (n *node) SyncState() (*v1.SyncState, error) {
return state, nil
}

func (n *node) Service() eth2client.Service {
return n.client
}

func (n *node) Genesis() (*v1.Genesis, error) {
return n.genesis, nil
}
Expand Down

0 comments on commit 4abd16c

Please sign in to comment.