wallet, interfaces: Include database format in listWalletDir

This commit is contained in:
Ava Chow committed 2024-08-13 11:25:38 -04:00
1 parent 1873e4116f
commit 28fc562f26
8 files changed
+33 -25

No files matched your search

+4 -4
View File
@@ -656,11 +656,11 @@ public:
{
return fs::PathToString(GetWalletDir());
}
std::vector<std::string> listWalletDir() override
std::vector<std::pair<std::string, std::string>> listWalletDir() override
{
std::vector<std::string> paths;
for (auto& path : ListDatabases(GetWalletDir())) {
paths.push_back(fs::PathToString(path));
std::vector<std::pair<std::string, std::string>> paths;
for (auto& [path, format] : ListDatabases(GetWalletDir())) {
paths.emplace_back(fs::PathToString(path), format);
}
return paths;
}