Skip to content

Commit

Permalink
rpc: add net_listening function (#4446)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxMustermann2 committed Jun 23, 2023
1 parent 21b4988 commit 32e5913
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rpc/net.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,8 @@ func (s *PublicNetService) Version(ctx context.Context) interface{} {
return fmt.Sprintf("%d", s.chainID)
}
}

// Listening returns an indication if the node is listening for network connections.
func (s *PublicNetService) Listening() bool {
return true // always listening
}

0 comments on commit 32e5913

Please sign in to comment.