From 103a2cbd4f38af81b06f46b193a6c731bd417487 Mon Sep 17 00:00:00 2001 From: Felix Yan Date: Tue, 21 Nov 2023 09:15:03 +0200 Subject: [PATCH 1/2] Update Arch Linux package URL in README.md The old URL returns 404 now. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 41872a3..7d7caf2 100644 --- a/README.md +++ b/README.md @@ -244,7 +244,7 @@ cmake .. make -j$(nproc) ``` -### [Arch Linux](https://archlinux.org/packages/community/x86_64/p2pool/) +### [Arch Linux](https://archlinux.org/packages/extra/x86_64/p2pool/) ``` pacman -S p2pool From 8493dbc47b9c408a5baa3e0ecef0834b77ca0d49 Mon Sep 17 00:00:00 2001 From: SChernykh <15806605+SChernykh@users.noreply.github.com> Date: Sun, 26 Nov 2023 09:52:24 +0100 Subject: [PATCH 2/2] Fixed cppcheck errors --- src/crypto.cpp | 1 + src/stratum_server.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/crypto.cpp b/src/crypto.cpp index 7764eba..a66fb82 100644 --- a/src/crypto.cpp +++ b/src/crypto.cpp @@ -93,6 +93,7 @@ void generate_keys(hash& pub, hash& sec) ge_p3_tobytes(pub.h, &point); } +// cppcheck-suppress constParameterReference void generate_keys_deterministic(hash& pub, hash& sec, const uint8_t* entropy, size_t len) { uint32_t counter = 0; diff --git a/src/stratum_server.cpp b/src/stratum_server.cpp index e6828ec..aa9800e 100644 --- a/src/stratum_server.cpp +++ b/src/stratum_server.cpp @@ -375,7 +375,7 @@ bool StratumServer::on_submit(StratumClient* client, uint32_t id, const char* jo } if (found) { - BlockTemplate& block = m_pool->block_template(); + const BlockTemplate& block = m_pool->block_template(); uint64_t height, sidechain_height; difficulty_type mainchain_diff, sidechain_diff;