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

feat: improve gas estimation #432

Merged
merged 2 commits into from
Sep 5, 2024
Merged

Conversation

byte-bandit
Copy link
Collaborator

@byte-bandit byte-bandit commented Sep 5, 2024

Related Github tickets

Background

This change addresses the inflated estimate that used to include the 1.5 modifier applied to the limit in order to ensure inclusion in the next tx. Since most of this won't actually be consumed, we now only return the pure, raw estimate retrieved from the RPC.

There's also a bug fix in this, addressing an edge case where the external address resolving of the assignee would fail in case they were jailed during the last published snapshot.

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

@byte-bandit byte-bandit requested a review from maharifu September 5, 2024 12:28
Copy link
Contributor

@maharifu maharifu left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@byte-bandit byte-bandit merged commit e3d1295 into palomachain:master Sep 5, 2024
2 checks passed
@byte-bandit byte-bandit deleted the clohr/gas branch September 5, 2024 13:36
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