From d4a3bc0e205231c088673d3dd92d37d8d5f94058 Mon Sep 17 00:00:00 2001 From: SChernykh <15806605+SChernykh@users.noreply.github.com> Date: Sun, 25 Feb 2024 00:48:51 +0100 Subject: [PATCH] Fixed cppcheck errors --- src/merge_mining_client_json_rpc.h | 2 +- src/merge_mining_client_tari.cpp | 6 +++++- src/merge_mining_client_tari.h | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/merge_mining_client_json_rpc.h b/src/merge_mining_client_json_rpc.h index 206759f..cbe4351 100644 --- a/src/merge_mining_client_json_rpc.h +++ b/src/merge_mining_client_json_rpc.h @@ -27,7 +27,7 @@ class MergeMiningClientJSON_RPC : public IMergeMiningClient { public: MergeMiningClientJSON_RPC(p2pool* pool, const std::string& host, const std::string& wallet); - ~MergeMiningClientJSON_RPC(); + ~MergeMiningClientJSON_RPC() override; bool get_params(ChainParameters& out_params) const override; void submit_solution(const std::vector& blob, const std::vector& merkle_proof) override; diff --git a/src/merge_mining_client_tari.cpp b/src/merge_mining_client_tari.cpp index 4a7157f..ec1677d 100644 --- a/src/merge_mining_client_tari.cpp +++ b/src/merge_mining_client_tari.cpp @@ -185,7 +185,11 @@ void MergeMiningClientTari::run() } } - LOGINFO(6, "Tari height = " << response2.block().header().height()); + LOGINFO(6, "Tari block template: height = " << response.new_block_template().header().height() + << ", diff = " << response.miner_data().target_difficulty() + << ", reward = " << response.miner_data().reward() + << ", fees = " << response.miner_data().total_fees() + ); const int64_t timeout = std::max(500'000'000 - duration_cast(high_resolution_clock::now() - t1).count(), 1'000'000); diff --git a/src/merge_mining_client_tari.h b/src/merge_mining_client_tari.h index 752a9d6..4dd6e63 100644 --- a/src/merge_mining_client_tari.h +++ b/src/merge_mining_client_tari.h @@ -28,7 +28,7 @@ class MergeMiningClientTari : public IMergeMiningClient, public nocopy_nomove { public: MergeMiningClientTari(p2pool* pool, std::string host, const std::string& wallet); - ~MergeMiningClientTari(); + ~MergeMiningClientTari() override; bool get_params(ChainParameters& out_params) const override; void submit_solution(const std::vector& blob, const std::vector& merkle_proof) override;