P2PServer: tweaked switching to the fastet peer when syncing

This commit is contained in:
SChernykh
2023-07-10 11:40:48 +02:00
parent 1219ed0dd6
commit e03e7d831e
2 changed files with 11 additions and 8 deletions

View File

@@ -116,7 +116,7 @@ public:
bool handle_incoming_block_async(const PoolBlock* block, uint64_t max_time_delta = 0);
void handle_incoming_block(p2pool* pool, PoolBlock& block, const uint32_t reset_counter, bool is_v6, const raw_ip& addr, std::vector<hash>& missing_blocks);
void post_handle_incoming_block(const uint32_t reset_counter, std::vector<hash>& missing_blocks);
void post_handle_incoming_block(const PoolBlock& block, const uint32_t reset_counter, std::vector<hash>& missing_blocks);
bool is_good() const { return m_handshakeComplete && !m_handshakeInvalid && (m_listenPort >= 0); }