Skip to content

v2: clock: Restore consts that are cfg-ed out#564

Merged
joncinque merged 1 commit intoanza-xyz:maintenance/v2.xfrom
joncinque:restore-clock
Feb 9, 2026
Merged

v2: clock: Restore consts that are cfg-ed out#564
joncinque merged 1 commit intoanza-xyz:maintenance/v2.xfrom
joncinque:restore-clock

Conversation

@joncinque
Copy link
Copy Markdown
Collaborator

Problem

#173 inadvertently removed a bunch of consts when it just wanted to deprecate them, which created breaking changes in v2.2.2 of clock.

Summary of changes

Restore the consts by removing the #[cfg(test)] annotation.

cc @cavemanloverboy thanks for noticing!

#### Problem

anza-xyz#173 inadvertently removed a bunch of consts when it just wanted to
deprecate them, which created breaking changes in v2.2.2 of clock.

#### Summary of changes

Restore the consts by removing the `#[cfg(test)]` annotation.
@joncinque joncinque requested review from bw-solana and febo February 9, 2026 20:46
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 9, 2026

If this PR represents a change to the sysvar layout, please open a follow-up PR to update the JavaScript client @solana/sysvars (example)
Thank you for keeping the JavaScript clients in sync with the Rust clients.

Copy link
Copy Markdown
Contributor

@bw-solana bw-solana left a comment

Choose a reason for hiding this comment

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

omg.. who wrote that awful code?

@joncinque
Copy link
Copy Markdown
Collaborator Author

Merging on red, failures are unrelated, due to this being a pretty old branch

@joncinque joncinque merged commit cf3a7fc into anza-xyz:maintenance/v2.x Feb 9, 2026
24 of 26 checks passed
@joncinque joncinque deleted the restore-clock branch February 9, 2026 21:43
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