aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/walletdb.h
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2022-04-13 14:42:00 -0400
committerAndrew Chow <github@achow101.com>2023-06-19 11:29:14 -0400
commit7be10adff36c0dc49ae56ac571bb033cba7a565b (patch)
treee1248315b34ed19039026215f6620a92faa103aa /src/wallet/walletdb.h
parent52932c5adb29bb9ec5f0bcde9a31b74113a20651 (diff)
downloadbitcoin-7be10adff36c0dc49ae56ac571bb033cba7a565b.tar.xz
walletdb: Refactor key reading and loading to its own function
Diffstat (limited to 'src/wallet/walletdb.h')
-rw-r--r--src/wallet/walletdb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wallet/walletdb.h b/src/wallet/walletdb.h
index f84a89b23f..4228d428fa 100644
--- a/src/wallet/walletdb.h
+++ b/src/wallet/walletdb.h
@@ -305,6 +305,8 @@ 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);
} // namespace wallet
#endif // BITCOIN_WALLET_WALLETDB_H