MCPcopy Create free account
hub / github.com/ElementsProject/elements / DeserializeFileDB

Function DeserializeFileDB

src/addrdb.cpp:112–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110
111template <typename Data>
112void DeserializeFileDB(const fs::path& path, Data& data, int version)
113{
114 // open input file, and associate with CAutoFile
115 FILE* file = fsbridge::fopen(path, "rb");
116 CAutoFile filein(file, SER_DISK, version);
117 if (filein.IsNull()) {
118 throw DbNotFoundError{};
119 }
120 DeserializeDB(filein, data);
121}
122} // namespace
123
124CBanDB::CBanDB(fs::path ban_list_path)

Callers 2

LoadAddrmanFunction · 0.85
ReadAnchorsFunction · 0.85

Calls 3

fopenFunction · 0.85
DeserializeDBFunction · 0.85
IsNullMethod · 0.45

Tested by

no test coverage detected