rpc: add `net_listening` function (#4446)

pull/4437/head
Max 1 year ago committed by GitHub
parent 21b4988668
commit 32e591358e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      rpc/net.go

@ -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
}

Loading…
Cancel
Save