aboutsummaryrefslogtreecommitdiff
path: root/src/net.cpp
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@exmulti.com>2012-05-16 22:11:19 -0400
committerJeff Garzik <jgarzik@redhat.com>2012-05-16 22:11:19 -0400
commit928d3a011cc66c7f907c4d053f674ea77dc611cc (patch)
treef2e3f8b379328089349fb105d08b64b7cc8e1b18 /src/net.cpp
parent768e5d52fb295b000940f6a806c3d4bfc3e4f54d (diff)
CAddrDB: Replace BDB-managed addr.dat with internally managed peers.dat
Diffstat (limited to 'src/net.cpp')
-rw-r--r--src/net.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/net.cpp b/src/net.cpp
index 636db2952c..24fd26ae56 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -1278,8 +1278,13 @@ unsigned int pnSeed[] =
void DumpAddresses()
{
+ int64 nStart = GetTimeMillis();
+
CAddrDB adb;
- adb.WriteAddrman(addrman);
+ adb.Write(addrman);
+
+ printf("Flushed %d addresses to peers.dat %"PRI64d"ms\n",
+ addrman.size(), GetTimeMillis() - nStart);
}
void ThreadDumpAddress2(void* parg)