diff options
author | Jon Atack <jon@atack.com> | 2019-12-29 18:54:33 +0100 |
---|---|---|
committer | Jon Atack <jon@atack.com> | 2020-03-04 14:24:19 +0100 |
commit | 819fb5549b0d02477f47b3c40338071f37b6d885 (patch) | |
tree | 2e3869a5ef7d224a551f91f84645efbf187e0c62 /src/init.cpp | |
parent | dcaf543ba0241f9219cea70b67c7b066d4c9ca9b (diff) |
logging: asmap logging and #include fixups
- move asmap #includes to sorted positions in addrman and init (move-only)
- remove redundant quotes in asmap InitError, update test
- remove full stops from asmap logging to be consistent with debug logging,
update tests
Diffstat (limited to 'src/init.cpp')
-rw-r--r-- | src/init.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/init.cpp b/src/init.cpp index 0f56f3881c..d7a44d1d4c 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -47,11 +47,11 @@ #include <txdb.h> #include <txmempool.h> #include <ui_interface.h> +#include <util/asmap.h> #include <util/moneystr.h> #include <util/system.h> #include <util/threadnames.h> #include <util/translation.h> -#include <util/asmap.h> #include <validation.h> #include <hash.h> @@ -1840,14 +1840,14 @@ bool AppInitMain(NodeContext& node) } std::vector<bool> asmap = CAddrMan::DecodeAsmap(asmap_path); if (asmap.size() == 0) { - InitError(strprintf(_("Could not parse asmap file '%s'").translated, asmap_path)); + InitError(strprintf(_("Could not parse asmap file %s").translated, asmap_path)); return false; } const uint256 asmap_version = SerializeHash(asmap); node.connman->SetAsmap(std::move(asmap)); - LogPrintf("Using asmap version %s for IP bucketing.\n", asmap_version.ToString()); + LogPrintf("Using asmap version %s for IP bucketing\n", asmap_version.ToString()); } else { - LogPrintf("Using /16 prefix for IP bucketing.\n"); + LogPrintf("Using /16 prefix for IP bucketing\n"); } // ********************************************************* Step 13: finished |