From add6989289f5db47d27391547d35cb524dfee57e Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Sat, 5 Dec 2020 02:13:15 +0000 Subject: [PATCH] Report highest_confirmed_root and _slot in commitment metric (#13964) (#13968) (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 6e71105048..333602b821 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,