Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
addrman: change nid_type from int to int64_t
With nId being incremented for each addr received, an attacker could cause an overflow in the past. (https://bitcoincore.org/en/2024/07/31/disclose-addrman-int-overflow/) Even though that attack was made infeasible by rate-limiting (PR #22387), to be on the safe side change the type to an int64_t.
- Loading branch information