network-gossip: add metric for number of local messages (#7871)

* network-gossip: add metric for number of local messages

* grandpa: fix GossipEngine missing metrics registry parameter

* network-gossip: increase known messages cache size

* network-gossip: fix tests

* grandpa: remove unnecessary clone

Co-authored-by: Max Inden <mail@max-inden.de>

* network-gossip: count registered and expired messages separately

* network-gossip: add comment on known messages cache size

* network-gossip: extend comment with cache size in memory

Co-authored-by: Max Inden <mail@max-inden.de>
This commit is contained in:
André Silva
2021-01-12 15:04:48 +00:00
committed by GitHub
parent da9c73125f
commit 2d1b9a8d38
5 changed files with 101 additions and 34 deletions
+1
View File
@@ -7218,6 +7218,7 @@ dependencies = [
"rand 0.7.3",
"sc-network",
"sp-runtime",
"substrate-prometheus-endpoint",
"substrate-test-runtime-client",
"wasm-timer",
]