Chainflow / solana-mission-control

MIT License
29 stars 19 forks source link

Add New Metric for Total number of slots assigned to validator #14

Open garceri opened 2 years ago

garceri commented 2 years ago

Would it be possible to export a new metric containing the total number of leader slots assigned to the validator for the current epoch ? It would be also useful to know the next-assigned slot.

garceri commented 2 years ago

The code seems to be there at https://github.com/Chainflow/solana-mission-control/blob/main/monitor/leader_slots.go but it's incomplete and not used anywhere else. To be specific, the call to GetLeaderSchedule RPC API is incomplete and needs to have the validator private key passed to it.

cfl0ws commented 2 years ago

@NagaTulasi could you please have a look at this?