|
|
|
@ -1834,9 +1834,13 @@ bool AppInitMain(NodeContext& node)
|
|
|
|
|
if (!asmap_path.is_absolute()) {
|
|
|
|
|
asmap_path = GetDataDir() / asmap_path;
|
|
|
|
|
}
|
|
|
|
|
if (!fs::exists(asmap_path)) {
|
|
|
|
|
InitError(strprintf(_("Could not find asmap file %s").translated, asmap_path));
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
std::vector<bool> asmap = CAddrMan::DecodeAsmap(asmap_path);
|
|
|
|
|
if (asmap.size() == 0) {
|
|
|
|
|
InitError(strprintf(_("Could not find or parse specified asmap: '%s'").translated, asmap_path));
|
|
|
|
|
InitError(strprintf(_("Could not parse asmap file '%s'").translated, asmap_path));
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
const uint256 asmap_version = SerializeHash(asmap);
|
|
|
|
|