Expand description
Stakes serve as a cache of stake and vote accounts to derive node stakes
Structs§
- The generic type T is either Delegation or StakeAccount.
Stakes<Delegation>
is equivalent to the old code and is used for backward compatibility incrate::bank::BankFieldsToDeserialize
. But banks cacheStakes<StakeAccount>
which includes the entire stake account and StakeStateV2 deserialized from the account. Doing so, will remove the need to load the stake account from accounts-db when working with stake-delegations.
Enums§
- Wrapper struct with custom serialization to support serializing
Stakes<StakeAccount>
asStakes<Stake>
without doing an intermediate clone of the stake data.