setAddrs abstract method

Future<void> setAddrs(
  1. PeerId p,
  2. List<MultiAddr> addrs,
  3. Duration ttl
)

SetAddrs sets the ttl on addresses. This clears any TTL there previously. This is used when we receive the best estimate of the validity of an address.

Implementation

Future<void> setAddrs(PeerId p, List<MultiAddr> addrs, Duration ttl);