aboutsummaryrefslogtreecommitdiff
path: root/rpc.cpp
diff options
context:
space:
mode:
authorGavin Andresen <[email protected]>2010-10-09 17:59:38 -0400
committerGavin Andresen <[email protected]>2010-10-09 17:59:38 -0400
commit687c5ef7949a7f0c388ad633b40d243ed6786c4e (patch)
tree2316e4497185d0ad9dc6065cf58faf9d7b551363 /rpc.cpp
parentMerge remote branch 'remotes/svn/trunk' into svn (diff)
parentkey pool for safer wallet backup (diff)
downloaddiscoin-687c5ef7949a7f0c388ad633b40d243ed6786c4e.tar.xz
discoin-687c5ef7949a7f0c388ad633b40d243ed6786c4e.zip
Merge remote branch 'refs/remotes/svn/trunk' into svn
Diffstat (limited to 'rpc.cpp')
-rw-r--r--rpc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpc.cpp b/rpc.cpp
index 9a4757390..19ec95004 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;