From 0488bdfefe92b2c9a924be9244c91fe472462aab Mon Sep 17 00:00:00 2001 From: Daniela Brozzoni Date: Wed, 11 Jun 2025 18:14:12 +0200 Subject: [PATCH] refactor: Remove unused parameter in ReportHeadersPresync MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Aurèle Oulès --- src/net_processing.cpp | 2 +- src/validation.cpp | 2 +- src/validation.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/net_processing.cpp b/src/net_processing.cpp index 7ab70cd63a3..578a7d715c9 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -4620,7 +4620,7 @@ void PeerManagerImpl::ProcessMessage(CNode& pfrom, const std::string& msg_type, if (it != m_headers_presync_stats.end()) stats = it->second; } if (stats.second) { - m_chainman.ReportHeadersPresync(stats.first, stats.second->first, stats.second->second); + m_chainman.ReportHeadersPresync(stats.second->first, stats.second->second); } } diff --git a/src/validation.cpp b/src/validation.cpp index 99f516ccf96..8846011032d 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -4380,7 +4380,7 @@ bool ChainstateManager::ProcessNewBlockHeaders(std::span hea return true; } -void ChainstateManager::ReportHeadersPresync(const arith_uint256& work, int64_t height, int64_t timestamp) +void ChainstateManager::ReportHeadersPresync(int64_t height, int64_t timestamp) { AssertLockNotHeld(GetMutex()); { diff --git a/src/validation.h b/src/validation.h index daf954c820e..57baa05f95f 100644 --- a/src/validation.h +++ b/src/validation.h @@ -1286,7 +1286,7 @@ public: * headers are not yet fed to validation during that time, but validation is (for now) * responsible for logging and signalling through NotifyHeaderTip, so it needs this * information. */ - void ReportHeadersPresync(const arith_uint256& work, int64_t height, int64_t timestamp); + void ReportHeadersPresync(int64_t height, int64_t timestamp); //! When starting up, search the datadir for a chainstate based on a UTXO //! snapshot that is in the process of being validated.