Refactors the circuit relay transport to behave like other transports
Specify the addresses to listen on in the addresses.listen config
Remove the discoverRelays option
Remove the transport manager listen call to just listen on configured addresses
Emit the listen event when listen addresses change like other transports
This fixes the instances where we miss relay address updates and the corresponding self:peer:update event never fires.
BREAKING CHANGE: The discoverRelays option has been removed, instead add one or more instances of "/p2p-circuit" to the libp2p config under the addresses.listen key
Change checklist
[x] I have performed a self-review of my own code
[x] I have made corresponding changes to the documentation if necessary (this includes comments as well)
[x] I have added tests that prove my fix is effective or that my feature works
Refactors the circuit relay transport to behave like other transports
addresses.listen
configdiscoverRelays
optionlisten
event when listen addresses change like other transportsThis fixes the instances where we miss relay address updates and the corresponding
self:peer:update
event never fires.BREAKING CHANGE: The
discoverRelays
option has been removed, instead add one or more instances of"/p2p-circuit"
to the libp2p config under theaddresses.listen
keyChange checklist