mirror of
https://github.com/status-im/nim-dagger.git
synced 2025-01-30 16:36:26 +00:00
caed3c07a3
* sends wantBlock to peers with block. wantHave to everyone else * Cleanup cheapestPeer. Fixes test for peers lists * Fixes issue where peerWants are only stored for type wantBlock. * Review comments by Dmitriy * consistent logging of addresses * prevents duplicate scheduling. Fixes cancellation * fast * Marks cancel-presence situation with todo comment. * fixtest: testsales enable logging * Review by Dmitriy: Remember peerWants only if we don't have them. * rework `wantListHandler` handling --------- Co-authored-by: Dmitriy Ryajov <dryajov@gmail.com>