From 928d3a011cc66c7f907c4d053f674ea77dc611cc Mon Sep 17 00:00:00 2001 From: Jeff Garzik Date: Wed, 16 May 2012 22:11:19 -0400 Subject: CAddrDB: Replace BDB-managed addr.dat with internally managed peers.dat --- src/net.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/net.cpp') diff --git a/src/net.cpp b/src/net.cpp index 636db2952..24fd26ae5 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) -- cgit v1.2.3