diff --git a/src/rpcmining.cpp b/src/rpcmining.cpp index 8b562680a..c7f516caa 100644 --- a/src/rpcmining.cpp +++ b/src/rpcmining.cpp @@ -280,7 +280,8 @@ Value getblocktemplate(const Array& params, bool fHelp) delete pblocktemplate; pblocktemplate = NULL; } - pblocktemplate = CreateNewBlockWithKey(*pMiningKey); + CScript scriptDummy = CScript() << OP_TRUE; + pblocktemplate = CreateNewBlock(scriptDummy); if (!pblocktemplate) throw JSONRPCError(RPC_OUT_OF_MEMORY, "Out of memory");