Skip to content

Commit

Permalink
Make weights_bonds mutable
Browse files Browse the repository at this point in the history
  • Loading branch information
opentaco committed Nov 6, 2024
1 parent 84728cc commit 810a3fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pallets/subtensor/src/epoch/run_epoch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ impl<T: Config> Pallet<T> {
log::trace!("W (mask+norm):\n{:?}\n", &weights);

// Clone weights for separate bonds calculation.
let weights_bonds: Vec<Vec<I32F32>> = weights.clone();
let mut weights_bonds: Vec<Vec<I32F32>> = weights.clone();

// ================================
// == Consensus, Validator Trust ==
Expand Down Expand Up @@ -564,7 +564,7 @@ impl<T: Config> Pallet<T> {
log::trace!("Weights (mask+norm): {:?}", &weights);

// Clone weights for separate bonds calculation.
let weights_bonds: Vec<Vec<(u16, I32F32)>> = weights.clone();
let mut weights_bonds: Vec<Vec<(u16, I32F32)>> = weights.clone();

// ================================
// == Consensus, Validator Trust ==
Expand Down

0 comments on commit 810a3fc

Please sign in to comment.