mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-08 15:58:02 +00:00
adde404e41
* client/finality-grandpa: Add regression test observer polling network Ensure `Future` implementation of `ObserverWork` is polling its `NetworkBridge`. Regression test for bug introduced ind9837d7ddand fixed in504b4e89e. When polled, `NetworkBridge` forwards reputation change requests from the `GossipValidator` to the underlying `dyn Network`. This test triggers a reputation change by calling `GossipValidator::validate` with an invalid gossip message. After polling the `ObserverWork` which should poll the `NetworkBridge`, the reputation change should be forwarded to the test network. * Nits Co-authored-by: Max Inden <mail@max-inden.de>
48 lines
2.2 KiB
TOML
48 lines
2.2 KiB
TOML
[package]
|
|
name = "sc-finality-grandpa"
|
|
version = "0.8.0"
|
|
authors = ["Parity Technologies <admin@parity.io>"]
|
|
edition = "2018"
|
|
license = "GPL-3.0"
|
|
|
|
[dependencies]
|
|
fork-tree = { version = "2.0.0", path = "../../utils/fork-tree" }
|
|
futures = "0.3.1"
|
|
futures-timer = "2.0.2"
|
|
log = "0.4.8"
|
|
parking_lot = "0.9.0"
|
|
rand = "0.7.2"
|
|
assert_matches = "1.3.0"
|
|
parity-scale-codec = { version = "1.0.0", features = ["derive"] }
|
|
sp-arithmetic = { version = "2.0.0", path = "../../primitives/arithmetic" }
|
|
sp-runtime = { version = "2.0.0", path = "../../primitives/runtime" }
|
|
sp-consensus = { version = "0.8", path = "../../primitives/consensus/common" }
|
|
sp-core = { version = "2.0.0", path = "../../primitives/core" }
|
|
sc-telemetry = { version = "2.0.0", path = "../telemetry" }
|
|
sc-keystore = { version = "2.0.0", path = "../keystore" }
|
|
serde_json = "1.0.41"
|
|
sc-client-api = { version = "2.0.0", path = "../api" }
|
|
sc-client = { version = "0.8", path = "../" }
|
|
sp-inherents = { version = "2.0.0", path = "../../primitives/inherents" }
|
|
sp-blockchain = { version = "2.0.0", path = "../../primitives/blockchain" }
|
|
sc-network = { version = "0.8", path = "../network" }
|
|
sc-network-gossip = { version = "0.8", path = "../network-gossip" }
|
|
sp-finality-tracker = { version = "2.0.0", path = "../../primitives/finality-tracker" }
|
|
sp-finality-grandpa = { version = "2.0.0", path = "../../primitives/finality-grandpa" }
|
|
finality-grandpa = { version = "0.11.0", features = ["derive-codec"] }
|
|
pin-project = "0.4.6"
|
|
|
|
[dev-dependencies]
|
|
finality-grandpa = { version = "0.11.0", features = ["derive-codec", "test-helpers"] }
|
|
sc-network = { version = "0.8", path = "../network" }
|
|
sc-network-test = { version = "0.8.0", path = "../network/test" }
|
|
sp-keyring = { version = "2.0.0", path = "../../primitives/keyring" }
|
|
substrate-test-runtime-client = { version = "2.0.0", path = "../../test-utils/runtime/client" }
|
|
sp-consensus-babe = { version = "0.8", path = "../../primitives/consensus/babe" }
|
|
sp-state-machine = { version = "0.8", path = "../../primitives/state-machine" }
|
|
env_logger = "0.7.0"
|
|
tokio = "0.1.22"
|
|
tempfile = "3.1.0"
|
|
sp-api = { version = "2.0.0", path = "../../primitives/api" }
|
|
futures01 = { package = "futures", version = "0.1.29" }
|