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

backport fixes to planner gas prices & validator voting #4559

Merged
merged 2 commits into from
Jun 4, 2024

Conversation

conorsch
Copy link
Contributor

@conorsch conorsch commented Jun 4, 2024

Describe your changes

Backports two PRs for 0.77.2 (#4545):

The planner changes in the latter are crucial to point-release. The former less so, but including those changes reduced conflicts on the cherry-pick, and the client-side improvement is a nice-to-have as we focus on resolving #4540.

Issue ticket number and link

Checklist before requesting a review

  • If this code contains consensus-breaking changes, I have added the "consensus-breaking" label. Otherwise, I declare my belief that there are not consensus-breaking changes, for the following reason:

    client-side changes only, no changes to consensus logic

plaidfinch and others added 2 commits June 4, 2024 15:23
## Describe your changes

Resolves #4507.

## Checklist before requesting a review

- [X] If this code contains consensus-breaking changes, I have added the
"consensus-breaking" label. Otherwise, I declare my belief that there
are not consensus-breaking changes, for the following reason:

  > This is purely a client change.

(cherry picked from commit 1c96f34)
Closes #4555 and fixes fee inclusion in validator definition upload,
validator vote casting, and tx sweep.

This also introduces some protection for future planner invocations. The
`Planner`'s `gas_prices` field has been changed to an `Option` type and
if it's not set it will return an error during planning:

```
$ cargo run --bin pcli --release -- --home ~/.local/share/pcli-preview/ validator definition upload --file validator.toml
...
Error: planner instances must call set_gas_prices prior to planning
```

---------

Co-authored-by: Tal Derei <talderei99@gmail.com>
Co-authored-by: Chris Czub <chris@penumbralabs.xyz>
(cherry picked from commit 77f3f22)
Copy link
Contributor

@cronokirby cronokirby left a comment

Choose a reason for hiding this comment

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

(saw the original pr)

@conorsch conorsch merged commit 1e4df4d into release/v0.77.x Jun 4, 2024
11 checks passed
@conorsch conorsch deleted the backport-planner-fee-fixes branch June 4, 2024 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants