This document introduces another centralized fast state syncing method using rclone. The document is still working-in-progress. Please use it with caution. This guide is mainly used for a newly started node to catch up with the blockchain faster. Otherwise, the blockchain syncing may take weeks.
Rclone db snapshot is sync'ed with blockchain once a day. It is more recent than the db tarball. However, there maybe a potential race condition when the rclone may fail due to our nodes were updating the db files at the same time. In this case, just re-run the rclone command to re-sync again.
If you don't know what is rclone, please visit the rclone website for some more info and usage.
Install rclone => https://rclone.org/
Add the following
rclone.conf file to
[mainnet]type = s3provider = AWSenv_auth = falseregion = us-west-1acl = public-readserver_side_encryption = AES256storage_class = REDUCED_REDUNDANCY
For example, rclone DB snapshot for shard 0. Just replace
ShardID with the real shard ID 0.
rclone sync mainnet:pub.harmony.one/mainnet.archival/harmony_db_<ShardID> harmony_db_<ShardID>
For state pruning enabled node, please rclone a different DB snapshot from s3.
rclone sync mainnet:pub.harmony.one/mainnet.min/harmony_db_<ShardID> harmony_db_<ShardID>