From 0de3e8e22285c10e61321634d4c7ae43b3b5c8c5 Mon Sep 17 00:00:00 2001 From: alex Date: Mon, 18 Feb 2013 04:37:12 +0400 Subject: [PATCH] getmemorypool patch by Sunny King --- src/bitcoinrpc.cpp | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/src/bitcoinrpc.cpp b/src/bitcoinrpc.cpp index e2f7d27..0a53c7f 100644 --- 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); } } -- 1.7.1