Documentation ¶
Index ¶
Constants ¶
View Source
const (
BufferSize = 4096
)
Variables ¶
View Source
var F, E, W, I, D, T log.LevelPrinter = log.GetLogPrinterSet(subsystem)
Functions ¶
This section is empty.
Types ¶
type State ¶
State stores the state of the controller
func New ¶
func New( syncing *atomic.Bool, cfg *config.Config, stateCfg *active.Config, node *chainrpc.Node, connMgr chainrpc.ServerConnManager, mempoolUpdateChan qu.C, uuid uint64, killall qu.C, start, stop qu.C, ) (s *State, e error)
New creates a new controller
func (*State) GetMsgBlockTemplate ¶
func (s *State) GetMsgBlockTemplate( prev *block.Block, addr btcaddr.Address, ) (mbt *templates.Message, e error)
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
Click to show internal directories.
Click to hide internal directories.