Expand description
Cuprate Address Book
This module holds the logic for persistent peer storage.
Cuprates address book is modeled as a tower::Service
The request is AddressBookRequest and the response is
AddressBookResponse.
Cuprate, like monerod, actually has multiple address books, one
for each NetworkZone. This is to reduce the possibility of
clear net peers getting linked to their dark counterparts
and so peers will only get told about peers they can
connect to.
Structs§
- Address
Book Config  - The address book config.
 
Enums§
- Address
Book Error  - Possible errors when dealing with the address book.
This is boxed when returning an error in the 
tower::Service. 
Functions§
- init_
address_ book  - Initializes the P2P address book for a specific network zone.