diff --git a/src/rpcmining.cpp b/src/rpcmining.cpp index 14d2bebb6..eeea88396 100644 --- a/src/rpcmining.cpp +++ b/src/rpcmining.cpp @@ -209,7 +209,7 @@ Value getworkex(const Array& params, bool fHelp) nStart = GetTime(); // Create new block - pblocktemplate = CreateNewBlock(reservekey); + pblocktemplate = CreateNewBlockWithKey(*pMiningKey); if (!pblocktemplate) throw JSONRPCError(RPC_OUT_OF_MEMORY, "Out of memory"); vNewBlockTemplate.push_back(pblocktemplate);