P2p Client
Constructors
Types
Properties
When we last heard from this peer
When we last heard from this peer
keep track of how often we got a message drop. If its too many times, drop the node
installable callback for when some blockchain or connection state changes
When the socket opened and the initial message exchange began (0 until then)
Functions
Record that this filter generation has had time to be installed, so merkle requests may rely on it. Never moves backwards.
If you issue a getHeaders() but then give up waiting, call this function
Get block headers. This function only allows one outstanding getheaders per node due to protocol issues. Call @cleanupExclusiveHeaders() if you stop waiting (if cb is never called). Its Ok to unnecessarily call cleanupExclusiveHeaders
Provide a request/response latency datapoint
Provide feedback that this node is not responding to our requests
Provide feedback that this node is not responding to our requests
Tell the peer we want headers not INVs for new blocks
reload CAPD info from this client and then execute the passed function
Stop monitoring messages
Send this filter generation unless it (or a newer one) was already sent, without waiting for the node to install it. Checking and recording bloomSent under the lock keeps an older generation from being sent after a newer one.
Send a GETADDR request message
Send a request for pending transactions (MEMPOOL request message)
returns true if this node is tracking token information and will reply to token info getdata requests