mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-23 06:44:35 +00:00
@@ -11,6 +11,7 @@ categories = ["network-programming", "asynchronous"]
|
||||
|
||||
[features]
|
||||
wasm-bindgen = ["getrandom/js"]
|
||||
rsa = []
|
||||
|
||||
[dependencies]
|
||||
async-channel = { workspace = true }
|
||||
|
||||
@@ -43,16 +43,16 @@
|
||||
//! implementations, due to undefined elements in the current specification.
|
||||
//!
|
||||
//! - **Topics** - In gossipsub, topics configurable by the `hash_topics` configuration parameter.
|
||||
//! Topics are of type [`TopicHash`]. The current go implementation uses raw utf-8 strings, and this
|
||||
//! is default configuration in rust-libp2p. Topics can be hashed (SHA256 hashed then base64
|
||||
//! encoded) by setting the `hash_topics` configuration parameter to true.
|
||||
//! Topics are of type [`TopicHash`]. The current go implementation uses raw utf-8 strings, and this
|
||||
//! is default configuration in rust-libp2p. Topics can be hashed (SHA256 hashed then base64
|
||||
//! encoded) by setting the `hash_topics` configuration parameter to true.
|
||||
//!
|
||||
//! - **Sequence Numbers** - A message on the gossipsub network is identified by the source
|
||||
//! [`PeerId`](libp2p_identity::PeerId) and a nonce (sequence number) of the message. The sequence numbers in
|
||||
//! this implementation are sent as raw bytes across the wire. They are 64-bit big-endian unsigned
|
||||
//! integers. When messages are signed, they are monotonically increasing integers starting from a
|
||||
//! random value and wrapping around u64::MAX. When messages are unsigned, they are chosen at random.
|
||||
//! NOTE: These numbers are sequential in the current go implementation.
|
||||
//! [`PeerId`](libp2p_identity::PeerId) and a nonce (sequence number) of the message. The sequence numbers in
|
||||
//! this implementation are sent as raw bytes across the wire. They are 64-bit big-endian unsigned
|
||||
//! integers. When messages are signed, they are monotonically increasing integers starting from a
|
||||
//! random value and wrapping around u64::MAX. When messages are unsigned, they are chosen at random.
|
||||
//! NOTE: These numbers are sequential in the current go implementation.
|
||||
//!
|
||||
//! # Peer Discovery
|
||||
//!
|
||||
|
||||
@@ -918,9 +918,9 @@ impl<E: EthSpec> PeerManager<E> {
|
||||
/// number should be set low as an absolute lower bound to maintain peers on the sync
|
||||
/// committees.
|
||||
/// - Do not prune trusted peers. NOTE: This means if a user has more trusted peers than the
|
||||
/// excess peer limit, all of the following logic is subverted as we will not prune any peers.
|
||||
/// Also, the more trusted peers a user has, the less room Lighthouse has to efficiently manage
|
||||
/// its peers across the subnets.
|
||||
/// excess peer limit, all of the following logic is subverted as we will not prune any peers.
|
||||
/// Also, the more trusted peers a user has, the less room Lighthouse has to efficiently manage
|
||||
/// its peers across the subnets.
|
||||
///
|
||||
/// Prune peers in the following order:
|
||||
/// 1. Remove worst scoring peers
|
||||
|
||||
Reference in New Issue
Block a user