oasis-core icon indicating copy to clipboard operation
oasis-core copied to clipboard

control status: Show checkpoint height(s)

Open matevz opened this issue 1 year ago • 5 comments

SUMMARY

Currently, there is no nice way to obtain the (latest?) checkpoint height that can be used for fast sync unless you already run a node and you check your datadir/consensus/state/mkvs_storage.badger.db/checkpoints folder. Add a list of available checkpoints to the control status output.

matevz avatar Aug 22 '24 08:08 matevz

Is this still needed?

martintomazic avatar Jun 27 '25 14:06 martintomazic

Is this still needed?

If not, then this chapter needs to be updated to reflect it https://docs.oasis.io/node/run-your-node/advanced/sync-node-using-state-sync

matevz avatar Jun 27 '25 14:06 matevz

I believe it is needed so one can configure a sufficiently old trust hash/height.

kostko avatar Jun 27 '25 18:06 kostko

I believe it is needed so one can configure a sufficiently old trust hash/height.

Ok I see. This is useful if you already have a node and want to spin another one or tell a "friend".

Optionally, this could be displayed as part of the explorer for people that don't have their node. (Although do we really want to encourage centralized points of truth).

Update: Nevermind, cli defaults to public gRPC endpoints, so no need to propagate to explorers.

martintomazic avatar Jun 30 '25 09:06 martintomazic

If not, then this chapter needs to be updated to reflect it

Will think about improving the docs.

Right now I am more concerned with default trust period of 30days in the default config:

  1. As stated by the state sync docs this value should be significantly smaller than the unbounding period (2 weeks in our case?).
  2. Finally, checkpoints happen every week on mainnet, probably only the last one is useful for state sync given that older ones already fall out of unbonding period.
    • Related to this we might want to double checkpointing frequency?

martintomazic avatar Jun 30 '25 09:06 martintomazic