Ben Bierens caed3c07a3
Fix sending of WantBlocks messages and tracking of peerWants (#1019)
* 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>
2025-01-09 22:44:02 +00:00
..
2022-01-10 09:32:56 -06:00
2024-11-25 11:23:04 +00:00
2024-01-29 17:03:51 -03:00
2024-01-29 17:03:51 -03:00
2023-08-01 16:47:57 -07:00
2023-08-01 16:47:57 -07:00
2024-11-25 11:23:04 +00:00
2024-05-30 06:57:10 +00:00
2024-01-22 23:35:03 -08:00
2023-08-01 16:47:57 -07:00
2024-09-23 14:37:17 +00:00