Skip to content

net: Use Intra-Quorum Relay connections for other messages too#4021

Merged
UdjinM6 merged 2 commits intodashpay:developfrom
UdjinM6:mn_iqr_c_more
Apr 3, 2021
Merged

net: Use Intra-Quorum Relay connections for other messages too#4021
UdjinM6 merged 2 commits intodashpay:developfrom
UdjinM6:mn_iqr_c_more

Conversation

@UdjinM6
Copy link

@UdjinM6 UdjinM6 commented Feb 28, 2021

Make intra-quorum data delivery more robust.

We stopped relaying this data (#3368) when we were preparing to implement Concentrated Recovery (#3389) one part of which was spork21 ("all connected" mode) (#3380) because relaying all the data via 50+ connections from each member to everyone else in the quorum at once could be wasteful potentially. But I think it should still be fine for quorum masternodes to re-use a small subset (in case of "all connected" mode) of intra-quorum connections to relay the data inside quorums. Syncing via these connections should also be safe (unlike syncing via potentially short-living pure "masternode" connections). Not having to rely on non-maliciousness of (regular) nodes surrounding each quorum member is yet another good thing imo.

Thoughts?

Based on #4020 atm.

@UdjinM6 UdjinM6 marked this pull request as ready for review March 15, 2021 17:00
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.

Makes sense 👍 Please let me know your thoughts about the two comments below, i thought quite some time about it now but it seems to be tricky with all those flags involved 🙈

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.

utACK

@UdjinM6 UdjinM6 requested a review from PastaPastaPasta March 29, 2021 10:57
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, would be nice if there were tests around this

@UdjinM6 UdjinM6 added this to the 17 milestone Mar 29, 2021
@thephez
Copy link
Collaborator

thephez commented Mar 29, 2021

@PastaPastaPasta Sometimes I think you're using a template response message for PRs 😄

... would be nice if there were tests around this

@UdjinM6 UdjinM6 merged commit 0b7d7a0 into dashpay:develop Apr 3, 2021
@UdjinM6 UdjinM6 deleted the mn_iqr_c_more branch July 1, 2021 21:59
gades pushed a commit to cosanta/cosanta-core that referenced this pull request Mar 17, 2022
…ay#4021)

* net: Use Intra-Quorum Relay connections for other messages too

Make intra-quorum data delivery more robust.

* Apply review suggestions
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