From 334e4b958d6dbfa8d1e87fc377b3a63a52fd5333 Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Wed, 23 Dec 2020 12:31:03 +0300 Subject: [PATCH] Fix CDKGSessionHandler thread names Some compilers seems to have an issue with this implicit conversion producing garbage instead of numbers. --- src/llmq/quorums_dkgsessionhandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/llmq/quorums_dkgsessionhandler.cpp b/src/llmq/quorums_dkgsessionhandler.cpp index 7f6a0d9277054..f9a5ed6f44212 100644 --- a/src/llmq/quorums_dkgsessionhandler.cpp +++ b/src/llmq/quorums_dkgsessionhandler.cpp @@ -142,7 +142,7 @@ void CDKGSessionHandler::StartThread() throw std::runtime_error("Tried to start an already started CDKGSessionHandler thread."); } - std::string threadName = strprintf("q-phase-%d", params.type); + std::string threadName = strprintf("q-phase-%d", (uint8_t)params.type); phaseHandlerThread = std::thread(&TraceThread >, threadName, std::function(std::bind(&CDKGSessionHandler::PhaseHandlerThread, this))); }