Skip to content
This repository was archived by the owner on May 7, 2025. It is now read-only.
This repository was archived by the owner on May 7, 2025. It is now read-only.

Handling of forks #46

@pepyakin

Description

@pepyakin

It's not clear how the forks are going to be handled. Given the following function:

https://github.com/rollkit/go-da/blob/011ba6919abc161b0703d1e3d87b45adf2f96464/da.go#L16-L17

Two calls with the same height and namespace can return different IDs.

You can fit the definition by considering only finalized blocks for height. I would imagine it may be slightly annoying for Avail since it uses BABE & GRANDPA which is pretty fast most of the time. In Ethereum however finality time is way longer.

  1. Am I missing something?
  2. What is the suggested way to handle non-finalized chain heads?
  3. What's the game of plan of Avail, if known.
  4. Are there plans to change the API to accomodate non-single-slot-finality chains?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions