diff options
author | Jeff Garzik <jgarzik@exmulti.com> | 2012-05-16 22:11:19 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2012-05-16 22:11:19 -0400 |
commit | 928d3a011cc66c7f907c4d053f674ea77dc611cc (patch) | |
tree | f2e3f8b379328089349fb105d08b64b7cc8e1b18 /src/net.cpp | |
parent | 768e5d52fb295b000940f6a806c3d4bfc3e4f54d (diff) |
CAddrDB: Replace BDB-managed addr.dat with internally managed peers.dat
Diffstat (limited to 'src/net.cpp')
-rw-r--r-- | src/net.cpp | 7 |
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) |