Page MenuHomePhabricator

addrman: detect on-disk corrupted nNew and nTried during unserialization
ClosedPublic

Authored by Fabien on Oct 17 2022, 14:42.

Details

Summary
Negative `nNew` or `nTried` are not possible during normal operation.
So, if we read such values during unserialize, report addrman corruption.

Backport of core#22455.

Test Plan
ninja all check-all