anchor.diff:                      %% Add to active view.
                       add_to_active_view(Peer, Tag, State1);
                   false ->
  -                    %% Get next disconnect id for the peer.
  -                    NextId = get_next_id(Peer, Epoch, SentMessageMap0),
  -                    %% Update the SentMessageMap.
  -                    SentMessageMap = dict:store(Peer, NextId, SentMessageMap0),
  -
  -                    %% Let peer know we did not add them into the active view.
  -                    do_send_message(Peer,
  -                                    {disconnect, Myself, NextId},
  -                                    Connections),
  -
  -                    State0#state{sent_message_map=SentMessageMap}
  +                    State0
               end
       end,
   
  
positive.code:                     %% Add node into the active view.
                      add_to_active_view(Peer, TheirTag, State0);
                  false ->
                      %% Get next disconnect id for the peer.
                      NextId = get_next_id(Peer, Epoch, SentMessageMap0),
                      %% Update the SentMessageMap.
                      SentMessageMap = dict:store(Peer, NextId, SentMessageMap0),
  
                      %% Let peer know we did not add them into the active view.
                      do_send_message(Peer,
                                      {disconnect, Myself, NextId},
                                      Connections),
  
                      State0#state{sent_message_map=SentMessageMap}
              end,
  
      %% Notify with event.
  
negative.code:         {ok, {Epoch, _Cnt}} ->
              PeerEpoch >= Epoch
      end.
  
  %% @private
  enable_disconnect_trigger(Name, Connections) ->
      %% Find a connection for the remote node, if we have one.
      case dict:find(Name, Connections) of
          {ok, undefined} ->
              %% Return original set.
              Connections;
          {ok, {Pid, _DisconnectTriggered}} ->
              %% Enable the DisconnectTriggered.
              dict:store(Name, {Pid, true}, Connections);
          error ->
              %% Return original set.
              Connections
      end.
  
  %% @private
  get_disconnect_trigger(Name, Connections) ->
      %% Find a connection for the remote node, if we have one.
      case dict:find(Name, Connections) of
          {ok, undefined} ->
              %% No peer means no trigger.
              false;
          {ok, {_Pid, DisconnectTriggered}} ->
              DisconnectTriggered;
          error ->
              %% No peer means no trigger.
              false
      end.
  