Skip to content

Commit

Permalink
PATCH: Carry over epoch maintenance flag (#64)
Browse files Browse the repository at this point in the history
Co-authored-by: Christian  Krueger <[email protected]>
  • Loading branch information
coachchucksol and Christian Krueger authored Jul 29, 2024
1 parent f83602d commit ad711ce
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions programs/steward/src/state/steward_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,12 @@ impl StewardState {
self.stake_deposit_unstake_total = 0;
self.delegations = [Delegation::default(); MAX_VALIDATORS];
self.instant_unstake = BitMask::default();

let has_epoch_maintenance = self.has_flag(EPOCH_MAINTENANCE);
self.clear_flags();
if has_epoch_maintenance {
self.set_flag(EPOCH_MAINTENANCE);
}

Ok(())
}
Expand Down

0 comments on commit ad711ce

Please sign in to comment.