Documentation ¶
Index ¶
- type Miner
- func (m *Miner) CreateBlock(minerAddress []byte, parentBlock *block.Block, miningNonce uint32, ...) (*block.Block, error)
- func (m *Miner) GetBlockToMine(minerQAddress string, lastBlock *block.Block, lastBlockDifficulty []byte, ...) (string, uint64, error)
- func (m *Miner) HandleEvent(event goqryptonight.MinerEvent) byte
- func (m *Miner) PrepareNextBlockTemplate(minerAddress []byte, parentBlock *block.Block, txPool *pool.TransactionPool, ...) error
- func (m *Miner) StartMining()
- func (m *Miner) SubmitMinedBlock(blob []byte) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Miner ¶
type Miner struct { goqryptonight.Qryptominer StopMiningChan chan bool // contains filtered or unexported fields }
func CreateMiner ¶
func CreateMiner(chain *chain.Chain, registerAndBroadcastChan chan *messages.RegisterMessage) *Miner
func (*Miner) CreateBlock ¶
func (*Miner) GetBlockToMine ¶
func (*Miner) HandleEvent ¶
func (m *Miner) HandleEvent(event goqryptonight.MinerEvent) byte
func (*Miner) PrepareNextBlockTemplate ¶
func (*Miner) StartMining ¶
func (m *Miner) StartMining()
func (*Miner) SubmitMinedBlock ¶
Click to show internal directories.
Click to hide internal directories.