nim-codex/codex/blockexchange/network
Dmitriy Ryajov 22c31046a7
Dont dial self (#633)
* don't dial self

* revert style changes

* filter out self on dial

* add helpers to `peerId` and `isSelf`

* don't fire up discovery eaguerly

* allow excluding multiple peers in sendWantHave

* revert style changes

* move self check to discovery.find

* readd eaguer dht lookup is required in some cases

* revert style changes

* misc

* drop peer first, before queueing a dht lookup

* moar style changes

* use isSelf
2023-11-27 10:25:53 -08:00
..
network.nim Dont dial self (#633) 2023-11-27 10:25:53 -08:00
networkpeer.nim Dont dial self (#633) 2023-11-27 10:25:53 -08:00