State Sync Setup (optional)
Last updated
Last updated
Tip: If you have already started syncing and you want to start over with a state sync, you will need to delete all of the .db folders and the snapshots folder from ~/.layer/data folder:
Find a working TRUSTED_HEIGHT
Use the command:
This should output something like: 138807 0BCE40CD31D205453DA001780CBF765F3C64FCCB9DCB2F9825872D042780A288.
Copy this block and hash and keep it handy for the next step.
Edit config.toml:
Open your config file with your favorite text editor or nano:
Scroll or search the document and edit the variables as shown here:
Be sure to replace the trust_height and trust_hash with the block number and hash from step 1.
Exit nano with ctrl^x
then enter y
to save the changes.
Upgrade your binary to the current version:
Start your node: