client/finality-grandpa: Instrument until-imported queue (#5438)

* client/finality-grandpa: Instrument until-imported queue

The `UntilImported` queue takes as input finality grandpa messages that
depend on blocks that are not yet imported and holds them back until
those blocks are imported.

This commit adds a basic metric, the amount of messages waiting in the
queue, to the module. For now this metric is only available for the
global `UntilImported` queue awaiting blocks for commit and catch-up
messages.

* client/finality-grandpa/src/until_imported: Update metric help text

Co-Authored-By: Ashley <ashley.ruglys@gmail.com>

Co-authored-by: Ashley <ashley.ruglys@gmail.com>
This commit is contained in:
Max Inden
2020-03-31 20:17:14 +02:00
committed by GitHub
parent f04486e5bc
commit 091335780e
4 changed files with 134 additions and 7 deletions
@@ -255,6 +255,7 @@ where
self.client.clone(),
&self.network,
&self.keystore,
None,
);
let last_finalized_number = self.client.info().finalized_number;