Skip to content

Commit 9646bfc

Browse files
committed
Fix hotkey emission tuples
1 parent 27ddaff commit 9646bfc

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pallets/subtensor/src/subnets/subsubnet.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,6 @@ impl<T: Config> Pallet<T> {
214214
})
215215
// Consolidate the hotkey emissions into a single BTreeMap
216216
.fold(BTreeMap::new(), |mut acc, (hotkey, (terms, sub_weight))| {
217-
218-
println!("Hotkey: {:?}, terms: {:?}", hotkey, terms);
219-
220217
acc.entry(hotkey)
221218
.and_modify(|acc_terms| {
222219
acc_terms.dividend = Self::weighted_acc_u16(
@@ -276,9 +273,10 @@ impl<T: Config> Pallet<T> {
276273

277274
// Remap BTreeMap back to Vec<(T::AccountId, AlphaCurrency, AlphaCurrency)> format
278275
// for processing emissions in run_coinbase
276+
// Emission tuples ( hotkeys, server_emission, validator_emission )
279277
aggregated
280278
.into_iter()
281-
.map(|(hotkey, terms)| (hotkey, terms.validator_emission, terms.server_emission))
279+
.map(|(hotkey, terms)| (hotkey, terms.server_emission, terms.validator_emission))
282280
.collect()
283281
}
284282
}

0 commit comments

Comments
 (0)