diff --git a/src/block_template.cpp b/src/block_template.cpp index 28d9b0f..235fb7e 100644 --- a/src/block_template.cpp +++ b/src/block_template.cpp @@ -283,7 +283,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;