feat(sdk): refactor into single messenger class#2118
Merged
smartcontracts merged 1 commit intodevelopfrom Feb 3, 2022
Merged
Conversation
|
SmitV
approved these changes
Feb 2, 2022
theochap
added a commit
that referenced
this pull request
Dec 10, 2025
## Description This PR completes the implementation of the `opp2p_peers` RPC endpoint by exposing the `peer_score` through the endpoint. Given a peer, computes the score output for `RPC` by averaging the peer topic score over the topics the peer is connected to. Close #1562
theochap
added a commit
that referenced
this pull request
Dec 10, 2025
…ore (#2121) ## Description This PR amends some of the changes from #2118 to only serve the total peer score inside `opp2p_peers`, as this is the only field supported by `rust_libp2p` as of now. See libp2p/rust-libp2p#6058
theochap
added a commit
that referenced
this pull request
Jan 14, 2026
…ore (op-rs/kona#2121) ## Description This PR amends some of the changes from #2118 to only serve the total peer score inside `opp2p_peers`, as this is the only field supported by `rust_libp2p` as of now. See libp2p/rust-libp2p#6058
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
This PR refactors the
CrossChainProviderandCrossChainMessengerclasses into a single unified class. This is significantly cleaner and avoids the headache of flipping between the two objects constantly.