From ca35bb3ac88ab5484803b83c1eb90d3f8117fdb7 Mon Sep 17 00:00:00 2001 From: Tyera Eulberg Date: Fri, 4 Dec 2020 17:50:00 -0700 Subject: [PATCH] Report highest_confirmed_root and _slot in commitment metric (#13964) --- 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,