Expand description
Main file for this blockchain. A node is the central task that runs and handles important events, such as new blocks, peer connection/disconnection, new addresses, etc. A node should not care about peer-specific messages, peers’ll handle things like pings.
Modules§
- chain_
selector_ ctx - A module that connects with multiple peers and finds the best chain.
- running_
ctx - After a node catches-up with the network, we can start listening for new blocks, handing any request our user might make and keep our peers alive. This mode requires way less bandwidth and CPU to run, being bound by the number of blocks found in a given period.
- sync_
ctx - A node that downloads and validates the blockchain.
Structs§
- Added
Peer Info - A simple struct of added peers, used to track the ones we added manually by
addnode <ip:port> addcommand. - Local
Peer View - Local information kept about each peer
- Node
Common - Utreexo
Node - The main node that operates while florestad is up.
Enums§
- Connection
Kind - The kind of connection we see this peer as.
- Node
Notification - Node
Request - Sent from node to peers, usually to request something
- Peer
Status
Constants§
- MAX_
ADDR V2_ ADDRESSES - As per BIP 155, limit the number of addresses to 1,000