diff --git a/src/block_template.cpp b/src/block_template.cpp index abf8c5a..c7c4629 100644 --- a/src/block_template.cpp +++ b/src/block_template.cpp @@ -286,7 +286,7 @@ void BlockTemplate::update(const MinerData& data, const Mempool& mempool, const if (shares) { const MinerShare* src = &s[0]; std::pair* dst = shares; - std::pair* e = shares + N; + const std::pair* e = shares + N; for (; dst < e; ++src, ++dst) { const Wallet* w = src->m_wallet;