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

v1.18: Add --with-compute-unit-price to cli program deploy commands (backport of #364) #392

Merged
merged 1 commit into from
Mar 22, 2024

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Mar 22, 2024

Problem

It's not possible to set a compute unit price or limit on deploy transactions. This causes deploys to be very slow when transaction priority fees increase on the cluster.

Summary of Changes

  • Add compute unit price and limit instructions to deploy instructions when the --with-compute-unit-price flag is passed for solana program deploy and solana program write-buffer
  • Compute unit limit is set by first simulating each type of deploy transaction and then using the number of compute units consumed

Fixes #21


This is an automatic backport of pull request #364 done by [Mergify](https://mergify.com).

* add set compute units arg for program deploy

* update master changes

* remove duplicates

* fixes and tests

* remove extra lines

* feedback

* Use simulation to determine compute units consumed

* feedback

---------

Co-authored-by: NagaprasadVr <[email protected]>
(cherry picked from commit 2ee606d)
Copy link

@willhickey willhickey left a comment

Choose a reason for hiding this comment

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

Approved for backport to beta

@joncinque joncinque merged commit 6422ceb into v1.18 Mar 22, 2024
35 checks passed
@joncinque joncinque deleted the mergify/bp/v1.18/pr-364 branch March 22, 2024 20:11
anwayde pushed a commit to firedancer-io/agave that referenced this pull request Jul 23, 2024
… (backport of anza-xyz#364) (anza-xyz#392)

Add `--with-compute-unit-price` to cli program deploy commands (anza-xyz#364)

* add set compute units arg for program deploy

* update master changes

* remove duplicates

* fixes and tests

* remove extra lines

* feedback

* Use simulation to determine compute units consumed

* feedback

---------

Co-authored-by: NagaprasadVr <[email protected]>
(cherry picked from commit 2ee606d)

Co-authored-by: Justin Starry <[email protected]>
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