X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Frpcwallet.cpp;fp=src%2Frpcwallet.cpp;h=0d0946e0c0723030a2959f5704b16714d65e9f33;hb=81aaaf43084ca0b9473e7a85e6833301cba09c30;hp=61ee9e9b76efdbffb302bf90f0fd6ec79b200ccc;hpb=db1eaec482383385156b3e7cb6b2baa9454975f0;p=novacoin.git diff --git a/src/rpcwallet.cpp b/src/rpcwallet.cpp index 61ee9e9..0d0946e 100644 --- a/src/rpcwallet.cpp +++ b/src/rpcwallet.cpp @@ -173,7 +173,7 @@ CBitcoinAddress GetAccountAddress(string strAccount, bool bForceNew=false) if (!pwalletMain->GetKeyFromPool(account.vchPubKey, false)) throw JSONRPCError(RPC_WALLET_KEYPOOL_RAN_OUT, "Error: Keypool ran out, please call keypoolrefill first"); - pwalletMain->SetAddressBookName(CBitcoinAddress(account.vchPubKey.GetID()), strAccount); + pwalletMain->SetAddressBookName(account.vchPubKey.GetID(), strAccount); walletdb.WriteAccount(strAccount, account); }