• Wladimir J. van der Laan's avatar
    Move pMiningKey init out of StartRPCThreads · 9ed3ae50
    Wladimir J. van der Laan authored
    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.
    9ed3ae50
rpcmining.cpp 13.7 KB