o1-labs / o1-labs/Archive-Node-API
Support different chain-tip selection methods
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 19
- Forks
- 9
- Avg merge
- 14h 20m
- Merged PRs (30d)
- 8
Description
Suggestions to improve the best tip chain selection was made in a Discord channel, see here: https://discord.com/channels/484437221055922177/1086196859627917343/1087343997812486174
For those without Discord, the contents of the message are:
"
Potential options for the archive node api could be:
the latest finalized block by some num of confirmations n
the latest undisputed block (what I mean by that is that if there are multiple blocks proposed in a slot, the next proposer has selected a block out of those)
the latest unconfirmed block (for example the block in the latest filled slot with the lowest timestamp)
all blocks with the potential of becoming canonical
Doing it this way keeps the possibility of only retrieving confirmed data while also giving the developer the option to modify that behaviour if needed.
"
By supporting these different options, we can let the user define how they want to query the data for the Archive Node.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file, test, or entry point is named. Start by mapping the TypeScript GraphQL server's current archive-node chain-tip selection and query surface, then clarify how finalized, undisputed, unconfirmed, and potentially canonical blocks should be exposed; done means the supported modes and their behavior have an agreed specification.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- graphql, typescript
- Domain
- api, blockchain
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100