View definition

(*CPUMiner).GenerateNBlocks

Defined in github.com/btcsuite/btcd/cpuminer.go

Description

GenerateNBlocks generates the requested number of blocks. It is self contained in that it creates block templates and attempts to solve them while detecting when it is performing stale work and reacting accordingly by generating a new block template. When a block is solved, it is submitted. The function returns a list of the hashes of generated blocks.

GenerateNBlocks is referenced in 1 repository

github.com/btcsuite/btcd