diff options
| author | Jonas Schnelli <[email protected]> | 2016-08-01 15:18:15 +0200 |
|---|---|---|
| committer | Jonas Schnelli <[email protected]> | 2016-08-19 16:23:37 +0200 |
| commit | 7e5d94df1fb09ed7ee7ed50032f876972ef39489 (patch) | |
| tree | 95b287c2d39892976669f7d31fbca1cfbfa26354 /src/wallet/wallet.cpp | |
| parent | Merge #8419: Enable size accounting in mining unit tests (diff) | |
| download | discoin-7e5d94df1fb09ed7ee7ed50032f876972ef39489.tar.xz discoin-7e5d94df1fb09ed7ee7ed50032f876972ef39489.zip | |
[Wallet] Trivial cleanup of HD wallet changes
Diffstat (limited to 'src/wallet/wallet.cpp')
| -rw-r--r-- | src/wallet/wallet.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index ee9254050..e2dea5212 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -1200,7 +1200,7 @@ CPubKey CWallet::GenerateNewHDMasterKey() // write the key&metadata to the database if (!AddKeyPubKey(key, pubkey)) - throw std::runtime_error("CWallet::GenerateNewKey(): AddKey failed"); + throw std::runtime_error(std::string(__func__)+": AddKeyPubKey failed"); } return pubkey; @@ -3323,7 +3323,6 @@ bool CWallet::InitLoadWallet() // Create new keyUser and set as default key if (GetBoolArg("-usehd", DEFAULT_USE_HD_WALLET) && walletInstance->hdChain.masterKeyID.IsNull()) { // generate a new master key - CKey key; CPubKey masterPubKey = walletInstance->GenerateNewHDMasterKey(); if (!walletInstance->SetHDMasterKey(masterPubKey)) throw std::runtime_error("CWallet::GenerateNewKey(): Storing master key failed"); |