docs
docs copied to clipboard
feat: add docs for syncing from trusted hash and height
- go to
~/.celestia-light-mocha-4/config.tomland changeDASer.SampleFromto the trusted height - set
--headers.trusted-hashcc @S1nus for feedback. is the snapshot still required? or do we JTMB all previous heights < trusted height?
it just trusts them if you do this
awesome, makes sense!
steps from @Bidon15:
- curl the rpc endpoint for the latest block -1
- take the hash
- init the light node with pre-defined config.toml
- experience immediate success
- Get trusted height & hash on Celenium
- Set the trusted height & hash
- Open your config.toml:
code ~/.celestia-light/config.toml- Set
DASer.SampleFromto the trusted height.
- Initialize the node store
celestia light init - Run the node
celestia light start --headers.trusted-hash <hash>
draft info portion for the documentation of this feature:
syncing to a trusted hash means that you will not sample the entire chain. this adds a trust assumption that you trust the history of chain up to that point and that you trust the entity where you get the hash from. in this case, Celenium
note: if you're using all of these light nodes for similar things like tracking the same rollup, I'd recommend using the same hash/height for them all. you can also skip the celenium part and do step 1 programmatically with a consensus rpc (like the core.ip you provide to a light node, whether it's from a provider or from your own consensus node)
I think that the above suggestion may not be ideal for fresh nodes:
- Get trusted height & hash
- Initialize the node store
celestia light init
- Set the trusted height & hash
- Open your config.toml
code .celestia-light/config.toml. SetDASer.SampleFromto the trusted height (e.g.SampleFrom = 123456)
- Open your config.toml
- Run the node with the hash and flag:
celestia light start --headers.trusted-hash <hash>