diff --git a/access/grpc/client.go b/access/grpc/client.go index 3e04cef8c..e56883945 100644 --- a/access/grpc/client.go +++ b/access/grpc/client.go @@ -66,6 +66,10 @@ func (c *Client) Ping(ctx context.Context) error { return c.grpc.Ping(ctx) } +func (c *Client) WaitServer(ctx context.Context) error { + return c.grpc.Ping(ctx, grpc.WaitForReady(true)) +} + func (c *Client) GetLatestBlockHeader(ctx context.Context, isSealed bool) (*flow.BlockHeader, error) { return c.grpc.GetLatestBlockHeader(ctx, isSealed) }