anchor.diff:  -ifdef(with_export_type_support).
   -export_type([method/0, request/0]).
   -endif.
  -
  --define(REP_FACTOR, 4).
   
   -type method()         :: bloom | merkle_tree | art | iblt | undefined.
   -type stage()          :: req_shared_interval | res_shared_interval | build_struct | reconciliation.
  
positive.code:                                                             keyBF = KeyBF,
                                                              versBF = VersBF},
                          round = Round }) ->
      ?TRACE("BUILD STRUCT", []),
      %if rest interval is non empty start another sync    
      SyncFinished = intervals:is_empty(RestI),
      not SyncFinished andalso
  
negative.code:     State;
  
  on({get_chunk_response, {_, []}}, State) ->
      ?TRACE("BUILD STRUCT1", []),
      comm:send_local(self(), {shutdown, req_chunk_is_empty}),
      State;
  
  