Skip to content

Move SyncerStatus into go-header library #1019

Closed

Description

@Manav-Aggarwal

Currently, HeaderExchangeService and BlockExchangeService use a SyncerStatus struct that is created in Rollkit. Ideally, this should be moved inside the go-header library.

Activity

  1. changed the title [-]Move SyncerStatus into go-header[/-] [+]Move SyncerStatus into go-header library[/+] on Jun 19, 2023
  2. Wondertan commented on Jun 19, 2023

    @Wondertan
    Contributor

    @Manav-Aggarwal, can you please link to SyncerStatus struct? I would like to take a look at it and assess if it's worth the addition to the lib. I wonder if it's something like SyncerState which already exists in the lib.

  3. Manav-Aggarwal commented on Jun 19, 2023

    @Manav-Aggarwal
    MemberAuthor

    Of course, here is the SyncerStatus struct in its current form. There's a PR open that moves it here.

  4. Wondertan commented on Jun 22, 2023

    @Wondertan
    Contributor

    So the whole point of this struct is to keep the bool of Syncer's status? Hmm, I don't get why you need it. I found multiple places where the setStarted is used, but not getStarted on the commit you shared. We can consider moving it to go-header or, even better make the Syncer report through its state whether it's started or not. For this, we need to open an issue on the go-header repo and briefly describe the use case.

  5. Manav-Aggarwal commented on Jun 22, 2023

    @Manav-Aggarwal
    MemberAuthor

    Relevant go-header issue: celestiaorg/go-header#55

    The status started is checking by HeaderExchangeService in its Stop method to make sure it's not calling Stop on a SyncerStatus that hasn't started. Ideally, the Syncer's stop method itself handles this and acts as a no-op in this scenario. Mentioned in the issue.

  6. Wondertan commented on Jun 23, 2023

    @Wondertan
    Contributor

    Thank you @Manav-Aggarwal !

  7. added
    P:nice-to-have
    and removed on Sep 7, 2023
  8. moved this from Backlog to Todo in Evolveon Sep 7, 2023
  9. added
    T:code-hygiene
    and removed on Jun 25, 2024
  10. tac0turtle commented on Mar 27, 2025

    @tac0turtle
    Contributor

    issue was opened in go-header closing this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P:nice-to-haveT:code-hygieneblocked

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions