solana
solana copied to clipboard
round down compute-unit-price to its nearest 1_000 microlamport
Problem
Rounding compute-unit-price down to nearest 1_000 micro-lamport, effectively making its minimum change to be 0.001 lamport.
Summary of Changes
- add feature gate
- round compute-unit-price down to nearest 1_000 micro-lamports if feature activated;
- add and update tests
Feature Gate Issue: #31453
runtime/src/transaction_priority_details.rs now requires feature activation status in order to determine prioritization. PR #31549 adds a flag to packet to pass feature status.
blocked by #31549
Draft change itself looks fine to me. I feel like we need a SIMD for this though to fully justify why we want to do this, and to enable folks like Pyth to chime in on any impact it may have on their transactions and if/when they can make changes in their design to deal with it
Draft change itself looks fine to me. I feel like we need a SIMD for this though to fully justify why we want to do this, and to enable folks like Pyth to chime in on any impact it may have on their transactions and if/when they can make changes in their design to deal with it
Sounds good, I'll chat with David then open a SIMD today.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
c142ba1) 82.0% compared to head (c39e284) 82.0%. Report is 1568 commits behind head on master.
Additional details and impacted files
@@ Coverage Diff @@
## master #31469 +/- ##
========================================
Coverage 82.0% 82.0%
========================================
Files 769 769
Lines 209137 209250 +113
========================================
+ Hits 171587 171696 +109
- Misses 37550 37554 +4
@eugene-chen @SpaceMonkeyForever would you be able to review?
I am definitely not qualified to review the code 😁
This is probably a job for @mschneider
Think we had agreed on this PR, would love to have it merged before drifting too far away from master. Would appreciate review / approve SIMD 50 first.
tag @eugene-chen @mschneider @godmodegalactus @SpaceMonkeyForever
🙇🏼♂️
Overall looks good to me. Performance impact should be insignificant overall but may increase a little the average CU consumed by compute budget program.
approved, but still we should be waiting on the SIMD acceptance.
approved, but still we should be waiting on the SIMD acceptance.
🙇🏼
This repository is no longer in use. Please re-open this pull request in the agave repo: https://github.com/anza-xyz/agave