transport: Change AddressStore
to keep track of more dial addresses
#180
Labels
enhancement
New feature or request
AddressStore
to keep track of more dial addresses
#180
The address store keeps track of the addresses of peers, sorted internally by connection scores.
Once an address is inserted into the store, its score can never change.
We are currently losing track of dialed addresses if we already have a dial inflight:
fn dial_addresses(address: Multiaddr)
helps us learn about a peer multiaddressDialing
Connected
orOpening
Instead, we could keep track of the address:
A few other thoughts to look over:
Here the store returns a sorted by score list of addresses. We collect them to a hashmap, which when iterated doesn't preserve the order of elements.
litep2p/src/transport/manager/mod.rs
Lines 453 to 457 in 443f05c
The following should be changed as it is redundant
litep2p/src/transport/manager/handle.rs
Lines 194 to 196 in 443f05c
litep2p/src/transport/manager/address.rs
Lines 204 to 209 in 443f05c
Tasks
The text was updated successfully, but these errors were encountered: