Store PeerIds in collator pool (#299)

This commit is contained in:
Bastian Köcher
2019-06-24 20:46:03 +02:00
committed by GitHub
parent feb62bc52e
commit 67ee212171
2 changed files with 20 additions and 13 deletions
+5 -1
View File
@@ -491,7 +491,11 @@ impl Specialization<Block> for PolkadotProtocol {
}
ctx.report_peer(who.clone(), benefit::NEW_COLLATOR);
let collator_role = self.collators.on_new_collator(acc_id.clone(), para_id.clone());
let collator_role = self.collators.on_new_collator(
acc_id.clone(),
para_id.clone(),
who.clone(),
);
peer_info.collator_state.set_role(collator_role, |msg| send_polkadot_message(
ctx,