message: feat(shell_automaton): don't send bootstrap message if we have max potential peers
diff: @@ -647,7 +647,9 @@ pub fn peer_handshaking_effects<S>(
  }
  Action::PeerHandshakingFinish(action) => {
  - let peer_handshaked = match store.state.get().peers.get(&action.address) {
  + let state = store.state.get();
  +
  + let peer_handshaked = match state.peers.get(&action.address) {
  Some(peer) => match &peer.status {
  PeerStatus::Handshaked(v) => v,
  _ => {
  @@ -673,6 +675,7 @@ pub fn peer_handshaking_effects<S>(
  Arc::new(peer_handshaked.version.clone()),
  ));
  + if state.peers.potential_len() < state.config.peers_potential_max {
  store.dispatch(
  PeerMessageWriteInitAction {
  address: action.address,
  @@ -680,6 +683,7 @@ pub fn peer_handshaking_effects<S>(
  }
  .into(),
  );
  + }
  store.dispatch(
  PeerMessageReadInitAction {
  