Module peer

Source

Modulesยง

peer_utils ๐Ÿ”’

Structsยง

MessageActor
Peer
Version

Enumsยง

PeerError
Enum for diverse variants of errors when dealing with a Peer
PeerMessages
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.
ReaderMessage
State ๐Ÿ”’

Constantsยง

ADDRV2_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ยง

create_actors

Type Aliasesยง

Result ๐Ÿ”’