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

Function DumpAnchors

src/addrdb.cpp:216–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214}
215
216void DumpAnchors(const fs::path& anchors_db_path, const std::vector<CAddress>& anchors)
217{
218 LOG_TIME_SECONDS(strprintf("Flush %d outbound block-relay-only peer addresses to anchors.dat", anchors.size()));
219 SerializeFileDB("anchors", anchors_db_path, anchors, CLIENT_VERSION | ADDRV2_FORMAT);
220}
221
222std::vector<CAddress> ReadAnchors(const fs::path& anchors_db_path)
223{

Callers 1

StopNodesMethod · 0.85

Calls 2

SerializeFileDBFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected