Skip to content

Commit

Permalink
eth: pull in a lost merge change
Browse files Browse the repository at this point in the history
  • Loading branch information
karalabe committed Apr 20, 2015
1 parent 2e5dfc8 commit c161d78
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions eth/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,16 @@ 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.whisper = whisper.New()
eth.shhVersionId = int(eth.whisper.Version())
eth.miner = miner.New(eth, eth.pow, config.MinerThreads)
eth.protocolManager = NewProtocolManager(config.ProtocolVersion, config.NetworkId, eth.txPool, eth.chainManager, eth.downloader)
if config.Shh {
eth.whisper = whisper.New()
eth.shhVersionId = int(eth.whisper.Version())
}
hasBlock := eth.chainManager.HasBlock
insertChain := eth.chainManager.InsertChain
td := eth.chainManager.Td()
eth.blockPool = blockpool.New(hasBlock, insertChain, eth.pow.Verify, eth.EventMux(), td)

netprv, err := config.nodeKey()
if err != nil {
Expand Down

0 comments on commit c161d78

Please sign in to comment.