mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-11 15:07:46 +00:00
feat: adding default group handling to frontend viewmodel
This commit is contained in:
@@ -25,13 +25,19 @@ class SwarmAPI private constructor(private val database: LokiAPIDatabaseProtocol
|
||||
|
||||
companion object {
|
||||
|
||||
private const val useTestnet = true
|
||||
|
||||
// use port 4433 if API level can handle network security config and enforce pinned certificates
|
||||
private val seedPort = if (Build.VERSION.SDK_INT < Build.VERSION_CODES.N) 443 else 4433
|
||||
private val seedNodePool: Set<String> = setOf(
|
||||
"https://storage.seed1.loki.network:$seedPort",
|
||||
"https://storage.seed3.loki.network:$seedPort",
|
||||
"https://public.loki.foundation:$seedPort"
|
||||
)
|
||||
private val seedNodePool: Set<String> = if (useTestnet) {
|
||||
setOf("http://public.loki.foundation:38157")
|
||||
} else {
|
||||
setOf(
|
||||
"https://storage.seed1.loki.network:$seedPort",
|
||||
"https://storage.seed3.loki.network:$seedPort",
|
||||
"https://public.loki.foundation:$seedPort"
|
||||
)
|
||||
}
|
||||
|
||||
// region Settings
|
||||
private val minimumSnodePoolCount = 64
|
||||
|
Reference in New Issue
Block a user