fromAddrInfo static method
Creates a PeerRecord from an AddrInfo struct. The returned record will have a timestamp-based sequence number.
Implementation
static Future<PeerRecord> fromAddrInfo(AddrInfo info) async {
return PeerRecord(
peerId: info.id,
addrs: info.addrs,
seq: await _timestampSeq(),
);
}