Add equals method to check comparing objects peers and pools to ensure object equality