From 972060ce0e9746c979ce0ddeeb997121414c1d58 Mon Sep 17 00:00:00 2001 From: Gavin Andresen Date: Thu, 16 Feb 2012 15:00:16 -0500 Subject: bitcoind changes to stop storing settings in wallet.dat. --- src/db.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/db.h') diff --git a/src/db.h b/src/db.h index 2611faa461..74cb5d8d5f 100644 --- a/src/db.h +++ b/src/db.h @@ -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 bool ReadSetting(const std::string& strKey, T& value) { return Read(std::make_pair(std::string("setting"), strKey), value); } - template 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) { -- cgit v1.2.3