Skip to content

feature: to support ChangeSet based snapshot #3100

Closed
@zzzckck

Description

@zzzckck
Collaborator

Rationale

Why should this feature exist?

  • https://github.com/bnb-chain/bsc-snapshots/ maintenance could be easier
  • bsc-snapshot user would be easier to download the snapshot, if they have the base snapshot, only download the changeset would be enough
  • fast node sync: node could just apply the ChangeSet, instead download/import.

Implementation

  • keep ChangeSet on block import, compact every 100K or 1M blocks
  • before snapshot upload: only upload the ChangeSet
  • download: provide a script to recover the state based on ChangeSet

reference

PBSS has similar implementation, refer: ancient/states

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @zzzckck

        Issue actions

          feature: to support ChangeSet based snapshot · Issue #3100 · bnb-chain/bsc