- type State
const ( MaxDatagramSize = 8192 * 3 UDP4MulticastAddress = "220.127.116.11:11049" BufferSize = 4096 )
This section is empty.
State stores the state of the controller
New creates a new controller
func (*State) GetMsgBlockTemplate ¶
GetMsgBlockTemplate gets a Message building on given block paying to a given address
func (*State) GetNewAddressFromWallet ¶
GetNewAddressFromWallet gets a new address from the wallet if it is connected, or returns an error
func (s *State) Run()
Run must be started as a goroutine, central routing for the business of the controller
For increased simplicity, every type of work runs in one thread, only signalling from background goroutines to trigger state changes.
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.|