NewCPUMiner init A new CPU miner.
(quit chan struct{})
| 52 | |
| 53 | // NewCPUMiner init A new CPU miner. |
| 54 | func NewCPUMiner(quit chan struct{}) *CPUMiner { |
| 55 | return &CPUMiner{quit: quit} |
| 56 | } |
| 57 | |
| 58 | // HashBlock calculate the hash of MiningBlock. |
| 59 | func HashBlock(data []byte, nonce Uint256) hash.Hash { |
no outgoing calls