From 1069d1c06652ec71ca574c450c9d8e5e12bbb28a Mon Sep 17 00:00:00 2001 From: SChernykh Date: Mon, 21 Aug 2023 11:20:50 +0200 Subject: [PATCH] Fixed cppcheck error --- src/side_chain.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/side_chain.cpp b/src/side_chain.cpp index baffa36..838ea0a 100644 --- a/src/side_chain.cpp +++ b/src/side_chain.cpp @@ -168,7 +168,8 @@ SideChain::SideChain(p2pool* pool, NetworkType type, const char* pool_name) // Hide most consensus ID bytes, we only want it on screen to show that we're on the right sidechain memset(buf + 8, '*', HASH_SIZE * 2 - 16); - m_consensusIdDisplayStr.assign(buf); + m_consensusIdDisplayStr = buf; + LOGINFO(1, "consensus ID = " << log::LightCyan() << m_consensusIdDisplayStr.c_str()); memcpy(m_consensusHash.h, m_consensusId.data(), HASH_SIZE);