RelaySetsEngine constructor
RelaySetsEngine({
- required RelayManager relayManager,
- required CacheManager cacheManager,
- 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);
}