From 9fd85942e00ba9f44c19f733af709ab64a50e154 Mon Sep 17 00:00:00 2001 From: SChernykh <15806605+SChernykh@users.noreply.github.com> Date: Wed, 22 May 2024 16:18:40 +0200 Subject: [PATCH] Fixed cppcheck error --- src/side_chain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/side_chain.cpp b/src/side_chain.cpp index 80e605b..4bbe5e5 100644 --- a/src/side_chain.cpp +++ b/src/side_chain.cpp @@ -1334,7 +1334,7 @@ void SideChain::verify_loop(PoolBlock* block) // PoW is already checked at this point std::vector blocks_to_verify(1, block); - PoolBlock* highest_block = nullptr; + const PoolBlock* highest_block = nullptr; while (!blocks_to_verify.empty()) { block = blocks_to_verify.back();