diff options
| author | Jeff Garzik <[email protected]> | 2012-05-16 22:11:19 -0400 |
|---|---|---|
| committer | Jeff Garzik <[email protected]> | 2012-05-16 22:11:19 -0400 |
| commit | 928d3a011cc66c7f907c4d053f674ea77dc611cc (patch) | |
| tree | f2e3f8b379328089349fb105d08b64b7cc8e1b18 /src/net.cpp | |
| parent | Add new utility functions FileCommit(), RenameOver() (diff) | |
| download | discoin-928d3a011cc66c7f907c4d053f674ea77dc611cc.tar.xz discoin-928d3a011cc66c7f907c4d053f674ea77dc611cc.zip | |
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 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) |