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

remove cu price rounding #3047

Merged
merged 2 commits into from
Oct 2, 2024

Conversation

apfitzge
Copy link

@apfitzge apfitzge commented Oct 1, 2024

Problem

Summary of Changes

  • Remove all code related to that feature
  • Remove all the now unused variables/fields

Fixes #

@apfitzge apfitzge marked this pull request as ready for review October 1, 2024 21:35
@apfitzge apfitzge requested a review from tao-stones October 1, 2024 21:35
Copy link

@tao-stones tao-stones left a comment

Choose a reason for hiding this comment

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

Overall look reasonable, it is essentially a manual revert of solana-labs#31549.

I closed related feature Issue solana-labs#31453.

/// to be set by bank.feature_set.is_active(round_compute_unit_price::id()) at the moment
/// the packet is built.
/// This field can be removed when the above feature gate is adopted by mainnet-beta.
const ROUND_COMPUTE_UNIT_PRICE = 0b0010_0000;
/// For tracking performance
const PERF_TRACK_PACKET = 0b0100_0000;

Choose a reason for hiding this comment

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

Might be better to change it to 0010_000, so there would be no "gap"?

Copy link
Author

Choose a reason for hiding this comment

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

These are serialized in banking_trace data, so I think best to keep the meaning of each flag consistent.

ROUND_COMPUTE_UNIT_PRICE is actually an exception since that was populated only in banking_stage's copy of the Packet.

Choose a reason for hiding this comment

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

Still not great to leave a gap in bit flags. If don't want to introduce a break change in banking_trace at the moment, how about tag 0b0010_0000 as UNUSED?

Copy link
Author

Choose a reason for hiding this comment

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

@apfitzge apfitzge force-pushed the remove_cu_rounding_feature branch from 540ddc4 to f9687a3 Compare October 2, 2024 01:29
@apfitzge apfitzge force-pushed the remove_cu_rounding_feature branch from f9687a3 to 1378868 Compare October 2, 2024 13:44
@apfitzge apfitzge requested a review from tao-stones October 2, 2024 14:02
@apfitzge apfitzge self-assigned this Oct 2, 2024
Copy link

@tao-stones tao-stones left a comment

Choose a reason for hiding this comment

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

lgtm

@apfitzge apfitzge merged commit b39bcb6 into anza-xyz:master Oct 2, 2024
50 checks passed
@apfitzge apfitzge deleted the remove_cu_rounding_feature branch October 2, 2024 16:45
ray-kast pushed a commit to abklabs/agave that referenced this pull request Nov 27, 2024
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.

2 participants