Fixed cppcheck errors

This commit is contained in:
SChernykh 2023-11-26 09:52:24 +01:00
parent 602b9e2ae9
commit 8493dbc47b
2 changed files with 2 additions and 1 deletions

View file

@ -93,6 +93,7 @@ void generate_keys(hash& pub, hash& sec)
ge_p3_tobytes(pub.h, &point); ge_p3_tobytes(pub.h, &point);
} }
// cppcheck-suppress constParameterReference
void generate_keys_deterministic(hash& pub, hash& sec, const uint8_t* entropy, size_t len) void generate_keys_deterministic(hash& pub, hash& sec, const uint8_t* entropy, size_t len)
{ {
uint32_t counter = 0; uint32_t counter = 0;

View file

@ -375,7 +375,7 @@ bool StratumServer::on_submit(StratumClient* client, uint32_t id, const char* jo
} }
if (found) { if (found) {
BlockTemplate& block = m_pool->block_template(); const BlockTemplate& block = m_pool->block_template();
uint64_t height, sidechain_height; uint64_t height, sidechain_height;
difficulty_type mainchain_diff, sidechain_diff; difficulty_type mainchain_diff, sidechain_diff;