Skip to content

Commit

Permalink
fix(core): reconnect disconnected peer (hyperledger-iroha#5325)
Browse files Browse the repository at this point in the history
Signed-off-by: Lohachov Mykhailo <lohachov@soramitsu.co.jp>
  • Loading branch information
aoyako committed Feb 25, 2025
1 parent a18bd63 commit e98bc41
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions crates/iroha_core/src/peers_gossiper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ impl PeersGossiper {
}
() = self.network.wait_online_peers_update(|_| ()) => {
self.gossip_peers();
self.network_update_peers_addresses();
}
Some((peers_gossip, peer)) = message_receiver.recv() => {
self.handle_peers_gossip(peers_gossip, &peer);
Expand Down
1 change: 0 additions & 1 deletion crates/iroha_p2p/src/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,6 @@ impl<T: Pload, K: Kex, E: Enc> NetworkBase<T, K, E> {
fn set_current_peers_addresses(&mut self, UpdatePeers(peers): UpdatePeers) {
debug!(?peers, "Network receive new peers addresses");
self.current_peers_addresses = peers;
self.update_topology()
}

fn update_topology(&mut self) {
Expand Down

0 comments on commit e98bc41

Please sign in to comment.