Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

[RPC-Spec-V2] Backport changes to chainHead #14636

@lexnv

Description

@lexnv

Implement the following changes to the chainHead class of RPC methods:

The chainHead_follow is now responsible for generating the result of the other methods:

  • chainHead_follow events / errors are extended to announce blocks and results of other methods
  • chainHead_storage, chainHead_call, chainHead_body are plain methods that return an operation ID
  • chainHead_follow produces the response of the provided operations
  • ongoing operations can be canceled by a new method chainHead_stopOperation
  • chainHead introduces a minimum 16 number of ongoing operations after which the limitReached event is produced

// @paritytech/subxt-team

### Tasks
- [ ] https://github.com/paritytech/substrate/issues/14222
- [ ] https://github.com/paritytech/substrate/issues/14637
- [ ] https://github.com/paritytech/substrate/issues/14638
- [ ] https://github.com/paritytech/substrate/issues/14639
- [ ] https://github.com/paritytech/substrate/issues/14640

Metadata

Metadata

Assignees

Labels

J0-enhancementAn additional feature request.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions