anchor.diff:  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   
   -define(TRACE(X,Y), ok).
  -%-define(TRACE(X,Y), io:format("~w: [~p] " ++ X ++ "~n", [?MODULE, self()] ++ Y)).
  +%-define(TRACE(X,Y), log:pal("~w: [ ~.0p ] " ++ X ++ "~n", [?MODULE, self()] ++ Y)).
  +-define(TRACE_SEND(Pid, Msg), ?TRACE("to ~.0p: ~.0p~n", [Pid, Msg])).
  +-define(TRACE1(Msg, State),
  +        ?TRACE("~n  Msg: ~.0p~n"
  +               "  State: method: ~.0p  stage: ~.0p  initiator: ~.0p~n"
  +               "         params: ~.0p~n",
  +               [Msg, State#rr_recon_state.method, State#rr_recon_state.stage,
  +                State#rr_recon_state.initiator,
  +                ?IIF(is_list(State#rr_recon_state.struct), State#rr_recon_state.struct, [])])).
   
   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   % type definitions
  
positive.code:             shutdown(empty_interval, NewState)
      end;
  
  on({get_state_response, MyI}, State = 
         #rr_recon_state{ stage = res_shared_interval,
                          initiator = true,
                          method = RMethod,
                          struct = Params,
                          dhtNodePid = DhtPid,
                          dest_rr_pid = DestRRPid }) when (RMethod =:= merkle_tree orelse RMethod =:= art) ->
      % initiator got interval of client to create his own recon structure (merkle/art)
      % based on common interval
      DestI = proplists:get_value(interval, Params),
  
negative.code:                     true -> art_recon(SyncStruct, proplists:get_value(art, Params), State);                    
                      false ->
                          ArtParams = [{interval, art:get_interval(SyncStruct)}, {art, SyncStruct}],
                          send(DestRRPid,
                               {continue_recon, comm:make_global(OwnerL), SID,
                                {continue, art, res_shared_interval, ArtParams, true}}),
                          {no, Stats}
                  end,
              send_local(self(), {shutdown, ?IIF(AOk =:= ok, sync_finished, build_struct)}),
              ARStats
      end.
  
  