From 6be959e6184482939554746a0ac475f7e7ecc338 Mon Sep 17 00:00:00 2001 From: Sjors Provoost Date: Thu, 30 Nov 2023 13:58:48 +0100 Subject: [PATCH] Add sv2 log category for Stratum v2 --- src/logging.cpp | 1 + src/logging.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/logging.cpp b/src/logging.cpp index 9a54a12b426e5..92dcce42f3e6e 100644 --- a/src/logging.cpp +++ b/src/logging.cpp @@ -198,6 +198,7 @@ static const std::map> LOG_CATEGORIES_ {"blockstorage", BCLog::BLOCKSTORAGE}, {"txreconciliation", BCLog::TXRECONCILIATION}, {"scan", BCLog::SCAN}, + {"sv2", BCLog::SV2}, {"txpackages", BCLog::TXPACKAGES}, }; diff --git a/src/logging.h b/src/logging.h index 2ff58979cb3d8..420697a978a2c 100644 --- a/src/logging.h +++ b/src/logging.h @@ -70,6 +70,7 @@ namespace BCLog { TXRECONCILIATION = (1 << 26), SCAN = (1 << 27), TXPACKAGES = (1 << 28), + SV2 = (1 << 30), ALL = ~(uint32_t)0, }; enum class Level {