From 103849419a9c014a69c76b6f96e48b66cbc838ca Mon Sep 17 00:00:00 2001 From: s_nakamoto Date: Sat, 9 Oct 2010 19:33:35 +0000 Subject: key pool for safer wallet backup git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@163 1a98c847-1fd6-4fd8-948a-caf3550aa51b --- rpc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rpc.cpp') diff --git a/rpc.cpp b/rpc.cpp index 9a4757390f..19ec950040 100644 --- a/rpc.cpp +++ b/rpc.cpp @@ -275,7 +275,7 @@ Value getnewaddress(const Array& params, bool fHelp) strLabel = params[0].get_str(); // Generate a new key that is added to wallet - string strAddress = PubKeyToAddress(GenerateNewKey()); + string strAddress = PubKeyToAddress(CWalletDB().GetKeyFromKeyPool()); SetAddressBookName(strAddress, strLabel); return strAddress; -- cgit v1.2.3