Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jstarry committed Aug 11, 2024
1 parent a1180a4 commit c91008a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions runtime/src/stakes/serde_stakes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,8 @@ use {
};

/// Wrapper struct with custom serialization to support serializing
/// `Stakes<StakeAccount>` as `Stakes<Stake>` without doing a full deep clone of
/// the stake data. Serialization works by building a `Stakes<&Stake>` map which
/// borrows `&Stake` from `StakeAccount` entries in `Stakes<StakeAccount>`. Note
/// that `Stakes<&Stake>` still copies `Pubkey` keys so the `Stakes<&Stake>`
/// data structure still allocates a fair amount of memory but the memory only
/// remains allocated during serialization.
/// `Stakes<StakeAccount>` as `Stakes<Stake>` without doing an intermediate
/// clone of the stake data.
#[cfg_attr(feature = "frozen-abi", derive(AbiExample, AbiEnumVisitor))]
#[derive(Debug, Clone)]
pub enum SerdeStakesToStakeFormat {
Expand Down

0 comments on commit c91008a

Please sign in to comment.