Skip to content

Removes AccountsPackageKind::EpochAccountsHash#7000

Merged
brooksprumo merged 1 commit intoanza-xyz:masterfrom
brooksprumo:lthash/215/accounts-package-kind
Jul 16, 2025
Merged

Removes AccountsPackageKind::EpochAccountsHash#7000
brooksprumo merged 1 commit intoanza-xyz:masterfrom
brooksprumo:lthash/215/accounts-package-kind

Conversation

@brooksprumo
Copy link
Copy Markdown

@brooksprumo brooksprumo commented Jul 16, 2025

Problem

The epoch accounts hash has been removed, so there are no more snapshot requests to calculate the EAH. The EAH request kind for AccountsBackgroundService and AccountsHashVerifier can be removed.

Summary of Changes

Removes SnapshotRequestKind::EpochAccountsHash and AccountsPackageKind::EpochAccountsHash.

@brooksprumo brooksprumo self-assigned this Jul 16, 2025
@brooksprumo brooksprumo force-pushed the lthash/215/accounts-package-kind branch from f745d8b to b1eccc9 Compare July 16, 2025 16:46
@brooksprumo brooksprumo marked this pull request as ready for review July 16, 2025 17:13
#[derive(Debug, Copy, Clone, Eq, PartialEq)]
pub enum AccountsPackageKind {
Snapshot(SnapshotKind),
EpochAccountsHash,
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Main change.

pub enum SnapshotRequestKind {
FullSnapshot,
IncrementalSnapshot,
EpochAccountsHash,
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Other main change.

@brooksprumo brooksprumo requested review from HaoranYi and roryharr July 16, 2025 17:15
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 95.65217% with 1 line in your changes missing coverage. Please review.

Project coverage is 83.2%. Comparing base (1fe5ac4) to head (b1eccc9).
Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##           master    #7000     +/-   ##
=========================================
- Coverage    83.2%    83.2%   -0.1%     
=========================================
  Files         853      853             
  Lines      375401   375115    -286     
=========================================
- Hits       312545   312204    -341     
- Misses      62856    62911     +55     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

// By asking for the second-to-last element to be in its final sorted position, we
// also ensure that the last element is also sorted.
let (_, y, z) = accounts_packages.select_nth_unstable_by(
// Note, we no longer need the second-to-last element; this code can be refactored.
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

👍

Copy link
Copy Markdown

@HaoranYi HaoranYi left a comment

Choose a reason for hiding this comment

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

lgtm.

@brooksprumo brooksprumo merged commit e3cff78 into anza-xyz:master Jul 16, 2025
41 checks passed
@brooksprumo brooksprumo deleted the lthash/215/accounts-package-kind branch July 16, 2025 20:50
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.

4 participants