diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2016-05-17 10:40:22 +0200 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2016-05-17 10:53:00 +0200 |
commit | 5c3f8ddcaa1164079105c452429fccf8127b01b6 (patch) | |
tree | 09ee3dbee21141b5abaf62fa0e765c4fdfe93c34 /src/net.h | |
parent | e2bf830bb6c1bfa038c943dd6f5d92a406bd723f (diff) | |
parent | 1475ecf61141e03f63a79d59831c411e0e8a5c0a (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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) */ |