Skip to content

Figure out how to modify RetrieveLoop to catch up with latest DA height faster #1193

Closed

Description

@Manav-Aggarwal

Currently, the RetrieveLoop in Block Manager is responsible for retrieving blocks from the DA layer. It maintains a local version of the DA height, retrieves blocks from that height once every DA block time (~15 seconds) and increments that height. This retrieve mechanism is used for hard confirmations of blocks.

We'd like RetrieveLoop to keep up with the latest DA height faster to eliminate this lag. One way to do this would be to get the latest height, and then retrieve from all heights until that latest height starting from the last height checked plus one. Something similar happens in BlockRetrieveLoop currently. Although, we do not have a way to query the DA layer for the latest height in the DA interface so it's not straightforward implement this.

The submitBlocksToDA method does have access to the height that the blocks were published on which is more in sync with the DA layer than the local height so we could use that but this would only keep the height updated for a block producer and not validating full nodes which do not submit blocks to the DA layer. We should figure out an alternative way to pull blocks from all DA heights until the latest height for all types of nodes.

Activity

  1. moved this from Backlog to Todo in Evolveon Sep 14, 2023
  2. added
    C:data-availability
    on Sep 14, 2023
  3. gupadhyaya commented on Sep 14, 2023

    @gupadhyaya
    Contributor

    @Manav-Aggarwal i think our previous discussion on inner-looping and retries (#1056 (comment)) is relevant here. we could re-introduce some form of retries to reduce the lag.

  4. self-assigned this
    on Sep 18, 2023
  5. added a commit that references this issue on Nov 9, 2023
    3be9900
  6. moved this from Todo to Done in Evolveon Nov 9, 2023
  7. added a commit that references this issue on Nov 24, 2023
    8e8aad4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

C:block-syncC:data-availability

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions