git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(from parent 1:
3120f0d
)
getmemorypool patch by Sunny King
author
alex
<alex@alex-VirtualBox.(none)>
Mon, 18 Feb 2013 00:37:12 +0000 (
04:37
+0400)
committer
alex
<alex@alex-VirtualBox.(none)>
Mon, 18 Feb 2013 00:37:12 +0000 (
04:37
+0400)
src/bitcoinrpc.cpp
patch
|
blob
|
history
diff --git
a/src/bitcoinrpc.cpp
b/src/bitcoinrpc.cpp
index
e2f7d27
..
0a53c7f
100644
(file)
--- a/
src/bitcoinrpc.cpp
+++ b/
src/bitcoinrpc.cpp
@@
-1992,7
+1992,12
@@
Value getmemorypool(const Array& params, bool fHelp)
CBlock pblock;
ssBlock >> pblock;
- return ProcessBlock(NULL, &pblock);
+ static CReserveKey reservekey(pwalletMain);
+
+ if(!pblock.SignBlock(*pwalletMain))
+ throw JSONRPCError(-100, "Unable to sign block, wallet locked?");
+
+ return CheckWork(&pblock, *pwalletMain, reservekey);
}
}