Documentation ¶
Index ¶
- Constants
- type State
- func (s *State) Advertise()
- func (s *State) GetMsgBlockTemplate(prev *util.Block, addr util.Address) (mbt *templates.Message, e error)
- func (s *State) GetNewAddressFromMiningAddrs() (addr util.Address, e error)
- func (s *State) GetNewAddressFromWallet() (addr util.Address, e error)
- func (s *State) Run()
- func (s *State) Shutdown()
- func (s *State) Start()
- func (s *State) Stop()
Constants ¶
View Source
const ( MaxDatagramSize = 8192 UDP4MulticastAddress = "224.0.0.1:11049" BufferSize = 4096 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type State ¶ added in v1.9.16
type State struct {
// contains filtered or unexported fields
}
State stores the state of the controller
func New ¶ added in v1.9.16
func New( cfg *pod.Config, stateCfg *state.Config, node *chainrpc.Node, rpcServer *chainrpc.Server, otherNodeCount *atomic.Int32, mempoolUpdateChan qu.C, uuid uint64, killall qu.C, ) (s *State)
New creates a new controller
func (*State) GetMsgBlockTemplate ¶ added in v1.9.16
func (s *State) GetMsgBlockTemplate(prev *util.Block, addr util.Address) (mbt *templates.Message, e error)
GetMsgBlockTemplate gets a Message building on given block paying to a given address
func (*State) GetNewAddressFromMiningAddrs ¶ added in v1.9.16
GetNewAddressFromMiningAddrs tries to get an address from the mining addresses list in the configuration file
func (*State) GetNewAddressFromWallet ¶ added in v1.9.16
GetNewAddressFromWallet gets a new address from the wallet if it is connected, or returns an error
Directories ¶
Path | Synopsis |
---|---|
Package hashrate is a message type for Simplebuffers generated by miners to broadcast an IP address, a count and version number and current height of mining work just completed.
|
Package hashrate is a message type for Simplebuffers generated by miners to broadcast an IP address, a count and version number and current height of mining work just completed. |
Click to show internal directories.
Click to hide internal directories.