mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 14:38:29 +01:00
CAddrDB: Replace BDB-managed addr.dat with internally managed peers.dat
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user