NetworkAddress constructor

NetworkAddress({
  1. int timestamp = 0,
  2. required int services,
  3. required List<int> ip,
  4. required int port,
})

Implementation

NetworkAddress({
  this.timestamp = 0,
  required this.services,
  required this.ip,
  required this.port,
}) {
  if (ip.length != 16) {
    throw ArgumentError('IP address must be 16 bytes');
  }
}