Skip to content

Automate Update for Statesync Trust

Ursa (9R) requested to merge ursa/update-trust-state into master

The statesync trusted height and hash need to be periodically updated to a height with a valid snapshot. When this occurs, we must also update the trusted hashes for the Midgard blockstore files so that the last blockstore file goes up to at least the snapshot height, otherwise Midgard cannot start. This adds a make update-trust-state target that performs both of these tasks. We can check these changes into master periodically, but NOs can also run this locally to install with the latest if desired.

NOTE: the trust hash is verified on rpc.ninerealms.com and rpc.thorchain.info by default during statesync recover, so Nine Realms is not a singular trusted party in the context of thornode. The Midgard blockstore hashes in our bucket our automated, and NOs are welcome and encouraged to verify - the Midgard team also periodically updates the Midgard repo with their own verified checksums here (though these updates are often lagging).

Merge request reports