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: prevent outOfGas issue #525

Merged
merged 1 commit into from
Mar 15, 2024
Merged

fix: prevent outOfGas issue #525

merged 1 commit into from
Mar 15, 2024

Conversation

pythonberg1997
Copy link
Collaborator

@pythonberg1997 pythonberg1997 commented Mar 15, 2024

Description

This pr is to fix an issue in exitMaintenance method.

Changes

There is a try catch wrap the downtimeSlash contract call, it is possible that downtimeSlash out of gas, while there is still 1/16 of total gas left to finish the post execution. This PR is to prevent this from happening by adding more gas cost in the post execution.

Notable changes:

  • advance the slash operation

@unclezoro unclezoro disabled auto-merge March 15, 2024 04:25
@unclezoro unclezoro merged commit 2d6372d into master Mar 15, 2024
2 checks passed
@pythonberg1997 pythonberg1997 deleted the fix branch March 17, 2024 11:16
github-merge-queue bot pushed a commit that referenced this pull request Jun 3, 2024
* fix: prevent outOfGas issue (#525)

* chore: update redelegate fee rate base to 100000 (#530)

* chore: update BC-fusion mainnet init settings

* chore: lint contract and fix workflow (#537)

* chore: fix typo in generate.py

* chore: fix unit tests

* chore: remove init call in unit tests after bc-fusion (#563)

---------

Co-authored-by: zjubfd <296179868@qq.com>
Co-authored-by: Roshan <48975233+Pythonberg1997@users.noreply.github.com>
Co-authored-by: Roshan <luoshen1997@gmail.com>
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.

2 participants