Files
wownero/src
j-bermanandjwinterm 06fed93f74 p2p: fix race causing dropped connections during sync
Without this commit:
1) read height from DB
2) add block to chain in separate thread
3) read chain for block id's and request them from peer
4) ERR in handle_response_chain_entry, peer's first block is the
one that was added to the chain, which has block idx=height from
step 1.

This commit reads the chain for height and highest block id's
in one go while holding the m_blockchain_lock to avoid the race.

(cherry picked from commit d8d3cf97300480b9d3942c667978dd4860b76feb)
2026-05-05 18:19:53 -04:00
..
2025-09-19 21:01:45 +03:00
2025-09-19 21:01:45 +03:00
2025-09-19 21:01:46 +03:00
2025-09-19 21:01:46 +03:00
2025-09-19 21:01:45 +03:00
2025-09-19 21:01:42 +03:00
2025-09-19 21:01:45 +03:00
2025-09-19 21:01:45 +03:00
2025-09-19 21:01:45 +03:00
2026-05-05 18:19:53 -04:00
2025-09-19 21:01:43 +03:00
2025-09-19 21:01:45 +03:00
2025-09-19 21:01:45 +03:00
2024-10-09 16:48:34 -04:00
2025-09-19 21:01:43 +03:00
2022-03-04 06:59:20 +01:00
2025-09-19 21:01:43 +03:00
2025-09-19 21:01:43 +03:00
2026-05-05 18:19:53 -04:00
2022-03-04 06:59:20 +01:00
2025-09-19 21:01:45 +03:00
2025-09-19 21:01:45 +03:00
…