Skip to content

merge #17812, #16702, #16730, #18023: supplying and using asmap to improve IP bucketing in addrman#4028

Merged
PastaPastaPasta merged 4 commits into
dashpay:developfrom
kwvg:asmap
May 19, 2021
Merged

merge #17812, #16702, #16730, #18023: supplying and using asmap to improve IP bucketing in addrman#4028
PastaPastaPasta merged 4 commits into
dashpay:developfrom
kwvg:asmap

Conversation

@kwvg

@kwvg kwvg commented Mar 9, 2021

Copy link
Copy Markdown
Collaborator

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

@UdjinM6 UdjinM6 left a comment

Copy link
Copy Markdown

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

Comment thread src/Makefile.am Outdated
Comment thread src/Makefile.am Outdated
Comment thread src/netaddress.cpp Outdated
Comment thread src/netaddress.cpp Outdated
Comment thread src/addrman.cpp Outdated
Comment thread src/init.cpp Outdated
Comment thread test/functional/feature_asmap.py Outdated
Comment thread test/functional/feature_asmap.py Outdated
Comment thread test/functional/feature_asmap.py Outdated
@kwvg

kwvg commented Mar 9, 2021

Copy link
Copy Markdown
Collaborator Author

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

UdjinM6 commented Mar 9, 2021

Copy link
Copy Markdown

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

@kwvg

kwvg commented Mar 9, 2021

Copy link
Copy Markdown
Collaborator Author

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

UdjinM6 commented Mar 9, 2021

Copy link
Copy Markdown

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

@kwvg

kwvg commented Mar 9, 2021

Copy link
Copy Markdown
Collaborator Author

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

UdjinM6 commented Mar 9, 2021

Copy link
Copy Markdown

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

@UdjinM6 UdjinM6 left a comment

Copy link
Copy Markdown

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

@xdustinface xdustinface left a comment

Copy link
Copy Markdown

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

Comment thread src/init.cpp Outdated
Comment thread src/netaddress.h Outdated
Comment thread src/netaddress.h Outdated
@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
Copy Markdown
Member

Note that tests are failing

@xdustinface

Copy link
Copy Markdown

@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

kwvg commented May 5, 2021

Copy link
Copy Markdown
Collaborator Author

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
Comment thread src/init.cpp Outdated
Comment thread src/netaddress.cpp Outdated
Comment thread src/netaddress.h Outdated
Comment thread test/functional/feature_asmap.py Outdated
@PastaPastaPasta

Copy link
Copy Markdown
Member

You have a linter failure

@UdjinM6

UdjinM6 commented May 19, 2021

Copy link
Copy Markdown

Pls see bb8958d129c90262030683d8fae9f5ac403627de and 9ad5d1d3b90e84563822f7bd7d4ca604df9fa02c

@kwvg

kwvg commented May 19, 2021

Copy link
Copy Markdown
Collaborator Author

@UdjinM6, integrated in 067aa67a9d

@kwvg
kwvg requested a review from UdjinM6 May 19, 2021 18:07
Comment thread src/Makefile.test.include Outdated

@UdjinM6 UdjinM6 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM, utACK

@PastaPastaPasta PastaPastaPasta left a comment

Copy link
Copy Markdown
Member

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