Skip to content

Commit

Permalink
TODOs
Browse files Browse the repository at this point in the history
  • Loading branch information
bchocho committed Oct 18, 2023
1 parent f7ac970 commit 6b82523
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mempool/src/shared_mempool/coordinator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ async fn handle_update_peers<NetworkClient, TransactionValidator>(
.write()
.update_peers(&connected_peers);
let (newly_added_upstream, disabled) = smp.network_interface.update_peers(&connected_peers);
// TODO: anything that is old, filter out of newly_add_upstream and add to disabled
if !newly_added_upstream.is_empty() || !disabled.is_empty() {
counters::shared_mempool_event_inc("peer_update");
notify_subscribers(SharedMempoolNotification::PeerStateChange, &smp.subscribers);
Expand Down

0 comments on commit 6b82523

Please sign in to comment.