| 214 | } |
| 215 | |
| 216 | void 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 | |
| 222 | std::vector<CAddress> ReadAnchors(const fs::path& anchors_db_path) |
| 223 | { |
no test coverage detected