-
Notifications
You must be signed in to change notification settings - Fork 619
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Start creating connections (edges) with large nonces #7966
Merged
Merged
Changes from 2 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
50208b6
preparing for sending large nonces
mm-near 115fffd
also show nonce on debug page.
mm-near 2703a0b
add time since nonce was created to html
mm-near 8c7c4c3
Merge branch 'master' into 1028_large_nonces
mm-near 320402b
Merge branch 'master' into 1028_large_nonces
mm-near e0db326
set proper nonces on re-initialzing of the connection
mm-near 6a8c8ed
fixed broken test
mm-near 3b7e0c6
added more tests
mm-near 24f7966
Merge branch 'master' into 1028_large_nonces
mm-near b37e600
reviews feedback part1
mm-near 49a3359
Merge branch 'master' into 1028_large_nonces
mm-near 2222501
comments
mm-near 8156746
logs fix
mm-near 6489c8d
comments and cleanup unnecessary clock advance
mm-near 1286eb1
added missing updates
mm-near d3a5e30
Merge branch 'master' into 1028_large_nonces
mm-near f0c1556
compile fixes
mm-near 44aa9fd
Merge branch 'master' into 1028_large_nonces
mm-near 6cd4967
test fixed
mm-near 965973b
fixed compilation issue
mm-near 07487b2
review comment
mm-near c3de08d
Merge branch 'master' into 1028_large_nonces
mm-near 2afda3d
fixed after merge
mm-near File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
local_edges are the edges of the graph adjacent to this node.
edge stored in connection is the edge that the ends of the connection have agreed upon during handshake.
Given that now the edge is supposed to change dynamically and that it is delivered to a node via SyncRoutingTable message it doesn't make sense to duplicate it I guess. We can either:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, we could remove the edge from the connection -- but I'd do that in a separate PR (as this one is becoming too large)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ack, please add a TODO
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also you unnecesarily take a lock on the whole pool in Pool::update_edge. Instead just update the edge in-place.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and for that you might want ArcMutex/ArcSwap instead of AtomicCell.