Crate cuprate_address_book

Source
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§

AddressBookConfig
The address book config.

Enums§

AddressBookError
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.