Suggest comment:
// InitRPCMining is needed here so getwork/getblocktemplate in the GUI debug console works properly.