Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NotifyMgr ¶
type NotifyMgr struct { Server *peerserver.PeerServer RpcServer *rpc.RpcServer }
NotifyMgr manage message announce & relay & notification between mempool, websocket, gbt long pull and rpc server.
func (*NotifyMgr) AnnounceNewTransactions ¶
AnnounceNewTransactions generates and relays inventory vectors and notifies both websocket and getblocktemplate long poll clients of the passed transactions. This function should be called whenever new transactions are added to the mempool.
func (*NotifyMgr) BroadcastMessage ¶
func (*NotifyMgr) RelayInventory ¶
RelayInventory relays the passed inventory vector to all connected peers that are not already known to have it.
Click to show internal directories.
Click to hide internal directories.