diff options
author | Andrew Chow <achow101-github@achow101.com> | 2022-04-13 16:38:44 -0400 |
---|---|---|
committer | Andrew Chow <github@achow101.com> | 2023-06-19 16:46:39 -0400 |
commit | 9e077d9b422ac3c371fe0f63da40e5092171a25e (patch) | |
tree | f97d48477d1cb270a7e0c565edd626084b9b739b /src/wallet/walletdb.h | |
parent | ad779e9ece9829677c1735d8865f14b23459da80 (diff) | |
download | bitcoin-9e077d9b422ac3c371fe0f63da40e5092171a25e.tar.xz |
salvage: Remove use of ReadKeyValue in salvage
To prepare to remove ReadKeyValue, change salvage to not use it
Diffstat (limited to 'src/wallet/walletdb.h')
-rw-r--r-- | src/wallet/walletdb.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/wallet/walletdb.h b/src/wallet/walletdb.h index 7d33baad25..9be1dcec48 100644 --- a/src/wallet/walletdb.h +++ b/src/wallet/walletdb.h @@ -276,8 +276,6 @@ public: DBErrors LoadWallet(CWallet* pwallet); DBErrors FindWalletTxHashes(std::vector<uint256>& tx_hashes); DBErrors ZapSelectTx(std::vector<uint256>& vHashIn, std::vector<uint256>& vHashOut); - /* Function to determine if a certain KV/key-type is a key (cryptographical key) type */ - static bool IsKeyType(const std::string& strType); //! write the hdchain model (external chain child index counter) bool WriteHDChain(const CHDChain& chain); @@ -300,12 +298,6 @@ private: //! Compacts BDB state so that wallet.dat is self-contained (if there are changes) void MaybeCompactWalletDB(WalletContext& context); -//! Callback for filtering key types to deserialize in ReadKeyValue -using KeyFilterFn = std::function<bool(const std::string&)>; - -//! Unserialize a given Key-Value pair and load it into the wallet -bool ReadKeyValue(CWallet* pwallet, DataStream& ssKey, CDataStream& ssValue, std::string& strType, std::string& strErr, const KeyFilterFn& filter_fn = nullptr); - bool LoadKey(CWallet* pwallet, DataStream& ssKey, DataStream& ssValue, std::string& strErr); bool LoadCryptedKey(CWallet* pwallet, DataStream& ssKey, DataStream& ssValue, std::string& strErr); bool LoadEncryptionKey(CWallet* pwallet, DataStream& ssKey, DataStream& ssValue, std::string& strErr); |