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

Function DumpAnchors

src/addrdb.cpp:228–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226}
227
228void DumpAnchors(const fs::path& anchors_db_path, const std::vector<CAddress>& anchors)
229{
230 LOG_TIME_SECONDS(strprintf("Flush %d outbound block-relay-only peer addresses to anchors.dat", anchors.size()));
231 SerializeFileDB("anchors", anchors_db_path, CAddress::V2_DISK(anchors));
232}
233
234std::vector<CAddress> ReadAnchors(const fs::path& anchors_db_path)
235{

Callers 1

StopNodesMethod · 0.85

Calls 2

SerializeFileDBFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected