From 4e0c82085d27bab8f550318d3d1cc8954d1617ad 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 5f055566ef5d8e..3aff2a439a0011 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 fdc12c79b3281a..f33f44f6ea0b5b 100644 --- a/src/logging.h +++ b/src/logging.h @@ -71,6 +71,7 @@ namespace BCLog { TXRECONCILIATION = (CategoryMask{1} << 26), SCAN = (CategoryMask{1} << 27), TXPACKAGES = (CategoryMask{1} << 28), + SV2 = (CategoryMask{1} << 29), ALL = ~NONE, }; enum class Level {