Skip to content

Commit 904420b

Browse files
authored
Fix CDKGSessionHandler thread names (#3896)
Some compilers seems to have an issue with this implicit conversion producing garbage instead of numbers.
1 parent fade3c4 commit 904420b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/llmq/quorums_dkgsessionhandler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ void CDKGSessionHandler::StartThread()
142142
throw std::runtime_error("Tried to start an already started CDKGSessionHandler thread.");
143143
}
144144

145-
std::string threadName = strprintf("q-phase-%d", params.type);
145+
std::string threadName = strprintf("q-phase-%d", (uint8_t)params.type);
146146
phaseHandlerThread = std::thread(&TraceThread<std::function<void()> >, threadName, std::function<void()>(std::bind(&CDKGSessionHandler::PhaseHandlerThread, this)));
147147
}
148148

0 commit comments

Comments
 (0)