Skip to content

Commit

Permalink
feat: expose localnode entries
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-ramos committed Jun 27, 2024
1 parent 2601ce1 commit 4f6ba80
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions p2p/enode/localnode.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ func (ln *LocalNode) Seq() uint64 {
return ln.seq
}

// Returns the entries stored in the localnode
func (ln *LocalNode) Entries() map[string]enr.Entry {
return ln.entries
}

// ID returns the local node ID.
func (ln *LocalNode) ID() ID {
return ln.id
Expand Down

0 comments on commit 4f6ba80

Please sign in to comment.