Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: do not add peers to routing table during RPC handling (#2866)
This can cause a race condition where two peers try to bootstrap to each other, then fail to add the other to the routing table because they wait for the other to respond to a ping first. It also fixes a smaller bug whereby we'd try to add a peer to the routing table after they send us an RPC message but they are a DHT client - they'd not respond to the ping we send before adding them so it's a waste of resources.
- Loading branch information