mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-16 23:53:29 +01:00
Merge bitcoin/bitcoin#22911: [net] Minor cleanups to asmap
853c4edb70[net] Remove asmap argument from CNode::CopyStats() (John Newbery)9fd5618610[asmap] Make DecodeAsmap() a utility function (John Newbery)bfdf4ef334[asmap] Remove SanityCheckASMap() from netaddress (John Newbery)07a9eccb60[net] Remove CConnman::Options.m_asmap (John Newbery) Pull request description: These small cleanups to the asmap code are the first 4 commits from #22910. They're minor improvements that are independently useful whether or not 22910 is merged. ACKs for top commit: naumenkogs: ACK853c4edb70theStack: Concept and code-review ACK853c4edb70🗺️ fanquake: ACK853c4edb70Tree-SHA512: 64783743182592ac165df6ff8d18870b63861e9204ed722c207fca6938687aac43232a5ac4d8228cf8b92130ab0349de1b410a2467bb5a9d60dd9a7221b3b85b
This commit is contained in:
@@ -1189,7 +1189,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
|
||||
InitError(strprintf(_("Could not find asmap file %s"), asmap_path));
|
||||
return false;
|
||||
}
|
||||
asmap = CAddrMan::DecodeAsmap(asmap_path);
|
||||
asmap = DecodeAsmap(asmap_path);
|
||||
if (asmap.size() == 0) {
|
||||
InitError(strprintf(_("Could not parse asmap file %s"), asmap_path));
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user