anchor.diff:      State.
   
   
  +-spec pieces(peerstate()) -> pieceset().
  +pieces(Peerstate) ->
  +    #peerstate{pieces=Pieces} = Peerstate,
  +    is_integer(Pieces) andalso erlang:error(badarg),
  +    Pieces.
  +
  +
   -spec hasset(binary(), peerstate()) -> peerstate().
   hasset(Bitfield, Peerstate) ->
       #peerstate{pieces=Pieces} = Peerstate,
  
positive.code: 
  -spec interesting(pieceindex(), peerstate()) -> unchanged | true.
  interesting(Piece, Peerstate) ->
      #peerstate{interested=Status, pieces=Pieces} = Peerstate,
      NewStatus = case Status of
          %% If we are already interested this won't change that
          true  -> true;
  
negative.code:          interesting/3,
           seeder/1,
           seeder/2,
           pieces/1,
           requests/1,
           requests/2,
           needreqs/1]).
  