mirror of
https://github.com/SChernykh/p2pool.git
synced 2024-11-17 00:07:47 +00:00
P2PServer: added missing time check
This commit is contained in:
parent
6cf1b13500
commit
07b460147e
1 changed files with 4 additions and 1 deletions
|
@ -1865,7 +1865,10 @@ bool P2PServer::P2PClient::on_block_response(const uint8_t* buf, uint32_t size)
|
|||
return false;
|
||||
}
|
||||
|
||||
server->send_peer_list_request(this, seconds_since_epoch());
|
||||
const uint64_t cur_time = seconds_since_epoch();
|
||||
if (cur_time >= m_nextOutgoingPeerListRequest) {
|
||||
server->send_peer_list_request(this, cur_time);
|
||||
}
|
||||
}
|
||||
|
||||
return handle_incoming_block_async(server->get_block());
|
||||
|
|
Loading…
Reference in a new issue