"anchors.dat"
in LogPrintf
to follow the pattern of other logs.
"anchors.dat"
in LogPrintf
to follow the pattern of other logs.
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
No conflicts as of last run.
Tested ACK https://github.com/bitcoin/bitcoin/pull/21483/commits/1b897ed000b86458fb9642c4119777688932fd27 on Ubuntu 20.04
Loaded 2 addresses from anchors.dat 0ms
Is this time usually 0ms
?
213@@ -213,9 +214,11 @@ void DumpAnchors(const fs::path& anchors_db_path, const std::vector<CAddress>& a
214 std::vector<CAddress> ReadAnchors(const fs::path& anchors_db_path)
215 {
216 std::vector<CAddress> anchors;
217+ int64_t nStart = GetTimeMillis();
218+
219 try {
220 DeserializeFileDB(anchors_db_path, anchors, CLIENT_VERSION | ADDRV2_FORMAT);
221- LogPrintf("Loaded %i addresses from %s\n", anchors.size(), fs::quoted(fs::PathToString(anchors_db_path.filename())));
222+ LogPrintf("Loaded %i addresses from %s %dms\n", anchors.size(), fs::PathToString(anchors_db_path.filename()), GetTimeMillis() - nStart);