-
Notifications
You must be signed in to change notification settings - Fork 277
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
add feature gate to collect and reward priority fee fully #583
add feature gate to collect and reward priority fee fully #583
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should update SchedulerController::calculate_priority_and_cost
to appropriately consider the feature-gate.
Good call! something like this: |
core/src/banking_stage/transaction_scheduler/scheduler_controller.rs
Outdated
Show resolved
Hide resolved
389bad3
to
80c6427
Compare
34424a1
to
8445ca3
Compare
bank.feature_set | ||
.is_active(&remove_rounding_in_fee_calculation::id()), | ||
); | ||
let reward = bank.calculate_reward_for_transaction(transaction, fee_budget_limits); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Simply sharing bank's reward calculation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there will be some oddity here when the feature gets activated. txs received before feature-activation will still have old calculation (prio 50% burned) those after will not.
This will only be an effect around the epoch boundary.
* add feature gate to collect and distribute priority fee fully * add feature gate logic to SchedulerController::calculate_priority_and_cost() * set feature gate status correctly for tests
Problem
Follow up #178 and #566; Rewarding full priority fee will break consensus.
Summary of Changes
Fix Feature Gate Issue: solana-labs#34731