Branch: refs/heads/master
Home: https://github.com/btcsuite/btcd
Commit: 2f6aeacfab95db5c6afee054f8a118aee5821c97
https://github.com/btcsuite/btcd/commit/2f6aeacfab95db5c6afee054f8a118aee5821c97
Author: Dave Collins <[email protected]>
Date: 2015-12-08 (Tue, 08 Dec 2015)
Changed paths:
M server.go
Log Message:
-----------
server: Correct mempool/CPU miner initialize order.
The CPU miner relies on the mempool, so the mempool has to be created
before calling the function to create the CPU miner. When PR #568
introduced the mempool config struct, it moved the mempool creation
after the miner creation, which leads to the CPU miner crashing due to
trying to access a nil mempool.
This move the CPU miner creation after the mempool creation
appropriately.