Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
Config *infraconfig.Config
NetAdapter *netadapter.NetAdapter
Domain domain.Domain
ProtocolManager *protocol.Manager
ConnectionManager *commanager.ConnectionManager
AddressManager *addressmanager.AddressManager
LastRPCBlock *external.DomainBlock
ShutDownChan chan<- struct{}
}
Context represents the RPC context
func NewContext ¶
func NewContext(cfg *infraconfig.Config, domain domain.Domain, netAdapter *netadapter.NetAdapter, protocolManager *protocol.Manager, connectionManager *commanager.ConnectionManager, addressManager *addressmanager.AddressManager, shutDownChan chan<- struct{}) *Context
NewContext creates a new RPC context
type NotificationListener ¶
type NotificationListener struct {
// contains filtered or unexported fields
}
NotificationListener represents a registered RPC notification listener
type NotificationManager ¶
NotificationManager manages notifications for the RPC
func (*NotificationManager) NotifyNewBlockTemplate ¶
func (nm *NotificationManager) NotifyNewBlockTemplate( notification *appmessage.NewBlockTemplateNotificationMessage) error
NotifyNewBlockTemplate notifies the notification manager that a new block template is available for miners
Click to show internal directories.
Click to hide internal directories.