mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-08 04:18:01 +00:00
327d11025e
* client/network-gossip/bridge: Use bounded channel Instead of returning an unbounded channel on `GossipEngine::messages_for` return a bounded channel. For now the channel length is determined by the amount of past messages cached in the `ConsensusGossip`. With a bounded channel, one can't just fire-and-forget style send into it, but has to first check whether the channel is ready. Thus this commit restructures `GossipEngine::poll` and introduces a `ForwardingState` into `GossipEngine`. * client/network-gossip/bridge: Add quickcheck for different size channels
31 lines
917 B
TOML
31 lines
917 B
TOML
[package]
|
|
description = "Gossiping for the Substrate network protocol"
|
|
name = "sc-network-gossip"
|
|
version = "0.8.0-dev"
|
|
license = "GPL-3.0"
|
|
authors = ["Parity Technologies <admin@parity.io>"]
|
|
edition = "2018"
|
|
homepage = "https://substrate.dev"
|
|
repository = "https://github.com/paritytech/substrate/"
|
|
documentation = "https://docs.rs/sc-network-gossip"
|
|
|
|
[package.metadata.docs.rs]
|
|
targets = ["x86_64-unknown-linux-gnu"]
|
|
|
|
|
|
[dependencies]
|
|
futures = "0.3.4"
|
|
futures-timer = "3.0.1"
|
|
libp2p = { version = "0.18.1", default-features = false, features = ["websocket"] }
|
|
log = "0.4.8"
|
|
lru = "0.4.3"
|
|
sc-network = { version = "0.8.0-dev", path = "../network" }
|
|
sp-runtime = { version = "2.0.0-dev", path = "../../primitives/runtime" }
|
|
wasm-timer = "0.2"
|
|
|
|
[dev-dependencies]
|
|
async-std = "1.5"
|
|
quickcheck = "0.9.0"
|
|
rand = "0.7.2"
|
|
substrate-test-runtime-client = { version = "2.0.0-dev", path = "../../test-utils/runtime/client" }
|