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.
Showing
- client/finality-grandpa/src/environment.rs 1 addition, 0 deletionsclient/finality-grandpa/src/environment.rs
- client/finality-grandpa/src/lib.rs 32 additions, 5 deletionsclient/finality-grandpa/src/lib.rs
- client/finality-grandpa/src/observer.rs 1 addition, 0 deletionsclient/finality-grandpa/src/observer.rs
- client/finality-grandpa/src/until_imported.rs 100 additions, 2 deletionsclient/finality-grandpa/src/until_imported.rs
Please register or sign in to comment