aboutsummaryrefslogtreecommitdiff
path: root/src/addrman.cpp
diff options
context:
space:
mode:
authorVasil Dimov <vd@FreeBSD.org>2021-07-15 13:04:26 +0200
committerVasil Dimov <vd@FreeBSD.org>2021-07-15 13:40:29 +0200
commit816f29eab296ebec2da8f8606ad618609e3ba228 (patch)
treea7d1cbbcb2d0367cda46bccefaf38e76ffe0882f /src/addrman.cpp
parent97153a702600430bdaf6af4f6f4eb8593e32819f (diff)
downloadbitcoin-816f29eab296ebec2da8f8606ad618609e3ba228.tar.xz
addrman: detect on-disk corrupted nNew and nTried during unserialization
Negative `nNew` or `nTried` are not possible during normal operation. So, if we read such values during unserialize, report addrman corruption. Fixes https://github.com/bitcoin/bitcoin/issues/22450
Diffstat (limited to 'src/addrman.cpp')
0 files changed, 0 insertions, 0 deletions