From 218e04d80dbe17e41baaf370451e333fcdc072a3 Mon Sep 17 00:00:00 2001 From: Matt Hess Date: Thu, 19 Feb 2026 02:42:48 +0000 Subject: [PATCH] retry unverified blocks after get_miner_data RPC --- src/p2pool.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/p2pool.cpp b/src/p2pool.cpp index df0ff15..ddf8eeb 100644 --- a/src/p2pool.cpp +++ b/src/p2pool.cpp @@ -1939,6 +1939,12 @@ void p2pool::parse_get_miner_data_rpc(const char* data, size_t size) } handle_miner_data(minerData); + + // Retry any unverified sidechain blocks now that new mainchain difficulty data is available. + // The ZMQ path does this at p2pool.cpp:692; the RPC path needs it too so blocks waiting on + // the current mining height's difficulty don't stall until the next ZMQ event fires. + m_sideChain->retry_unverified_blocks(); + if (m_serversStarted.load() == 0) { download_block_headers1(minerData.height); }