Bitcoin Core  21.99.0
P2P Digital Currency
salvage.h File Reference
#include <fs.h>
#include <streams.h>
Include dependency graph for salvage.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


bool RecoverDatabaseFile (const fs::path &file_path, bilingual_str &error, std::vector< bilingual_str > &warnings)

Function Documentation

◆ RecoverDatabaseFile()

bool RecoverDatabaseFile ( const fs::path &  file_path,
bilingual_str error,
std::vector< bilingual_str > &  warnings 

Salvage data from a file. The DB_AGGRESSIVE flag is being used (see berkeley DB->verify() method documentation). key/value pairs are appended to salvagedData which are then written out to a new wallet file. NOTE: reads the entire database into memory, so cannot be used for huge databases.

Definition at line 25 of file salvage.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: