Skip to content

Conversation

@dvansari65
Copy link
Contributor

Added a new admin JSON-RPC method surfpool_status that returns runtime metrics (slot, epoch, slot_index, transactions_count, transactions_processed, uptime_ms, and WS subscription counts).

purpose: Provides immediate operator/developer visibility into simnet health without shell access or log parsing.

@MicaiahReid
Copy link
Member

Hi @dvansari65, thanks for the PR. To be honest, I'm not really seeing the value of this PR - are these metrics particularly useful to you for some reason? Most of them (slot, epoch, tx count, start time, etc) can already be retrieved by other RPCs - it seems like an unnecessary code maintenance burden to merge this.

Also, it looks like this PR also contains commit for comparing snapshots to mainnet - it's a good practice to have every new PR be based from main so that merging one PR doesn't also require merging another.

We do appreciate the contribution, but I'm not sure if this one is necessary - do you have a specific use-case?

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