This repository was archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
client/network: Use request response for light client requests #7895
Merged
Merged
Changes from 44 commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
bcdf9fa
client/network: Re-enable light_client_handler.rs unit tests
mxinden f9ef812
client/network: Add scaffolding for light client using req-resp
mxinden 20ee04d
client/network: Make it compile
mxinden 8596782
client/network: Rename OutEvent SendRequest
mxinden 00a092a
client/network: Restructure light client request client and handler
mxinden 1fccb36
client/network: Rename light client request client to sender
mxinden 1a45ab7
client/network: Remove light client prepare_request
mxinden 2bb5740
client/network/src/light: Rework configuration
mxinden 43b30a8
client/network: Formatting
mxinden a9d8b4f
Merge branch 'paritytech/master' into light-client-request-response
mxinden 5262e2d
client/network/light: Remove RequestId
mxinden be5a591
client/network/light: Make request functions methods
mxinden 48592e1
client/network/light: Refactor request wrapping
mxinden 8be4473
client/network/light: Fix warnings
mxinden feeef54
client/network/light: Serialize request in method
mxinden c893aff
client/network/light: Make returning response a method
mxinden 4a2edde
client/network/light: Depend on request response to timeout requests
mxinden fcece3a
client/network: Fix test compilation
mxinden 30eb9ae
client/network/light: Re-enable connection test
mxinden 32774d0
client/network/light: Re-enable timeout test
mxinden db2d9b5
client/network/light: Re-enable incorrect_response test
mxinden c86671a
client/network/light: Re-enable wrong_response_type test
mxinden f2d1487
client/network/light: Re-enable retry_count_failures test
mxinden 310efa3
client/network/light: Re-enable issue_request tests
mxinden 6d33c95
client/network/light: Re-enable send_receive tests
mxinden 7efd5c3
client/network/light: Deduplicate test logic
mxinden 2670d1d
client/network/light: Remove unused imports
mxinden 08252ed
client/network/light: Handle request failure
mxinden 671d398
client/network/light: Move generate_protocol_config
mxinden 2e54c01
Merge branch 'paritytech/master' into light-client-request-response
mxinden 984fa95
client/network: Fix test compilation
mxinden 8e24f29
client/network: Rename light client request client to sender
mxinden 31d6791
client/network: Handle too-many-requests error
mxinden 3a04470
Merge branch 'paritytech/master' into light-client-request-response
mxinden d4a2be6
client/network: Update outdated comments
mxinden 6da6207
client/network/light: Choose any peer if none has best block defined
mxinden 5d1d682
.maintain: Replace sentry-node with local-docker-test-network
mxinden 5a609ec
client/network/light: Handle oneshot cancellation
mxinden 2477f34
client/network/light: Do not reduce retry count on missing peer
mxinden 6dfb7c1
client/network/request-response: Assert in debug request id to be unique
mxinden b39509a
client/network/light: Choose same limit as block request protocol
mxinden e5bf6cd
Merge branch 'paritytech/master' into light-client-request-response
mxinden c4ac336
client/network: Report reputation changes via response
mxinden 74671e3
Merge branch 'paritytech/master' into light-client-request-response
mxinden c4106c2
Merge branch 'paritytech/master' into light-client-request-response
mxinden b5d9636
client/network: Remove resolved TODOs
mxinden 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
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.
Two arguments for using nodes in the
syncpeer set: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.
Sounds OK to me, but maybe @tomaka has a more educated opinion on the matter, being intimately familiar with the peer sets.
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.
@tomaka any thoughts on this?
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.
Sorry, forgot to answer.
Yes, that is the right thing to do. Being "sync connected" proves that they're on the correct chain.