diff options
author | John Newbery <john@johnnewbery.com> | 2020-07-09 11:32:15 +0100 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2021-03-31 18:06:51 +0100 |
commit | 935d4889228e7e361c8b0020761fa0e08a55fb48 (patch) | |
tree | d6cf9be6e0b44be088a2ba3cda3cdbc07d423fd1 /src/test/data/base58_encode_decode.json | |
parent | 01a79ff924b11f91796d4aa63c571897b047ac7d (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 'src/test/data/base58_encode_decode.json')
0 files changed, 0 insertions, 0 deletions