mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-28 16:47:57 +00:00
5db336c743
* client/network-gossip: Move sink IO outside of state_machine `ConsensusGossip` is supposed to be a deterministic state machine. `GossipEngine` wrapping `ConsensusGossip` should handle IO operations. This commit moves the `message_sink` IO operations to `GossipEngine`. More specifically on incoming messages a `GossipEngine` calls `ConsensusGossip::on_incoming` to validate and register the messages. `ConsensusGossip` returns the valid messages which are then forwarded by `GossipEngine` to the upper layer via the `message_sinks`. * client/network-gossip: Adjust and extend tests * Update client/network-gossip/src/bridge.rs Co-authored-by: Benjamin Kampmann <ben.kampmann@googlemail.com>
30 lines
951 B
TOML
30 lines
951 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" }
|
|
sp-utils = { version = "2.0.0-dev", path = "../../primitives/utils" }
|
|
wasm-timer = "0.2"
|
|
|
|
[dev-dependencies]
|
|
async-std = "1.5"
|
|
substrate-test-runtime-client = { version = "2.0.0-dev", path = "../../test-utils/runtime/client" }
|