Skip to content

State sync from local snapshot: Implementation #29

Closed as not planned
Closed as not planned

Description

@sergio-mena

Tasks:

DoD:

  • Implementation code complete and all PRs merged
  • Any changes needed to the documentation/spec are merged

Original issue: tendermint/tendermint#9948

Activity

  1. added
    backlog
    on Dec 23, 2022
  2. chillyvee commented on Mar 13, 2023

    @chillyvee
    Contributor

    Happy to collaborate when you are ready. We just updated the code for the latest Juno v13 and have some intermediate feedback based on previous discussions.

  3. adizere commented on Mar 31, 2023

    @adizere
    Contributor

    Thank @chillyvee, appreciate it ! We'll get back to you in a few weeks time after we have explored all the existing material in tendermint/tendermint and have clarity over the solution. This work is part of our Q2 priorities.

  4. adizere commented on Apr 18, 2023

    @adizere
    Contributor

    Hi @chillyvee would you kindly reconstruct your original PR and submit to this repo as a draft PR preferably, with a base branch v0.34? We've now in the "understand problem & solution" space (#28) so it would be good to see this implementation.

    Thanks in advance!

  5. yihuang commented on Apr 18, 2023

    @yihuang
    Contributor

    Hi @chillyvee would you kindly reconstruct your original PR and submit to this repo as a draft PR preferably, with a base branch v0.34? We've now in the "understand problem & solution" space (#28) so it would be good to see this implementation.

    Thanks in advance!

    Love this feature, would like to help if needed, BTW, where can I find the ADR083?

    From my understanding, state-sync can be decoupled into several components:

    • snapshot discovery and chunks downloading
    • snapshot chunks verification with light client protocol
    • snapshot restoration
    • node startup with the new state.

    Ideally we should have offline commands for each steps to provide maximum flexibility.

  6. cason commented on Apr 18, 2023

    @cason

    I think Adi referred to the open PR in the old repository: tendermint/tendermint#9651

    This has become a huge PR due to the changes made in the upstream repository. We are only interested on this file: https://github.com/tendermint/tendermint/pull/9651/files#diff-393baba5ea65c4316e47d1a3715a1c4a8e934c1310071f982d2cf5418ef84d80

  7. yihuang commented on Apr 18, 2023

    @yihuang
    Contributor

    I think Adi referred to the open PR in the old repository: tendermint/tendermint#9651

    This has become a huge PR due to the changes made in the upstream repository. We are only interested on this file: https://github.com/tendermint/tendermint/pull/9651/files#diff-393baba5ea65c4316e47d1a3715a1c4a8e934c1310071f982d2cf5418ef84d80

    Thanks.

    Allow applications to start with a bootstrapped state alongside an empty Tendermint instance using a subsystem of the state sync protocol.

    This is exactly what I want.

  8. yihuang commented on Apr 19, 2023

    @yihuang
    Contributor

    Just did a squash rebase and a few tweaks to fix building, and opened the PR targeting v0.34.x branch: #728

  9. adizere commented on Apr 19, 2023

    @adizere
    Contributor

    Thank you @yihuang. I'll be opening an ADR based on the original one soon.

  10. adizere commented on Apr 19, 2023

    @adizere
    Contributor

    Ported the ADR here: #729. It's not yet clear to me if it's reflective of the solution, please have a look.

  11. chillyvee commented on Apr 19, 2023

    @chillyvee
    Contributor

    Seeing the activity here. Need to review notes and will be back soon.

  12. yihuang commented on Apr 19, 2023

    @yihuang
    Contributor

    Seeing the activity here. Need to review notes and will be back soon.

    Please feel free to take over the PR when you are back 😄

  13. cason commented on Apr 19, 2023

    @cason

    Any reason for targeting this change to branch v0.34.x? I would say it would be better and safer to target the main branch, then after due checks, backport it to release branches.

  14. 26 remaining items

  15. removed
    backlog
    on May 16, 2023
  16. added
    enhancement
    on May 17, 2023
  17. adizere commented on May 22, 2023

    @adizere
    Contributor

    maybe we can do this command more elegantly in cometbft, after all, it use many internal APIs to do the job, those are maybe prone to change in the future.

    Got it. This is a nice to have, right? Correct me if I'm wrong, it seems like on Comet side there's nothing left to do (except for "nice to have" in the future).

  18. yihuang commented on May 22, 2023

    @yihuang
    Contributor

    maybe we can do this command more elegantly in cometbft, after all, it use many internal APIs to do the job, those are maybe prone to change in the future.

    Got it. This is a nice to have, right? Correct me if I'm wrong, it seems like on Comet side there's nothing left to do (except for "nice to have" in the future).

    yeah, nice to have.

  19. adizere commented on May 24, 2023

    @adizere
    Contributor

    yeah, nice to have.

    Thanks @yihuang. We'll track that work here: #884.

    I'm closing the present PR: The original scope and problem we wanted to address here shifted. In the future, we might implement ADR 104 (#801) as a solution for non-SDK users that want support for state sync out of a local snapshot. For the case of SDK users, their needs seem to be addressed.

  20. moved this from In Progress to Done in CometBFT 2023on May 24, 2023
  21. added a commit that references this issue on Nov 20, 2023
  22. added a commit that references this issue on Apr 29, 2025
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

    enhancementstate-sync

    Type

    No type

    Projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions