Skip to content

Commit

Permalink
saved files
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Krueger authored and Christian Krueger committed Jul 16, 2024
1 parent 9042131 commit 675c92c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
4 changes: 1 addition & 3 deletions tests/src/steward_fixtures.rs
Original file line number Diff line number Diff line change
Expand Up @@ -934,10 +934,8 @@ impl Default for StateMachineFixtures {
stake_deposit_unstake_total: 0,
delegations: [Delegation::default(); MAX_VALIDATORS],
instant_unstake: BitMask::default(),
compute_delegations_completed: false.into(),
rebalance_completed: false.into(),
status_flags: 0,
validators_added: 0,
checked_validators_removed_from_list: false.into(),
validators_to_remove: BitMask::default(),
_padding0: [0; STATE_PADDING_0_SIZE],
};
Expand Down
4 changes: 2 additions & 2 deletions tests/tests/steward/test_state_transitions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
These tests cover all possible state transitions when calling the `transition` method on the `StewardState` struct.
*/

use jito_steward::{constants::MAX_VALIDATORS, Delegation, StewardStateEnum};
use jito_steward::{constants::MAX_VALIDATORS, Delegation, StewardStateEnum, REBALANCE};
use tests::steward_fixtures::StateMachineFixtures;

#[test]
Expand Down Expand Up @@ -214,7 +214,7 @@ pub fn test_idle_noop() {

// Case 2: still after instant_unstake_epoch_progress but after rebalance is completed
clock.slot = epoch_schedule.get_last_slot_in_epoch(clock.epoch);
state.rebalance_completed = true.into();
state.set_flag(REBALANCE);
let res = state.transition(clock, parameters, epoch_schedule);
assert!(res.is_ok());
assert!(matches!(state.state_tag, StewardStateEnum::Idle));
Expand Down
6 changes: 1 addition & 5 deletions utils/steward-cli/src/commands/info/view_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,7 @@ fn _print_default_state(
"Stake Deposit Unstake Total: {}\n",
state.stake_deposit_unstake_total
);
formatted_string += &format!(
"Compute Delegations Completed: {:?}\n",
state.compute_delegations_completed
);
formatted_string += &format!("Rebalance Completed: {:?}\n", state.rebalance_completed);

formatted_string += &format!("Padding0 Length: {}\n", state._padding0.len());
formatted_string += "---------------------";

Expand Down

0 comments on commit 675c92c

Please sign in to comment.