This repository was archived by the owner on Jan 22, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
round down compute-unit-price to its nearest 1_000 microlamport #31469
Closed
tao-stones
wants to merge
7
commits into
solana-labs:master
from
tao-stones:round_down_compute_unit_price
Closed
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
c93d57f
1. add feature gate;
tao-stones cc99f82
update tests
tao-stones 3f9507c
update ssbf test
tao-stones 00f7f50
update to round down compute_unit_price to 1_000 micro-lamports
tao-stones 33b8e2d
update feature text
tao-stones 46964cd
const ROUND_DOWN_FACTOR
tao-stones c39e284
rename a const
tao-stones File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3833,7 +3833,8 @@ fn test_program_fees() { | |
| true, | ||
| true, | ||
| true, | ||
| false, | ||
| true, | ||
| true, | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. these should all be true since bank has all features enabled at ln 3805 |
||
| ); | ||
| bank_client | ||
| .send_and_confirm_message(&[&mint_keypair], message) | ||
|
|
@@ -3844,7 +3845,7 @@ fn test_program_fees() { | |
| let pre_balance = bank_client.get_balance(&mint_keypair.pubkey()).unwrap(); | ||
| let message = Message::new( | ||
| &[ | ||
| ComputeBudgetInstruction::set_compute_unit_price(1), | ||
| ComputeBudgetInstruction::set_compute_unit_price(1_000_000_000), | ||
| Instruction::new_with_bytes(program_id, &[], vec![]), | ||
| ], | ||
| Some(&mint_keypair.pubkey()), | ||
|
|
@@ -3859,7 +3860,8 @@ fn test_program_fees() { | |
| true, | ||
| true, | ||
| true, | ||
| false, | ||
| true, | ||
| true, | ||
| ); | ||
| assert!(expected_normal_fee < expected_prioritized_fee); | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.