retry unverified blocks after get_miner_data RPC
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user