Skip to content

Conversation

@kwvg
Copy link
Collaborator

@kwvg kwvg commented Mar 9, 2021

Overview

As part of #4025, component pull requests that are required by TorV3 logic are being broken down into branches wherever feasable. This PR deals with asmap related address logic.

Contents

Disclosures

  • Dash-specific changes may not have been tested, only compilation has been ensured. Running the client on (a) testnet(s) may be necessary.
  • Contains squashed patches bb8958d, 7d2eb46d97bf4ffe88dc97324d5f27de51c2ddaf and 9ad5d1d from UdjinM6

Copy link

@UdjinM6 UdjinM6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! 👍

Looks mostly ok, see below

@kwvg
Copy link
Collaborator Author

kwvg commented Mar 9, 2021

Certain addrman_tests are failing as of now

  • error: in "addrman_tests/addrman_tried_collisions": check addrman.size() == i has failed [69 != 73]
  • error: in "addrman_tests/addrman_evictionworks": check addrman.SelectTriedCollision().ToString() == "[::]:0" has failed
  • error: in "addrman_tests/addrman_noevict": check addrman.SelectTriedCollision().ToString() == "[::]:0" has failed

@UdjinM6
Copy link

UdjinM6 commented Mar 9, 2021

Looks like we also need bitcoin#16730 for asmap serialization to work properly.

@kwvg
Copy link
Collaborator Author

kwvg commented Mar 9, 2021

I've already added it in #4025 at cb608de, it will be merged along with other serialization updates. Right now I'm just splitting the PRs one at a time, I've bunged up the commit order in the original PR, it'll be a little while to sort it out

@UdjinM6
Copy link

UdjinM6 commented Mar 9, 2021

I mean, 16702 simply doesn't work without 16730.

@kwvg
Copy link
Collaborator Author

kwvg commented Mar 9, 2021

It doesn't. The PRs aren't in order right now. I'm currently working on it so that it's in the correct order. Just splitting them so that they can be (relatively) atomically reviewed.

EDIT: Nevermind, bitcoin#16730 is a direct prerequisite, resolved in 688985b

@UdjinM6 UdjinM6 changed the title merge #17812, #16702: supplying and using asmap to improve IP bucketing in addrman merge #17812, #16702, #16730: supplying and using asmap to improve IP bucketing in addrman Mar 9, 2021
@UdjinM6
Copy link

UdjinM6 commented Mar 9, 2021

Looks good now imo 👍 Let's wait for Gitlab to confirm.

@UdjinM6 UdjinM6 added this to the 17 milestone Mar 9, 2021
UdjinM6
UdjinM6 previously approved these changes Mar 10, 2021
Copy link

@UdjinM6 UdjinM6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to be working as expected, slightly tested ACK

Copy link

@xdustinface xdustinface left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall 👍 Just two points, see below

@kwvg kwvg force-pushed the asmap branch 3 times, most recently from 3e9d088 to d2901c2 Compare March 12, 2021 17:44
@kwvg kwvg requested a review from xdustinface March 12, 2021 17:44
@PastaPastaPasta
Copy link
Member

Note that tests are failing

@xdustinface
Copy link

@kittywhiskers The last force push moved GetGroup again to the wrong place, no? Was this for some reason or mistake? Also, are you going to add bitcoin#18023 here?

@kwvg
Copy link
Collaborator Author

kwvg commented May 5, 2021

The asmap branch should now be fit for review

This didn't age well... sigh, I'll give it a look

@kwvg kwvg requested a review from PastaPastaPasta May 11, 2021 11:34
@kwvg kwvg force-pushed the asmap branch 2 times, most recently from cc80d54 to d9ef41b Compare May 11, 2021 15:11
@PastaPastaPasta
Copy link
Member

You have a linter failure

@UdjinM6
Copy link

UdjinM6 commented May 19, 2021

Pls see bb8958d129c90262030683d8fae9f5ac403627de and 9ad5d1d3b90e84563822f7bd7d4ca604df9fa02c

@kwvg
Copy link
Collaborator Author

kwvg commented May 19, 2021

@UdjinM6, integrated in 067aa67a9d

@kwvg kwvg requested a review from UdjinM6 May 19, 2021 18:07
Copy link

@UdjinM6 UdjinM6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, utACK

Copy link
Member

@PastaPastaPasta PastaPastaPasta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@PastaPastaPasta PastaPastaPasta merged commit 2f555f8 into dashpay:develop May 19, 2021
@kwvg kwvg deleted the asmap branch July 18, 2023 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants