aboutsummaryrefslogtreecommitdiff
path: root/test/util
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2020-07-09 11:32:15 +0100
committerJohn Newbery <john@johnnewbery.com>2021-03-31 18:06:51 +0100
commit935d4889228e7e361c8b0020761fa0e08a55fb48 (patch)
treed6cf9be6e0b44be088a2ba3cda3cdbc07d423fd1 /test/util
parent01a79ff924b11f91796d4aa63c571897b047ac7d (diff)
[net processing] Refactor MaybeSendAddr()
Changes to make MaybeSendAddr simpler and easier to maintain/update: - assert invariant that node.vAddrToSend.size() can never exceed MAX_ADDR_TO_SEND - erase known addresses from vAddrToSend in one pass - no check for (vAddr.size() >= MAX_ADDR_TO_SEND) during iteration, since vAddr can never exceed MAX_ADDR_TO_SEND.
Diffstat (limited to 'test/util')
0 files changed, 0 insertions, 0 deletions