anchor.diff:           num_valid/1]).
   
   %% gproc registry entries
  --export([register_chunk_server/1,
  -         unregister_chunk_server/1,
  -         lookup_chunk_server/1,
  -         await_chunk_server/1,
  -         register_peer/1]).
  +-export([register_server/1,
  +         unregister_server/1,
  +         lookup_server/1,
  +         await_server/1]).
   
   
   %% gen_server callbacks
  
positive.code:         {ok, ITorrentPid} -> ITorrentPid
      end,
      ScarcityPid = case orddict:find(scarcitypid, Args) of
          error -> etorrent_scarcity:await_scarcity_server(TorrentID);
          {ok, IScarcityPid} -> IScarcityPid
      end,
      Pending = case orddict:find(pendingpid, Args) of
  
negative.code:     end,
  
  
      true = register_server(TorrentID),
      NumPieces = length(PieceSizes),
      PiecesValid = etorrent_pieceset:from_list(FetchedPieces, NumPieces),
      PiecesNone = etorrent_pieceset:from_list([], NumPieces),
  