Skip to content
This repository has been archived by the owner on Sep 23, 2023. It is now read-only.

Commit

Permalink
RPC/Sentry: Peers method (#429)
Browse files Browse the repository at this point in the history
* interfaces: Peers method in RPC/Sentry

* RPC/Sentry: Peers method

Wrappers and mocks.
GRPC regenerated.
See erigontech/interfaces#102
  • Loading branch information
battlmonstr authored Apr 25, 2022
1 parent c3b4804 commit 5dc5ab7
Show file tree
Hide file tree
Showing 11 changed files with 857 additions and 343 deletions.
4 changes: 4 additions & 0 deletions direct/eth_backend_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,3 +198,7 @@ func (s *EthBackendClientDirect) TxnLookup(ctx context.Context, in *remote.TxnLo
func (s *EthBackendClientDirect) NodeInfo(ctx context.Context, in *remote.NodesInfoRequest, opts ...grpc.CallOption) (*remote.NodesInfoReply, error) {
return s.server.NodeInfo(ctx, in)
}

func (s *EthBackendClientDirect) Peers(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*remote.PeersReply, error) {
return s.server.Peers(ctx, in)
}
4 changes: 4 additions & 0 deletions direct/sentry_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,10 @@ func (c *SentryClientDirect) SetStatus(ctx context.Context, in *sentry.StatusDat
return c.server.SetStatus(ctx, in)
}

func (c *SentryClientDirect) Peers(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*sentry.PeersReply, error) {
return c.server.Peers(ctx, in)
}

func (c *SentryClientDirect) PeerCount(ctx context.Context, in *sentry.PeerCountRequest, opts ...grpc.CallOption) (*sentry.PeerCountReply, error) {
return c.server.PeerCount(ctx, in)
}
Expand Down
339 changes: 205 additions & 134 deletions gointerfaces/remote/ethbackend.pb.go

Large diffs are not rendered by default.

42 changes: 40 additions & 2 deletions gointerfaces/remote/ethbackend_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

112 changes: 112 additions & 0 deletions gointerfaces/sentry/mocks.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5dc5ab7

Please sign in to comment.