diff options
| author | Jonas Schnelli <[email protected]> | 2016-07-09 12:56:56 +0200 |
|---|---|---|
| committer | Jonas Schnelli <[email protected]> | 2016-07-09 12:58:03 +0200 |
| commit | b993671921c0c301f18c542e77d695fdc50ffd91 (patch) | |
| tree | c17eb746e01810c409eeb1c474881120939968bb /src/wallet/wallet.cpp | |
| parent | Merge #8314: Fix pkg-config issues for 0.13 (diff) | |
| download | discoin-b993671921c0c301f18c542e77d695fdc50ffd91.tar.xz discoin-b993671921c0c301f18c542e77d695fdc50ffd91.zip | |
[Wallet] keep HD seed during salvagewallet
Diffstat (limited to 'src/wallet/wallet.cpp')
| -rw-r--r-- | src/wallet/wallet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index a0095ebd9..7cb294bec 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -3291,7 +3291,7 @@ bool CWallet::InitLoadWallet() if (fFirstRun) { // Create new keyUser and set as default key - if (GetBoolArg("-usehd", DEFAULT_USE_HD_WALLET)) { + if (GetBoolArg("-usehd", DEFAULT_USE_HD_WALLET) && walletInstance->hdChain.masterKeyID.IsNull()) { // generate a new master key CKey key; key.MakeNewKey(true); |