Modulesยง
- peer_
utils ๐
Structsยง
Enumsยง
- Peer
Error - Enum for diverse variants of errors when dealing with a
Peer - Peer
Messages - Messages passed from different modules to the main node to process. They should minimal and only if it requires global states, everything else should be handled by the module itself.
- Reader
Message - State ๐
Constantsยง
- ADDR
V2_ ๐MESSAGE_ INTERVAL - To avoid being eclipsed with an address spam attack, we limit the rate of addrv2 messages a peer can send us to one every 10 seconds.
- GET_
UTREEXO_ ๐PROOF_ CMD - The command string for the โget utreexo proofโ message
- INV_
MESSAGE_ ๐INTERVAL - How long a node must wait to send another inv
- MAX_
BLOCKS_ ๐PER_ INV - How many block announcements per inv a peer can send
- MAX_
MSGS_ ๐PER_ SEC - How many messages/sec a peer is allowed to send.
- PING_
TIMEOUT ๐ - If we send a ping, and our peer takes more than PING_TIMEOUT to reply, disconnect.
- SEND_
PING_ ๐TIMEOUT - If the last message weโve got was more than 60, send out a ping
- UTREEXO_
PROOF_ ๐CMD_ STRING - The command string for the โutreexo proofโ message
Functionsยง
Type Aliasesยง
- Result ๐