diff options
author | Gavin Andresen <gavinandresen@gmail.com> | 2012-02-16 15:00:16 -0500 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2012-02-26 23:21:33 +0100 |
commit | 972060ce0e9746c979ce0ddeeb997121414c1d58 (patch) | |
tree | 9c676a8281e62513e9ee4b5f68e01a197dc6edf2 /src/db.h | |
parent | 4a10d4c6dcd04eb2496257754782150793ce53b1 (diff) |
bitcoind changes to stop storing settings in wallet.dat.
Diffstat (limited to 'src/db.h')
-rw-r--r-- | src/db.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -473,18 +473,24 @@ public: return Erase(std::make_pair(std::string("pool"), nPool)); } + // Settings are no longer stored in wallet.dat; these are + // used only for backwards compatibility: template<typename T> bool ReadSetting(const std::string& strKey, T& value) { return Read(std::make_pair(std::string("setting"), strKey), value); } - template<typename T> bool WriteSetting(const std::string& strKey, const T& value) { nWalletDBUpdated++; return Write(std::make_pair(std::string("setting"), strKey), value); } + bool EraseSetting(const std::string& strKey) + { + nWalletDBUpdated++; + return Erase(std::make_pair(std::string("setting"), strKey)); + } bool WriteMinVersion(int nVersion) { |