You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the following code snippet from zebra-network’s AddressBook implementation, the helper function adds a list of peer addresses to the address book. However, it first takes addr_limit elements from the list and then deduplicates it, as such if there are repeated elements in the truncated list, the resulting address book will be smaller than the required limit. It is more robust to deduplicate the list and then take addr_limit elements from it. As this function is only used in tests, it is left as a note:
In the following code snippet from
zebra-network
’sAddressBook
implementation, the helper function adds a list of peer addresses to the address book. However, it first takesaddr_limit
elements from the list and then deduplicates it, as such if there are repeated elements in the truncated list, the resulting address book will be smaller than the required limit. It is more robust to deduplicate the list and then takeaddr_limit
elements from it. As this function is only used in tests, it is left as a note:zebra/zebra-network/src/address_book.rs
Lines 143 to 188 in 5a88fe7
The text was updated successfully, but these errors were encountered: