Documentation
¶
Index ¶
- Constants
- func Check(err error) bool
- func Debug(a ...interface{})
- func Debugc(fn func() string)
- func Debugf(format string, a ...interface{})
- func Debugs(a interface{})
- func Error(a ...interface{})
- func Errorc(fn func() string)
- func Errorf(format string, a ...interface{})
- func Errors(a interface{})
- func Fatal(a ...interface{})
- func Fatalc(fn func() string)
- func Fatalf(format string, a ...interface{})
- func Fatals(a interface{})
- func Info(a ...interface{})
- func Infoc(fn func() string)
- func Infof(format string, a ...interface{})
- func Infos(a interface{})
- func Trace(a ...interface{})
- func Tracec(fn func() string)
- func Tracef(format string, a ...interface{})
- func Traces(a interface{})
- func Warn(a ...interface{})
- func Warnc(fn func() string)
- func Warnf(format string, a ...interface{})
- func Warns(a interface{})
- type State
- func (s *State) GetMsgBlockTemplate(prev *util.Block, addr util.Address) (mbt *templates.Message, err error)
- func (s *State) GetNewAddressFromMiningAddrs() (addr util.Address, err error)
- func (s *State) GetNewAddressFromWallet() (addr util.Address, err 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 ¶
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, 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, err 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.