Fixed cppcheck error

This commit is contained in:
SChernykh 2024-01-31 20:00:55 +01:00
parent aacee86563
commit 8a2a9a99a9

View file

@ -283,7 +283,7 @@ void BlockTemplate::update(const MinerData& data, const Mempool& mempool, const
if (shares) {
const MinerShare* src = &s[0];
std::pair<hash, hash>* dst = shares;
std::pair<hash, hash>* e = shares + N;
const std::pair<hash, hash>* e = shares + N;
for (; dst < e; ++src, ++dst) {
const Wallet* w = src->m_wallet;