From f59811198aa8aabd39b8ca6b7e56e79f299b37af Mon Sep 17 00:00:00 2001 From: kamilsa Date: Mon, 30 Dec 2024 15:04:45 +0500 Subject: [PATCH] Fix parachain validator metric --- 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;