mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-07 03:16:45 +01:00
API State Metrics
This commit is contained in:
@@ -130,11 +130,11 @@ func (a *API) GetNextForgers(lastBlock common.Block, currentSlot, lastClosedSlot
|
||||
|
||||
// UpdateMetrics update Status.Metrics information
|
||||
func (a *API) UpdateMetrics() error {
|
||||
metrics, err := a.h.GetMetrics()
|
||||
metrics, err := a.h.GetMetrics(a.status.Network.LastBatch.BatchNum)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
a.status.Metrics = metrics
|
||||
a.status.Metrics = *metrics
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user