bitcoin/bitcoin — pull request #2716 by laanwj (2013-05-30 13:56:49+00:00)
Title: Move pMiningKey init out of StartRPCThreads

This commit decouples the pMiningKey initialization and shutdown from the RPC threads.

`getwork` and `getblocktemplate` rely on pMiningKey, and can also be ran from the debug window in the UI even when the RPC server is not running.

Solves issue #2706.