From b410c57f662723188f9a7186746a1c88246ddc24 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Sat, 5 Dec 2020 02:22:30 +0000 Subject: [PATCH] Report highest_confirmed_root and _slot in commitment metric (#13964) (#13967) (cherry picked from commit ca35bb3ac88ab5484803b83c1eb90d3f8117fdb7) Co-authored-by: Tyera Eulberg --- core/src/commitment_service.rs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/core/src/commitment_service.rs b/core/src/commitment_service.rs index 7742c7e1aa..0b9c09ee96 100644 --- a/core/src/commitment_service.rs +++ b/core/src/commitment_service.rs @@ -113,7 +113,17 @@ impl AggregateCommitmentService { "aggregate-commitment-ms", aggregate_commitment_time.as_ms() as i64, i64 - ) + ), + ( + "highest-confirmed-root", + update_commitment_slots.highest_confirmed_root as i64, + i64 + ), + ( + "highest-confirmed-slot", + update_commitment_slots.highest_confirmed_slot as i64, + i64 + ), ); // Triggers rpc_subscription notifications as soon as new commitment data is available,