From 02a66250a47823b4e1acae8a94510717908910d3 Mon Sep 17 00:00:00 2001 From: kamilsa Date: Mon, 30 Dec 2024 16:40:02 +0500 Subject: [PATCH] Fix parachain validator metric (#2328) --- core/parachain/validator/impl/parachain_processor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/parachain/validator/impl/parachain_processor.cpp b/core/parachain/validator/impl/parachain_processor.cpp index d657b74234..f5f7080c96 100644 --- a/core/parachain/validator/impl/parachain_processor.cpp +++ b/core/parachain/validator/impl/parachain_processor.cpp @@ -462,8 +462,9 @@ namespace kagome::parachain { if (!validator) { SL_TRACE(logger_, "Not a parachain validator, or no para keys."); + } else { + is_parachain_validator = true; } - is_parachain_validator = true; if (!session_info) { return Error::NO_SESSION_INFO;