Skip to content

feat(alpenglow): introducing the alpenclock account to the bank#10623

Closed
ksn6 wants to merge 2 commits intoanza-xyz:masterfrom
ksn6:alpenglow-introduce-bank-alpenclock-structures
Closed

feat(alpenglow): introducing the alpenclock account to the bank#10623
ksn6 wants to merge 2 commits intoanza-xyz:masterfrom
ksn6:alpenglow-introduce-bank-alpenclock-structures

Conversation

@ksn6
Copy link
Copy Markdown

@ksn6 ksn6 commented Feb 17, 2026

Problem

The clock sysvar (Clock) has second-level resolution for its unix_timestamp field. Alpenglow block footers carry UNIX timestamps at nanosecond resolution, but there is currently no on-chain account to store and expose this higher-precision timestamp.

Summary of Changes

  • Introduce a new off-curve PDA account (NANOSECOND_CLOCK_ACCOUNT) derived from the seed "alpenclock" under the alpenglow feature gate program address.

  • Add Bank::update_clock_from_footer(unix_timestamp_nanos)

  • Add Bank::get_nanosecond_clock() to deserialize the nanosecond timestamp from the alpenclock account.

This PR addresses solana-foundation/solana-improvement-documents#363.

@ksn6
Copy link
Copy Markdown
Author

ksn6 commented Feb 17, 2026

Note: we don't invoke the introduced functions just yet; we'll be doing so shortly as we continue upstreaming Alpenglow pieces.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Feb 17, 2026

Codecov Report

❌ Patch coverage is 0% with 38 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.0%. Comparing base (cc15ab6) to head (6895663).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##           master   #10623     +/-   ##
=========================================
- Coverage    83.0%    83.0%   -0.1%     
=========================================
  Files         848      848             
  Lines      316606   316644     +38     
=========================================
- Hits       262944   262925     -19     
- Misses      53662    53719     +57     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ksn6 ksn6 force-pushed the alpenglow-introduce-bank-alpenclock-structures branch from 0f20013 to 6895663 Compare February 18, 2026 23:00
@ksn6 ksn6 requested a review from AshwinSekar February 18, 2026 23:01
@AshwinSekar
Copy link
Copy Markdown

is this a duplicate of https://github.com/anza-xyz/agave/pull/10331/changes ?

@ksn6
Copy link
Copy Markdown
Author

ksn6 commented Feb 20, 2026

is this a duplicate of https://github.com/anza-xyz/agave/pull/10331/changes ?

oops, yep - closing

@ksn6 ksn6 closed this Feb 20, 2026
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.

3 participants