aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet.h
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2018-03-31 13:37:27 -0400
committerAndrew Chow <achow101-github@achow101.com>2018-05-12 13:15:21 -0400
commit5c50e93d52c14fc7bc41130cdb1568f2c11e45de (patch)
tree5c32307828e5378ed35c8fd7be1a47120b8640af /src/wallet/wallet.h
parent2bcf2b52aea07c778b439e6d6931bb4a1733304f (diff)
downloadbitcoin-5c50e93d52c14fc7bc41130cdb1568f2c11e45de.tar.xz
Allow -upgradewallet to upgradewallets to HD
Changes the maximum upgradewallet version to the latest wallet version number, 159900. Non-HD wallets will be upgraded to use HD derivation. Non HD chain split wallets will be upgraded to HD chain split. If a non-HD wallet is upgraded to HD, the keypool will be entirely regenerated. Since upgradewallet is effectively run during a first run, all of the first run initial setup stuff is combined with the upgrade to HD
Diffstat (limited to 'src/wallet/wallet.h')
-rw-r--r--src/wallet/wallet.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h
index b6cdf041a8..215145a62b 100644
--- a/src/wallet/wallet.h
+++ b/src/wallet/wallet.h
@@ -89,7 +89,7 @@ enum WalletFeature
FEATURE_NO_DEFAULT_KEY = 159900, // Wallet without a default key written
- FEATURE_LATEST = FEATURE_COMPRPUBKEY // HD is optional, use FEATURE_COMPRPUBKEY as latest version
+ FEATURE_LATEST = FEATURE_NO_DEFAULT_KEY
};
enum class OutputType {