You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
17e7054 doc: clarify new_only param for Select function (Amiti Uttarwar)
b0010c8 bench: test select for a new table with only one address (Amiti Uttarwar)
9b91aae bench: add coverage for addrman select with network parameter (Amiti Uttarwar)
22a4d14 test: increase coverage of addrman select (without network) (Amiti Uttarwar)
a98e542 test: add addrman test for special case (Amiti Uttarwar)
5c8b4ba tests: add addrman_select_by_network test (Amiti Uttarwar)
6b22928 addrman: add functionality to select by network (Amiti Uttarwar)
26c3bf1 scripted-diff: rename local variables to match modern conventions (Amiti Uttarwar)
4880641 refactor: consolidate select logic for new and tried tables (Amiti Uttarwar)
ca2a9c5 refactor: generalize select logic (Amiti Uttarwar)
052fbcd addrman: Introduce helper to generalize looking up an addrman entry (Amiti Uttarwar)
9bf078f refactor: update Select_ function (Amiti Uttarwar)
Pull request description:
For the full context & motivation of this patch, see #27213
This is joint work with mzumsande.
This PR adds functionality to `AddrMan::Select` to enable callers to specify a network they are interested in.
Along the way, it refactors the function to deduplicate the logic, updates the local variables to match modern conventions, adds test coverage for both the new and existing `Select` logic, and adds bench tests for the worst case performance of both the new and existing `Select` logic.
This functionality is used in the parent PR.
ACKs for top commit:
vasild:
ACK 17e7054
brunoerg:
re-ACK 17e7054
ajtowns:
ACK 17e7054
mzumsande:
Code Review ACK 17e7054
Tree-SHA512: e99d1ce0c44a15601a3daa37deeadfc9d26208a92969ecffbea358d57ca951102d759734ccf77eacd38db368da0bf5b6fede3cd900d8a77b3061f4adc54e52d8
0 commit comments