public SettingsPack maxPeerlistSize ( int value ) { sp . set_int ( settings_pack . int_types . max_peerlist_size . swigValue ( ) , value ) ; return this ; }
Sets the maximum number of peers in the list of known peers . These peers are not necessarily connected so this number should be much greater than the maximum number of connected peers . Peers are evicted from the cache when the list grows passed 90% of this limit and once the size hits the limit peers are no longer added to the list . If this limit is set to 0 there is no limit on how many peers we ll keep in the peer list .