diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-02-20 05:37:13 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-02-20 05:37:13 +0800 |
commit | 765740b829072f9a1bbeff356377a91defd9fdd8 (patch) | |
tree | 825825563579746c5dc5d2f9d2f6d3da3fc96e78 /eth | |
parent | 07c34751da96e3daa023b028494ef1c86cf6d1fc (diff) | |
parent | 5aff8bfb5918e53ba2590b25e6c17e1875870f6a (diff) | |
download | go-tangerine-765740b829072f9a1bbeff356377a91defd9fdd8.tar.gz go-tangerine-765740b829072f9a1bbeff356377a91defd9fdd8.tar.zst go-tangerine-765740b829072f9a1bbeff356377a91defd9fdd8.zip |
Merge pull request #345 from maran/feature/minerthreads
Implement command line argument to set the amount miner threads
Diffstat (limited to 'eth')
-rw-r--r-- | eth/backend.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/eth/backend.go b/eth/backend.go index 4c3ec0053..b57e9fd69 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -53,6 +53,8 @@ type Config struct { Shh bool Dial bool + MinerThreads int + KeyManager *crypto.KeyManager } @@ -153,7 +155,7 @@ func New(config *Config) (*Ethereum, error) { eth.blockProcessor = core.NewBlockProcessor(db, eth.txPool, eth.chainManager, eth.EventMux()) eth.chainManager.SetProcessor(eth.blockProcessor) eth.whisper = whisper.New() - eth.miner = miner.New(keyManager.Address(), eth) + eth.miner = miner.New(keyManager.Address(), eth, config.MinerThreads) hasBlock := eth.chainManager.HasBlock insertChain := eth.chainManager.InsertChain |