File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -1200,7 +1200,7 @@ CPubKey CWallet::GenerateNewHDMasterKey()
1200
1200
1201
1201
// write the key&metadata to the database
1202
1202
if (!AddKeyPubKey (key, pubkey))
1203
- throw std::runtime_error (" CWallet::GenerateNewKey(): AddKey failed" );
1203
+ throw std::runtime_error (std::string (__func__)+ " : AddKeyPubKey failed" );
1204
1204
}
1205
1205
1206
1206
return pubkey;
@@ -3323,7 +3323,6 @@ bool CWallet::InitLoadWallet()
3323
3323
// Create new keyUser and set as default key
3324
3324
if (GetBoolArg (" -usehd" , DEFAULT_USE_HD_WALLET) && walletInstance->hdChain .masterKeyID .IsNull ()) {
3325
3325
// generate a new master key
3326
- CKey key;
3327
3326
CPubKey masterPubKey = walletInstance->GenerateNewHDMasterKey ();
3328
3327
if (!walletInstance->SetHDMasterKey (masterPubKey))
3329
3328
throw std::runtime_error (" CWallet::GenerateNewKey(): Storing master key failed" );
You can’t perform that action at this time.
0 commit comments