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

feat(metrics): add UTXO set size to base node metrics #3932

Conversation

sdbondi
Copy link
Member

@sdbondi sdbondi commented Mar 18, 2022

Description

  • adds tari_base_node::blockchain::utxo_set_size
  • splits tari_base_node::blockchain::target_difficulty into target_difficulty_sha and target_difficulty_monero
  • changes BlockchainDb::utxo_count to return the number of UTXOs in the unspent set, rather than the number of outputs that were ever stored (differs depending on pruned height).
  • adds peer list size metric

Motivation and Context

Monitor the UTXO set size and independent PoW algos.
fix: utco_count was meant to return the current UTXO set size

How Has This Been Tested?

Local prometheus

@sdbondi sdbondi force-pushed the core-base-node-metrics-improvements branch 4 times, most recently from 82d1d80 to c98a8c7 Compare March 21, 2022 08:01
@sdbondi sdbondi force-pushed the core-base-node-metrics-improvements branch from c98a8c7 to 23d44b8 Compare March 21, 2022 08:08
Copy link
Contributor

@delta1 delta1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@aviator-app aviator-app bot merged commit 08ecabc into tari-project:development Mar 22, 2022
@sdbondi sdbondi deleted the core-base-node-metrics-improvements branch March 22, 2022 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants