paritytech / paritytech/json-rpc-interface-spec

`chainHead_v1_storage`: Support resuming from a given key in future version?

Open
#177 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
37
Forks
6
PR merge metrics
No merged PRs in 30d

Description

With archive_v1_storage, a paginationStartKey can be provided to allow starting from a given key. In the event of disconnection, this is useful to be able to easily pick up from where we left off when streaming storage items via descendantValues and descendantHashes.

Should we add the same to our next version of chainHead_v1_storage?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing the archive_v1_storage paginationStartKey behavior with the proposed chainHead_v1_storage methods. Review descendantValues and descendantHashes, then determine whether a future version should accept the same resume key and document its behavior. Done means the proposal has a decided scope and specified semantics.

Written by the indexing model from the issue text.

Assessment

Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.