mirror of
https://github.com/serai-dex/serai.git
synced 2024-12-22 19:49:22 +00:00
Typo corrections meant to be added in the prior commit
Some checks failed
Full Stack Tests / build (push) Has been cancelled
Lint / clippy (macos-13) (push) Has been cancelled
Lint / clippy (macos-14) (push) Has been cancelled
Lint / clippy (ubuntu-latest) (push) Has been cancelled
Lint / clippy (windows-latest) (push) Has been cancelled
Lint / deny (push) Has been cancelled
Lint / fmt (push) Has been cancelled
Lint / machete (push) Has been cancelled
Reproducible Runtime / build (push) Has been cancelled
Tests / test-infra (push) Has been cancelled
Tests / test-substrate (push) Has been cancelled
Tests / test-serai-client (push) Has been cancelled
Some checks failed
Full Stack Tests / build (push) Has been cancelled
Lint / clippy (macos-13) (push) Has been cancelled
Lint / clippy (macos-14) (push) Has been cancelled
Lint / clippy (ubuntu-latest) (push) Has been cancelled
Lint / clippy (windows-latest) (push) Has been cancelled
Lint / deny (push) Has been cancelled
Lint / fmt (push) Has been cancelled
Lint / machete (push) Has been cancelled
Reproducible Runtime / build (push) Has been cancelled
Tests / test-infra (push) Has been cancelled
Tests / test-substrate (push) Has been cancelled
Tests / test-serai-client (push) Has been cancelled
This commit is contained in:
parent
52bb918cc9
commit
703c6a2358
1 changed files with 4 additions and 2 deletions
|
@ -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.
|
||||
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue