package
0.9.5
Repository: https://github.com/itzmeanjan/harmony.git
Documentation: pkg.go.dev

# Functions

BootstrapPeers - Returns addresses of bootstrap nodes, if none are given using default ones.
ConnectToBootstraps - Attempting to connect to bootstrap nodes concurrently Waiting for all of them to complete, after that returning back how many attempts went successful among total attempts, respectively.
CreateHost - Creates a libp2p host, to be used for communicating with other `harmony` peers.
HandleStream - Attepts new stream & handles it through out its life time.
InitMemPool - Initializing mempool handle, in this module so that it can be used updating local mempool state, when new deserialisable tx chunk is received from any peer, over p2p network.
To be used for listening to event when `harmony` asks its workers to stop gracefully.
Listen - Handle incoming connection of other harmony peer for certain supported protocol(s).
LookForPeers - Asks this node to start looking for peers, does for some time & attempts to connect to them, while setting up stream for further chit-chat.
No description provided by the author
ReadFrom - Read from stream & attempt to deserialize length prefixed tx data received from peer, which will be acted upon.
Setup - Bootstraps `harmony`'s p2p networking stack.
SetUpPeerDiscovery - Setting up peer discovery mechanism, by connecting to bootstrap nodes first, then advertises self with rendezvous & attempts to discover peers with same rendezvous, which are to be eventually connected with.
ShowHost - Showing on which multi addresses given host is listening on.
WriteTo - Write to mempool changes into stream i.e.

# Structs

ConnectionManager - All connected peers to be kept track of, so that we don't attempt to reconnect to same peer again.
IsConnected - Queries can be sent to connection manager by worker go routines over channel & response to be sent back to them over `response` channel.