Module solana_runtime::stakes
source · [−]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.
Stake is equivalent to the old code and is used for backward
compatibility in BankFieldsToDeserialize.
But banks cache Stakes which includes the entire stake
account and StakeState deserialized from the account. Doing so, will remove
the need to load the stake account from accounts-db when working with
stake-delegations.