Determine wallet file type based on file magic

This commit is contained in:
Andrew Chow
2020-05-26 20:54:05 -04:00
parent 6045f77003
commit ac38a87225
7 changed files with 83 additions and 30 deletions

View File

@@ -116,5 +116,6 @@ bool ExistsSQLiteDatabase(const fs::path& path);
std::unique_ptr<SQLiteDatabase> MakeSQLiteDatabase(const fs::path& path, const DatabaseOptions& options, DatabaseStatus& status, bilingual_str& error);
std::string SQLiteDatabaseVersion();
bool IsSQLiteFile(const fs::path& path);
#endif // BITCOIN_WALLET_SQLITE_H