Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: miscellaneous cleanups #39

Merged
merged 5 commits into from
Jan 17, 2024
Merged

fix: miscellaneous cleanups #39

merged 5 commits into from
Jan 17, 2024

Conversation

michaelfig
Copy link
Member

While trying to build Docker images with QEMU, I fixed a few issues with sensitivity to races and timeouts. Here they are:

  • abort on PROPOSAL_STATUS_FAILED, which means the upgrade was scheduled to start before the voting period was over
  • if upgrade height is passed, still treat it as needing to kill the chain
  • increase software-upgrade height to mitigate the PROPOSAL_STATUS_FAILED problems
  • wait for block inclusion when submitting transactions

Also for my sanity when working on the start_*.sh scripts:

  • alias agd to ag0 in start_ag0.sh to reduce noise when trying to compare or copy-and-paste code from start_to_to.sh.

@michaelfig michaelfig self-assigned this Dec 5, 2023
@michaelfig michaelfig force-pushed the mfig-split-docker branch 4 times, most recently from 82fb01b to cf9dfcb Compare January 10, 2024 19:30
Base automatically changed from mfig-split-docker to main January 11, 2024 23:01
Copy link
Member

@mhofman mhofman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Besides a couple nits, this overall looks like good reliability tweaks

latest_height=$(ag0 status | jq -r .SyncInfo.latest_block_height)
height=$(($latest_height + $voting_period_s + 10))

latest_height=$(agd status | jq -r .SyncInfo.latest_block_height)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: the ag0 -> agd rename here should be in the previous commit

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree. Though I think it's worth letting slide to land this now.

proposals/16:upgrade-8/use.sh Show resolved Hide resolved
@turadg turadg merged commit e9db3be into main Jan 17, 2024
3 checks passed
@turadg turadg deleted the mfig-misc-cleanups branch January 17, 2024 17:17
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.

3 participants