MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / DeserializeFileDB

Function DeserializeFileDB

src/addrdb.cpp:125–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123
124template <typename Data>
125void DeserializeFileDB(const fs::path& path, Data&& data)
126{
127 FILE* file = fsbridge::fopen(path, "rb");
128 AutoFile filein{file};
129 if (filein.IsNull()) {
130 throw DbNotFoundError{};
131 }
132 DeserializeDB(filein, data);
133}
134} // namespace
135
136CBanDB::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