aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2016-05-17 10:40:22 +0200
committerPieter Wuille <pieter.wuille@gmail.com>2016-05-17 10:53:00 +0200
commit5c3f8ddcaa1164079105c452429fccf8127b01b6 (patch)
tree09ee3dbee21141b5abaf62fa0e765c4fdfe93c34 /src/net.h
parente2bf830bb6c1bfa038c943dd6f5d92a406bd723f (diff)
parent1475ecf61141e03f63a79d59831c411e0e8a5c0a (diff)
Merge #7696: Fix de-serialization bug where AddrMan is left corrupted
1475ecf Fix de-serialization bug where AddrMan is corrupted after exception * CAddrDB modified so that when de-serialization code throws an exception Addrman is reset to a clean state * CAddrDB modified to make unit tests possible * Regression test created to ensure bug is fixed * StartNode modifed to clear adrman if CAddrDB::Read returns an error code. (EthanHeilman)
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/net.h b/src/net.h
index fd80056c6b..9ab820ca69 100644
--- a/src/net.h
+++ b/src/net.h
@@ -794,6 +794,7 @@ public:
CAddrDB();
bool Write(const CAddrMan& addr);
bool Read(CAddrMan& addr);
+ bool Read(CAddrMan& addr, CDataStream& ssPeers);
};
/** Access to the banlist database (banlist.dat) */