aboutsummaryrefslogtreecommitdiff
path: root/src/addrdb.cpp
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2021-08-05 11:15:35 +0100
committerJohn Newbery <john@johnnewbery.com>2021-08-18 14:00:52 +0100
commite8e7392311edf44278d76743bebe902d4ac94662 (patch)
treed7b2db78ea0d261867dabed52be17d4c25ecd68b /src/addrdb.cpp
parent181a1207ba6bd179d181f3e2534ef8676565ce72 (diff)
downloadbitcoin-e8e7392311edf44278d76743bebe902d4ac94662.tar.xz
[addrman] Don't call Clear() if parsing peers.dat fails
Now that we manage the lifespan of node.addrman, we can just reset node.addrman to a newly initialized CAddrMan if parsing peers.dat fails, eliminating the possibility that Clear() leaves some old state behind.
Diffstat (limited to 'src/addrdb.cpp')
0 files changed, 0 insertions, 0 deletions