RelaySetsEngine constructor

RelaySetsEngine({
  1. required RelayManager relayManager,
  2. required CacheManager cacheManager,
  3. GlobalState? globalState,
})

engine that pre-calculates relay sets for gossip

Implementation

RelaySetsEngine({
  required RelayManager relayManager,
  required CacheManager cacheManager,
  GlobalState? globalState,
})  : _cacheManager = cacheManager,
      _relayManager = relayManager {
  _globalState = globalState ?? GlobalState();
  _relayManager.connect(urls: _relayManager.bootstrapRelays);
}