ReadAnchors

Read the anchor IP address database (anchors.dat)

Synopsis

Declared in <addrdb.h>

std::vector<CAddress>
ReadAnchors(fs::path const& anchors_db_path);

Description

Deleting anchors.dat is intentional as it avoids renewed peering to anchors after an unclean shutdown and thus potential exploitation of the anchor peer policy.

Return Value

The anchor addresses loaded from the file.

Parameters

NameDescription
anchors_db_pathPath to the anchors.dat file to read.