Skip to content

Commit

Permalink
NODE-149, fix: resolve conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
dnjscksdn98 committed Nov 14, 2024
1 parent 5cb889f commit f0f04b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pallets/btc-registration-pool/src/pallet/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,14 @@ impl<T: Config> PoolManager<T::AccountId> for Pallet<T> {
}

fn replace_authority(old: &T::AccountId, new: &T::AccountId) {
let round = Self::current_round();
let round = CurrentRound::<T>::get();
// move pre-submitted pub keys from old to new
let pre_submitted_pub_keys = <PreSubmittedPubKeys<T>>::take(round, old);
if !pre_submitted_pub_keys.is_empty() {
<PreSubmittedPubKeys<T>>::insert(round, new, pre_submitted_pub_keys);
}
// replace authority in system vault (if it's pending)
if let Some(mut vault) = Self::system_vault(round) {
if let Some(mut vault) = SystemVault::<T>::get(round) {
if vault.address == AddressState::Pending {
vault.replace_authority(old, new);
}
Expand Down

0 comments on commit f0f04b4

Please sign in to comment.