docs: sync example tutorials from cosmos/example - #342
Conversation
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
Greptile SummaryThis sync expands the example tutorials with accurate asynchronous transaction-broadcast guidance and a governance-based parameter-update walkthrough.
Confidence Score: 4/5The PR should not merge until the local governance setup also shortens The transaction guidance and proposal flow are coherent, but the new 20-second voting-period instructions create an invalid governance genesis configuration that prevents readers from starting the example chain. Files Needing Attention: sdk/next/tutorials/example/05-run-and-test.mdx Important Files Changed
|
| # 2. Lower the voting period in the generated genesis | ||
| # app_state.gov.params.voting_period, for example "20s" | ||
| vi ~/.exampleapp/config/genesis.json |
There was a problem hiding this comment.
Invalid governance genesis periods
When a reader lowers only voting_period to 20s, the default expedited_voting_period remains longer than the regular period, causing governance genesis validation to fail and preventing exampled start from launching the chain.
| # 2. Lower the voting period in the generated genesis | |
| # app_state.gov.params.voting_period, for example "20s" | |
| vi ~/.exampleapp/config/genesis.json | |
| # 2. Lower both governance voting periods in the generated genesis | |
| # app_state.gov.params.voting_period, for example "20s" | |
| # app_state.gov.params.expedited_voting_period must be shorter, for example "10s" | |
| vi ~/.exampleapp/config/genesis.json |
Knowledge Base Used: Cosmos SDK application development
|
Sync updated: cosmos/example was updated before this PR merged. Branch has been refreshed, please re-review. |
Auto-synced from cosmos/example. Transforms docs/.md to sdk/next/tutorials/example/.mdx. Do not edit these files directly — edit the source in cosmos/example and let the sync bot update them.