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