Currently, in Deoxys, the only way to synchronize the state is through the feeder gateway starting from block 0. This process can take several days, with or without rate limits, which can be a significant blocker for some developers. Therefore, we want to provide official pre-synced state snapshots that can be easily integrated at the node's startup.
Request
The purpose of this issue is to implement an intelligent snapshot system to enable faster synchronization by importing official pre-synced states. We would like to have a command --snap <block_number> that fetches the snapshot at the closest available height to the specified block number, downloads it to the user's defined --base-path, and decompresses it correctly with the corresponding logs.
Solution
To achieve this, we propose the following steps:
Develop a command --snap <block_number> that identifies the closest available snapshot to the specified block number.
Ensure the command downloads the snapshot to the path defined by the user's --base-path.
Implement the functionality to decompress the snapshot correctly and log the process appropriately.
Is there an existing issue?
Motivation
Currently, in Deoxys, the only way to synchronize the state is through the feeder gateway starting from block 0. This process can take several days, with or without rate limits, which can be a significant blocker for some developers. Therefore, we want to provide official pre-synced state snapshots that can be easily integrated at the node's startup.
Request
The purpose of this issue is to implement an intelligent snapshot system to enable faster synchronization by importing official pre-synced states. We would like to have a command
--snap <block_number>
that fetches the snapshot at the closest available height to the specified block number, downloads it to the user's defined--base-path
, and decompresses it correctly with the corresponding logs.Solution
To achieve this, we propose the following steps:
--snap <block_number>
that identifies the closest available snapshot to the specified block number.--base-path
.Are you willing to help with this request?
Yes!