MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / NewCPUMiner

Function NewCPUMiner

pow/cpuminer/miner.go:54–56  ·  view source on GitHub ↗

NewCPUMiner init A new CPU miner.

(quit chan struct{})

Source from the content-addressed store, hash-verified

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

Callers 5

createLocalNodesFunction · 0.92
TestCPUMiner_HashBlockFunction · 0.85

Calls

no outgoing calls

Tested by 5

createLocalNodesFunction · 0.74
TestCPUMiner_HashBlockFunction · 0.68