Implement command line argument to set the amount of agents created by the miner
Defaults to the amount of cores available on the CPU
This commit is contained in:
@ -225,7 +225,7 @@ func StartMining(ethereum *eth.Ethereum) bool {
|
||||
go func() {
|
||||
clilogger.Infoln("Start mining")
|
||||
if gminer == nil {
|
||||
gminer = miner.New(addr, ethereum)
|
||||
gminer = miner.New(addr, ethereum, 4)
|
||||
}
|
||||
gminer.Start()
|
||||
}()
|
||||
|
Reference in New Issue
Block a user