|
|
@ -53,6 +53,8 @@ type Config struct { |
|
|
|
Shh bool |
|
|
|
Shh bool |
|
|
|
Dial bool |
|
|
|
Dial bool |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MinerThreads int |
|
|
|
|
|
|
|
|
|
|
|
KeyManager *crypto.KeyManager |
|
|
|
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.blockProcessor = core.NewBlockProcessor(db, eth.txPool, eth.chainManager, eth.EventMux()) |
|
|
|
eth.chainManager.SetProcessor(eth.blockProcessor) |
|
|
|
eth.chainManager.SetProcessor(eth.blockProcessor) |
|
|
|
eth.whisper = whisper.New() |
|
|
|
eth.whisper = whisper.New() |
|
|
|
eth.miner = miner.New(keyManager.Address(), eth) |
|
|
|
eth.miner = miner.New(keyManager.Address(), eth, config.MinerThreads) |
|
|
|
|
|
|
|
|
|
|
|
hasBlock := eth.chainManager.HasBlock |
|
|
|
hasBlock := eth.chainManager.HasBlock |
|
|
|
insertChain := eth.chainManager.InsertChain |
|
|
|
insertChain := eth.chainManager.InsertChain |
|
|
|