RelaySetsEngine constructor

RelaySetsEngine({
  1. required RelayManager relayManager,
  2. required CacheManager cacheManager,
  3. required List<String>? bootstrapRelays,
  4. GlobalState? globalState,
})

engine that pre-calculates relay sets for gossip

Implementation

RelaySetsEngine({
  required RelayManager relayManager,
  required CacheManager cacheManager,
  required List<String>? bootstrapRelays,
  GlobalState? globalState,
})  : _cacheManager = cacheManager,
      _relayManager = relayManager,
      _bootstrapRelays = bootstrapRelays ?? DEFAULT_BOOTSTRAP_RELAYS {
  _globalState = globalState ?? GlobalState();
}