Versions in this module Expand all Collapse all v0 v0.9.1 Apr 30, 2019 v0.9.0 Apr 29, 2019 Changes in this version + var Log = cl.NewSubSystem("chain/mining/dispatch", ll.DEFAULT) + func UseLogger(logger *cl.SubSystem) + type Address struct + Address string + type Config struct + BlockTemplateGenerator *mining.BlkTmplGenerator + Blockchain *blockchain.BlockChain + ChainParams *chaincfg.Params + ConnectedCount func() int32 + IsCurrent func() bool + MinerKey []byte + MinerListener string + MiningAddrs []util.Address + ProcessBlock func(*util.Block, blockchain.BehaviorFlags) (bool, error) + type Controller struct + func New(cfg *Config) *Controller + func (c *Controller) IsMining() bool + func (c *Controller) Start() + func (c *Controller) Stop() + type Kopach []Address + func (k *Kopach) Subscribe(args *Address, reply *Address) (err error) + func (k *Kopach) Unsubscribe(args *Address, reply *Address) (err error) + type Work struct + Difficulties [9]uint32 + MerkleRoot *chainhash.Hash + PrevBlockHash *chainhash.Hash + TimeStamp uint32