anchor.diff:                   [Event, State]),
       {next_state, master, State}.
   
  -
  -worker({heartbeat, Node, Type, _H}, State) when is_atom(Node) ->
  -    ?log_warning("Worker got old-style ~p heartbeat from node ~p. Ignoring.",
  -                 [Type, Node]),
  -    {next_state, worker, State};
   
   worker({heartbeat, NodeInfo, master, _H}, State) ->
       Node = node_info_to_node(NodeInfo),
  
positive.code: %% States
  %%
  
  candidate({heartbeat, Node, Type, _H}, State) when is_atom(Node) ->
      ?log_warning("Candidate got old-style ~p heartbeat from node ~p. Ignoring.",
                   [Type, Node]),
      {next_state, candidate, State};
  
  candidate({heartbeat, NodeInfo, master, _H}, #state{peers=Peers} = State) ->
      Node = node_info_to_node(NodeInfo),
  
  
negative.code:     {next_state, candidate, State}.
  
  
  master({heartbeat, NodeInfo, master, _H}, #state{peers=Peers} = State) ->
      Node = node_info_to_node(NodeInfo),
  
  