mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
CreateNewBlock() now takes scriptPubKey argument,
rather than a key. CreateNewBlockWithKey() helper is added to restore existing functionality, making this an equivalent-transformation change.
This commit is contained in:
parent
b60012f2b6
commit
7e17018995
4 changed files with 27 additions and 20 deletions
|
|
@ -149,7 +149,7 @@ Value getwork(const Array& params, bool fHelp)
|
|||
nStart = GetTime();
|
||||
|
||||
// Create new block
|
||||
pblocktemplate = CreateNewBlock(*pMiningKey);
|
||||
pblocktemplate = CreateNewBlockWithKey(*pMiningKey);
|
||||
if (!pblocktemplate)
|
||||
throw JSONRPCError(RPC_OUT_OF_MEMORY, "Out of memory");
|
||||
vNewBlockTemplate.push_back(pblocktemplate);
|
||||
|
|
@ -280,7 +280,7 @@ Value getblocktemplate(const Array& params, bool fHelp)
|
|||
delete pblocktemplate;
|
||||
pblocktemplate = NULL;
|
||||
}
|
||||
pblocktemplate = CreateNewBlock(*pMiningKey);
|
||||
pblocktemplate = CreateNewBlockWithKey(*pMiningKey);
|
||||
if (!pblocktemplate)
|
||||
throw JSONRPCError(RPC_OUT_OF_MEMORY, "Out of memory");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue