aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2021-09-01 12:41:47 +0100
committerJohn Newbery <john@johnnewbery.com>2021-09-07 15:24:00 +0100
commit9fd5618610e91e3949536c5122cf31eb58c9aa6b (patch)
tree733d7b61305784b61a4c3b2a00b6947c8a42c935 /src/init.cpp
parentbfdf4ef334a16ef6108a658bf4f8514754128c18 (diff)
downloadbitcoin-9fd5618610e91e3949536c5122cf31eb58c9aa6b.tar.xz
[asmap] Make DecodeAsmap() a utility function
DecopeAsmap is a pure utility function and doesn't have any dependencies on addrman, so move it to util/asmap. Reviewer hint: use: `git diff --color-moved=dimmed-zebra --color-moved-ws=ignore-all-space`
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp
index b744298667..1d18d80ec4 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -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;