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

Feature Gate: Accounts Lt Hash #3333

Open
brooksprumo opened this issue Oct 28, 2024 · 0 comments
Open

Feature Gate: Accounts Lt Hash #3333

brooksprumo opened this issue Oct 28, 2024 · 0 comments
Assignees
Labels
feature-gate Pull Request adds or modifies a runtime feature gate

Comments

@brooksprumo
Copy link

brooksprumo commented Oct 28, 2024

SIMD

solana-foundation/solana-improvement-documents#215

Description

The accounts lt hash is a lattice-based hash of all the accounts. This is an accumulator-style hash of the total account state that can be updated incrementally for each block. The accounts lt hash will enable us to remove the merkle-based accounts hash calculations.

This feature gate does the following:

  • Mixes in the accounts lt hash into the bank hash
  • Removes the Epoch Accounts Hash from the bank hash (and removes its calculation)
  • At feature activation, calculate the accounts lt hash (unless already calculated)
  • At startup, calculate the accounts lt hash (unless already got it from the snapshot)

The accounts lt hash is stored in each bank. During bank freeze, its value is updated.

Feature ID

LtHaSHHsUge7EWTPVrmpuexKz6uVHZXZL6cgJa7W7Zn

Activation Method

Single Core Contributor

Deployment Considerations

All clients (Agave, Firedancer, etc) must have this feature implemented before activation. Client-agnostic test vectors will be helpful here.

Partitioned Epoch Rewards should also be activated before this feature is activated. (now activated on all clusters)

Minimum Beta Version

No response

Minimum Stable Version

No response

Testnet Activation Epoch

No response

Devnet Activation Epoch

No response

Mainnet-Beta Activation Epoch

No response

@brooksprumo brooksprumo added the feature-gate Pull Request adds or modifies a runtime feature gate label Oct 28, 2024
@brooksprumo brooksprumo self-assigned this Oct 28, 2024
@brooksprumo brooksprumo reopened this Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-gate Pull Request adds or modifies a runtime feature gate
Projects
None yet
Development

No branches or pull requests

1 participant