anchor.diff:  			    Chunks)
   	end,
       RSet = lists:foldl(G, S#state.remote_request_set, ChunkList),
  -
       {ok, S#state { remote_request_set = RSet }}.
   
   %%--------------------------------------------------------------------
  
positive.code: %% Description: Some other peer just downloaded {Index, Offset} so try
  %%   not to download it here if we can avoid it.
  %%--------------------------------------------------------------------
  handle_endgame_got_chunk(_Index, _Offset, S) ->
      todo,
      S.
  
  %%--------------------------------------------------------------------
  %% Func: handle_got_chunk(Index, Offset, Data, Len, S) -> {ok, State}
  
negative.code: %% Function: endgame_got_chunk(Pid, Index, Offset) -> ok
  %% Description: We got the chunk {Index, Offset}, handle it.
  %%--------------------------------------------------------------------
  endgame_got_chunk(Pid, Chunk) ->
      gen_server:cast(Pid, {endgame_got_chunk, Chunk}).
  
  %%--------------------------------------------------------------------
  %% Function: complete_handshake(Pid, ReservedBytes, Socket, PeerId)
  