Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zetaclient_last_scanned_block_number no longer being emitted for EVM chains #2829

Closed
morde08 opened this issue Sep 4, 2024 · 1 comment · Fixed by #2834
Closed

zetaclient_last_scanned_block_number no longer being emitted for EVM chains #2829

morde08 opened this issue Sep 4, 2024 · 1 comment · Fixed by #2834
Assignees
Labels
bug Something isn't working

Comments

@morde08
Copy link
Contributor

morde08 commented Sep 4, 2024

Describe the Bug
The metric zetaclient_last_scanned_block_number is only emitted for chain: btc_mainnet (Mainnet) and chain: btc_testnet, solana_devnet (Testnet). The metric is not emitted as it was before for chains: eth_mainnet, bsc_mainnet, etc.

To Reproduce
Start Zetaclientd with telemetry metrics enabled.

Expected Behavior
zetaclient_last_scanned_block_number would be emitted for all connected chains.

Screenshots

# HELP zetaclient_last_scanned_block_number Last scanned block number per chain
# TYPE zetaclient_last_scanned_block_number gauge
zetaclient_last_scanned_block_number{chain=""} 1.4861373e+07
zetaclient_last_scanned_block_number{chain="btc_testnet"} 2.903149e+06
zetaclient_last_scanned_block_number{chain="solana_devnet"} 3.23089893e+08

^Above is all that is emitted
Environment (please complete the following information):

  • OS
  • Version used
@morde08 morde08 added the bug Something isn't working label Sep 4, 2024
@gartnera
Copy link
Member

gartnera commented Sep 5, 2024

Root cause seems to be #2568

This started injecting the chain.Chain{} that is stored on disk in zetaclient config.json rather than using the on chain info. We should be using the chain.RawChain() like we do in other chains.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants