comparePeerErase

True if lhs is a better erase candidate than rhs (i.e. should be dropped first). This is the port of the file-local compare_peer_erase. Priority:

  1. higher failcount is dropped first;

  2. a peer whose only source is resume data is dropped first;

  3. a non-connectable peer is dropped first;

  4. lower trustPoints is dropped first.