diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/rpcmining.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rpcmining.cpp b/src/rpcmining.cpp index 8b562680ad..c7f516caa7 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"); |