diff options
author | EthanHeilman <ethan.r.heilman@gmail.com> | 2016-03-16 12:54:30 -0400 |
---|---|---|
committer | Ethan Heilman <Ethan.R.Heilman@gmail.com> | 2016-05-04 18:55:01 -0400 |
commit | 1475ecf61141e03f63a79d59831c411e0e8a5c0a (patch) | |
tree | 34edb793a879c504177833183433cacbdac1284b /src/net.h | |
parent | 326f010332a68b5b8bbf2ae9c1413d580b1bb9be (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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) */ |