PeerConfig constructor
const
PeerConfig({
- Duration handshakeTimeout = const Duration(seconds: 10),
- Duration pingInterval = const Duration(minutes: 2),
- Duration pongTimeout = const Duration(seconds: 30),
- int maxUnhealthyScore = 10,
- int protocolVersion = 70016,
- String userAgent = '/spiffynode:0.1.0/',
- bool enablePingPong = true,
- 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,
});