aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorEthanHeilman <ethan.r.heilman@gmail.com>2016-03-16 12:54:30 -0400
committerEthan Heilman <Ethan.R.Heilman@gmail.com>2016-05-04 18:55:01 -0400
commit1475ecf61141e03f63a79d59831c411e0e8a5c0a (patch)
tree34edb793a879c504177833183433cacbdac1284b /src/net.h
parent326f010332a68b5b8bbf2ae9c1413d580b1bb9be (diff)
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.
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 833c9cf07c..dfa270544f 100644
--- a/src/net.h
+++ b/src/net.h
@@ -779,6 +779,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) */