anchor.diff:      NewState :: #cm_state{}.
   heartbeat(State = #cm_state{nodes = Nodes, uninitialized_nodes = InitNodes}, SenderNode) ->
       ?debug("Heartbeat from node: ~p", [SenderNode]),
  -    ?error("@@ ccm getting active nodes: ~p",[nodes()]),
       case lists:member(SenderNode, Nodes) or lists:member(SenderNode, InitNodes) of
           true ->
               gen_server:cast({?NODE_MANAGER_NAME, SenderNode},
  
positive.code: %%--------------------------------------------------------------------
  %% @private
  %% @doc
  %% Clears information about workers on node that is down.
  %% @end
  %%--------------------------------------------------------------------
  -spec node_down(Node :: atom(), State :: #cm_state{}) -> #cm_state{}.
  
negative.code: -record(cm_state, {
      nodes = [] :: [Node :: node()],
      uninitialized_nodes = [] :: [Node :: node()],
      state_num = 1 :: integer()
  }).
  
  