addAddrs abstract method

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

AddAddrs gives this AddrBook addresses to use, with a given ttl (time-to-live), after which the address is no longer valid. If the manager has a longer TTL, the operation is a no-op for that address

Implementation

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