PeerConfig constructor

const PeerConfig({
  1. Duration handshakeTimeout = const Duration(seconds: 10),
  2. Duration pingInterval = const Duration(minutes: 2),
  3. Duration pongTimeout = const Duration(seconds: 30),
  4. int maxUnhealthyScore = 10,
  5. int protocolVersion = 70016,
  6. String userAgent = '/spiffynode:0.1.0/',
  7. bool enablePingPong = true,
  8. int startHeight = 0,
})

Implementation

const PeerConfig({
  this.handshakeTimeout = const Duration(seconds: 10),
  this.pingInterval = const Duration(minutes: 2),
  this.pongTimeout = const Duration(seconds: 30),
  this.maxUnhealthyScore = 10,
  this.protocolVersion = 70016,
  this.userAgent = '/spiffynode:0.1.0/',
  this.enablePingPong = true,
  this.startHeight = 0,
});