eth: honour config.Shh

This commit is contained in:
Felix Lange 2015-04-17 16:29:07 +02:00
parent d5083033f1
commit 21c4c155ee
1 changed files with 5 additions and 2 deletions

View File

@ -215,9 +215,12 @@ func New(config *Config) (*Ethereum, error) {
eth.txPool = core.NewTxPool(eth.EventMux(), eth.chainManager.State)
eth.blockProcessor = core.NewBlockProcessor(stateDb, extraDb, eth.pow, eth.txPool, eth.chainManager, eth.EventMux())
eth.chainManager.SetProcessor(eth.blockProcessor)
eth.miner = miner.New(eth, eth.pow, config.MinerThreads)
if config.Shh {
eth.whisper = whisper.New()
eth.shhVersionId = int(eth.whisper.Version())
eth.miner = miner.New(eth, eth.pow, config.MinerThreads)
}
hasBlock := eth.chainManager.HasBlock
insertChain := eth.chainManager.InsertChain