rpc: add chunked rpc interface (#6445)

This commit is contained in:
Sam Kleinman
2021-05-24 09:48:27 -04:00
committed by GitHub
parent 7b5a732644
commit d9134063e7
12 changed files with 158 additions and 1 deletions

View File

@@ -302,6 +302,10 @@ func (c *Client) Genesis(ctx context.Context) (*ctypes.ResultGenesis, error) {
return c.next.Genesis(ctx)
}
func (c *Client) GenesisChunked(ctx context.Context, id uint) (*ctypes.ResultGenesisChunk, error) {
return c.next.GenesisChunked(ctx, id)
}
// Block calls rpcclient#Block and then verifies the result.
func (c *Client) Block(ctx context.Context, height *int64) (*ctypes.ResultBlock, error) {
res, err := c.next.Block(ctx, height)