Skip to content

Commit

Permalink
feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
jstarry committed Jul 27, 2024
1 parent 429a4ea commit c2a4346
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions runtime/src/epoch_stakes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,12 @@ impl From<VersionedEpochStakes> for EpochStakes {
}
}

/// Only the "delegations" epoch stakes enum variant is unable to be serialized
/// as a "stakes" epoch stakes enum variant so leave those entries and split off
/// the other epoch stakes enum variants into a new map which will be serialized
/// into the new `versioned_epoch_stakes` snapshot field. After a cluster
/// transitions to serializing epoch stakes in the new format, "delegations"
/// epoch stakes enum variants for recent epochs will no longer be created and
/// can be deprecated.
/// Only the `StakesEnum::Delegations` variant is unable to be serialized as a
/// `StakesEnum::Stakes` variant, so leave those entries and split off the other
/// epoch stakes enum variants into a new map which will be serialized into the
/// new `versioned_epoch_stakes` snapshot field. After a cluster transitions to
/// serializing epoch stakes in the new format, `StakesEnum::Delegations`
/// variants for recent epochs will no longer be created and can be deprecated.
pub(crate) fn split_epoch_stakes(
bank_epoch_stakes: HashMap<Epoch, EpochStakes>,
) -> (
Expand Down

0 comments on commit c2a4346

Please sign in to comment.