toProtobuf method
ToProtobuf returns the equivalent Protocol Buffer struct object of a PeerRecord.
Implementation
pb.PeerRecord toProtobuf() {
return pb.PeerRecord(
peerId: peerId.toBytes(),
addresses: _addrsToProtobuf(addrs),
seq: Int64(seq),
);
}