mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 15:51:12 +00:00
chore: update jsonrpsee to v0.10.1 (#11173)
* fix(bin/node): remove unsed dep jsonrpsee * chore(remote ext): update jsonrpsee v0.10.1 * chore(try runtime): update jsonrpsee v0.10.1 * Update utils/frame/try-runtime/cli/src/commands/follow_chain.rs * cargo fmt
This commit is contained in:
@@ -30,7 +30,7 @@ use std::{fmt, time::Instant};
|
||||
/// like:
|
||||
///
|
||||
/// > Syncing 5.4 bps, target=#531028 (4 peers), best: #90683 (0x4ca8…51b8),
|
||||
/// > finalized #360 (0x6f24…a38b), ⬇ 5.5kiB/s ⬆ 0.9kiB/s
|
||||
/// > finalized #360 (0x6f24…a38b), ⬇ 5.5kiB/s ⬆ 0.9kiB/s
|
||||
///
|
||||
/// # Usage
|
||||
///
|
||||
|
||||
@@ -579,7 +579,7 @@ pub struct NonDefaultSetConfig {
|
||||
/// considered established once this protocol is open.
|
||||
///
|
||||
/// > **Note**: This field isn't present for the default set, as this is handled internally
|
||||
/// > by the networking code.
|
||||
/// > by the networking code.
|
||||
pub notifications_protocol: Cow<'static, str>,
|
||||
/// If the remote reports that it doesn't support the protocol indicated in the
|
||||
/// `notifications_protocol` field, then each of these fallback names will be tried one by
|
||||
|
||||
@@ -103,8 +103,8 @@
|
||||
//! protocol ID.
|
||||
//!
|
||||
//! > **Note**: It is possible for the same connection to be used for multiple chains. For example,
|
||||
//! > one can use both the `/dot/sync/2` and `/sub/sync/2` protocols on the same
|
||||
//! > connection, provided that the remote supports them.
|
||||
//! > one can use both the `/dot/sync/2` and `/sub/sync/2` protocols on the same
|
||||
//! > connection, provided that the remote supports them.
|
||||
//!
|
||||
//! Substrate uses the following standard libp2p protocols:
|
||||
//!
|
||||
|
||||
@@ -129,7 +129,7 @@ impl PeersetHandle {
|
||||
/// Has no effect if the node was already a reserved peer.
|
||||
///
|
||||
/// > **Note**: Keep in mind that the networking has to know an address for this node,
|
||||
/// > otherwise it will not be able to connect to it.
|
||||
/// > otherwise it will not be able to connect to it.
|
||||
pub fn add_reserved_peer(&self, set_id: SetId, peer_id: PeerId) {
|
||||
let _ = self.tx.unbounded_send(Action::AddReservedPeer(set_id, peer_id));
|
||||
}
|
||||
@@ -232,7 +232,7 @@ pub struct SetConfig {
|
||||
/// List of bootstrap nodes to initialize the set with.
|
||||
///
|
||||
/// > **Note**: Keep in mind that the networking has to know an address for these nodes,
|
||||
/// > otherwise it will not be able to connect to them.
|
||||
/// > otherwise it will not be able to connect to them.
|
||||
pub bootnodes: Vec<PeerId>,
|
||||
|
||||
/// Lists of nodes we should always be connected to.
|
||||
|
||||
@@ -25,8 +25,8 @@
|
||||
//! slots.
|
||||
//!
|
||||
//! > Note: This module is purely dedicated to managing slots and reputations. Features such as
|
||||
//! > for example connecting to some nodes in priority should be added outside of this
|
||||
//! > module, rather than inside.
|
||||
//! > for example connecting to some nodes in priority should be added outside of this
|
||||
//! > module, rather than inside.
|
||||
|
||||
use libp2p::PeerId;
|
||||
use log::error;
|
||||
@@ -50,8 +50,8 @@ pub struct PeersState {
|
||||
/// List of nodes that we know about.
|
||||
///
|
||||
/// > **Note**: This list should really be ordered by decreasing reputation, so that we can
|
||||
/// easily select the best node to connect to. As a first draft, however, we don't
|
||||
/// sort, to make the logic easier.
|
||||
/// > easily select the best node to connect to. As a first draft, however, we don't sort, to
|
||||
/// > make the logic easier.
|
||||
nodes: HashMap<PeerId, Node>,
|
||||
|
||||
/// Configuration of each set. The size of this `Vec` is never modified.
|
||||
|
||||
Reference in New Issue
Block a user