Litecoin: getworkex: CreateNewBlock() scriptPubKey argument instead of key

This commit is contained in:
Warren Togami 2013-11-01 21:29:36 -10:00
parent 4e111e0a8f
commit cdd76fa878

View File

@ -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);