Skip to content

Conversation

@martintomazic
Copy link
Contributor

@martintomazic martintomazic commented Nov 3, 2025

Closes #558

Considerations:

#637 (comment)

How to test

Run

./oasis state-sync trust  --network testnet|mainnet

end ensure you are able to do state sync with returned parameters.

@netlify
Copy link

netlify bot commented Nov 3, 2025

Deploy Preview for oasisprotocol-cli canceled.

Name Link
🔨 Latest commit 74d5b57
🔍 Latest deploy log https://app.netlify.com/projects/oasisprotocol-cli/deploys/690c673fee9e1700086ceeb8

@martintomazic martintomazic force-pushed the martin/feature/trust-height-command branch 4 times, most recently from 30aba83 to 24477ac Compare November 3, 2025 22:16
@martintomazic
Copy link
Contributor Author

Related to this, in general I have been very unlucky with state sync on the testnet, even after restarting the node multiple times.

Might be a good idea to explore why this happening...

@martintomazic martintomazic marked this pull request as ready for review November 3, 2025 22:44
@martintomazic martintomazic force-pushed the martin/feature/trust-height-command branch 3 times, most recently from 4b96e7d to e12b8d5 Compare November 5, 2025 22:51
@martintomazic martintomazic force-pushed the martin/feature/trust-height-command branch from e12b8d5 to 8653d04 Compare November 6, 2025 09:07
Prevents a problem where the most recent checkpoint target height
is still being created on the remote nodes, but second oldest
target height would be already older than the suggested trust.

This is only relevant when configuring runtime where state is much
bigger. In such case if you are connected to remote nodes that
preserve many runtime state versions, checkpoint creation time is
significant.
@martintomazic martintomazic force-pushed the martin/feature/trust-height-command branch from 8653d04 to 74d5b57 Compare November 6, 2025 09:15
@martintomazic martintomazic merged commit cef8261 into master Nov 6, 2025
5 checks passed
@martintomazic martintomazic deleted the martin/feature/trust-height-command branch November 6, 2025 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add command displaying recommended light client's trust for the state sync

3 participants