Skip to content

Commit

Permalink
Typo corrections meant to be added in the prior commit
Browse files Browse the repository at this point in the history
  • Loading branch information
kayabaNerve committed Jul 4, 2024
1 parent 52bb918 commit 703c6a2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions substrate/validator-sets/pallet/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ pub mod pallet {
});

// Update the total allocated stake to be for the current set
self.set_total_allocated_stake(set.network);
Self::set_total_allocated_stake(set.network);
}

/// Take the amount deallocatable.
Expand Down Expand Up @@ -912,8 +912,10 @@ pub mod pallet {
Keys::<T>::set(set, Some(key_pair.clone()));

// If this is the first ever set for this network, set TotalAllocatedStake now
// We generally set TotalAllocatedStake when the prior set retires, and the new set is fully
// active and liable. Since this is the first set, there is no prior set to wait to retire
if session == Session(0) {
self.set_total_allocated_stake(network);
Self::set_total_allocated_stake(network);
}

// This does not remove from TotalAllocatedStake or InSet in order to:
Expand Down

0 comments on commit 703c6a2

Please sign in to comment.