mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 01:11:04 +00:00
* 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>
This commit is contained in:
@@ -12,6 +12,7 @@ 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" }
|
||||
|
||||
Reference in New Issue
Block a user