Tracking blocks seen by LogPoller (both latest and finalized)
Motivation
We want to track in detail the progress of the chain. There is an existing metric evm_pool_rpc_node_highest_seen_block that is populated whenever the CL Node sees a new block emitted by RPC/blockchain. Although it's great for tracking chain progress, it doesn't allow us to track finality progress which is critical for CCIP. There were a couple of cases in the past, when the chain was progressing but finality not.
Solution
LogPoller is the only component that uses finality/finalityTags so we could add metric tracking latest and finalized blocks returned from RPC to LogPoller.
An alternative design would be to make it more decoupled from LogPoller and track that within node_lifecycle aliveLoop(). However, we cannot subscribe with EthSubscribe to that change so it would require polling (it doesn't have to be very frequent, e.g. 1req/minute per chain)
I see that you haven't updated any CHANGELOG files. Would it make sense to do so?
Quality Gate passed
Issues
0 New issues
0 Fixed issues
0 Accepted issues
Measures
0 Security Hotspots
100.0% Coverage on New Code
0.0% Duplication on New Code