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: gas limit from estimation #447

Merged
merged 5 commits into from
Oct 3, 2024

Conversation

maharifu
Copy link
Contributor

@maharifu maharifu commented Oct 3, 2024

Related Github tickets

Background

Before calling compass, pigeons get a gas estimate for the transaction. This estimate is used to pay pigeons. However, just before sending the transaction the relayer pigeon will get another gas estimate. If this latter estimate is lower than the agreed, the tx is unsuccessful since we don't have enough gas to pay the relayer.
This PR changes this last estimate to be equal to the agreed estimate if higher.

Also revert palomachain/paloma#1305. The gas-adjustment parameter is already configurable on pigeon's config.yaml. Validators having this issue should adjust this parameter.

Testing completed

  • test coverage exists or has been added/updated
  • tested in a private testnet

Breaking changes

  • I have checked my code for breaking changes

@maharifu maharifu requested a review from taariq October 3, 2024 15:07
@maharifu maharifu force-pushed the fix/gas_limit_from_estimation branch from 6ed47ba to d72534a Compare October 3, 2024 15:19
@maharifu maharifu marked this pull request as draft October 3, 2024 15:19
@maharifu maharifu marked this pull request as ready for review October 3, 2024 15:25
Copy link
Contributor

@taariq taariq left a comment

Choose a reason for hiding this comment

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

LFG!

@taariq taariq merged commit fca41b3 into palomachain:master Oct 3, 2024
2 checks passed
@taariq taariq deleted the fix/gas_limit_from_estimation branch October 3, 2024 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants