anchor.diff:      end.
   
   %% @private
  -maybe_load_state_from_disk() ->
  +maybe_load_epoch_from_disk() ->
       case data_root() of
           undefined ->
  -            empty_membership();
  +            zero_epoch();
           Dir ->
               case filelib:is_regular(filename:join(Dir, "cluster_state")) of
                   true ->
                       {ok, Bin} = file:read_file(filename:join(Dir, "cluster_state")),
                       binary_to_term(Bin);
                   false ->
  -                    empty_membership()
  +                    zero_epoch()
               end
       end.
   
   %% @private
  -persist_state({Active, Passive, Epoch}) ->
  -    write_state_to_disk({Active, Passive, Epoch});
  -persist_state(#state{active=Active, passive=Passive, epoch=Epoch}) ->
  -    persist_state({Active, Passive, Epoch}).
  +persist_epoch(Epoch) ->
  +    write_state_to_disk(Epoch).
   
   %% @private
   members(Set) ->
  
positive.code:     {noreply, State}.
  
  %% @private
  empty_membership() ->
      %% Each cluster starts with only itself.
      Active = sets:add_element(myself(), sets:new()),
      Passive = sets:new(),
      LocalState = {Active, Passive, 0},
      persist_state(LocalState),
      LocalState.
  
  %% @private
  data_root() ->
  
negative.code:     %% Process connection exits.
      process_flag(trap_exit, true),
  
      Epoch = maybe_load_epoch_from_disk(),
      
      Myself = myself(),
      Active = sets:add_element(Myself, sets:new()),
      Passive = sets:new(),
      Connections = partisan_peer_service_connections:new(),
      
      SentMessageMap = dict:new(),
      RecvMessageMap = dict:new(),
  
  