anchor.diff:                                  {ok, FoundPeer#peer{ connection = {connected, PeerCon} }}
                           end
                   end,
  +            maybe_add_monitor(NewPeer, State),
               State1 = State#state{peers = enter_peer(NewPeer, State#state.peers)},
               {reply, Res, metrics(State1)}
       end.
  
positive.code:                         FoundPeer
                  end,
              State1 = State0#state{peers = enter_peer(NewPeer, State0#state.peers)},
              {noreply, metrics(State1)};
          true ->
              lager:debug("Will not add peer ~p", [ppp(PeerId)]),
  
negative.code:     {ok, SecKey} = aec_keys:peer_privkey(),
      {ok, PubKey} = aec_keys:peer_pubkey(),
      LocalPeer = #{seckey => SecKey, pubkey => PubKey},
      PMons = ets:new(aec_peer_monitors, [named_table, protected]),
      lager:info("aec_peers started at ~p", [LocalPeer]),
      {ok, #state{peers = gb_trees:empty(),
                  local_peer = LocalPeer,
                  peer_monitors = PMons
                 }}.
  
  handle_call({set_local_peer_info, Peer}, _From, State) ->
      {reply, ok, State#state{local_peer = Peer}};
  