mirror of
https://github.com/permissionlesstech/bitchat-android.git
synced 2026-07-25 12:25:20 +00:00
Refactors cleanup (#372)
* cleanup peermanager * cleanup geohash code * direct connections fix * pow display * track disconnects too * display pow only if enabled * display pow only if enabled * direct connection tracking
This commit is contained in:
@@ -16,8 +16,8 @@ object PoWPreferenceManager {
|
||||
private const val KEY_POW_DIFFICULTY = "pow_difficulty"
|
||||
|
||||
// Default values
|
||||
private const val DEFAULT_POW_ENABLED = true
|
||||
private const val DEFAULT_POW_DIFFICULTY = 10 // Reasonable default for geohash spam prevention
|
||||
private const val DEFAULT_POW_ENABLED = false
|
||||
private const val DEFAULT_POW_DIFFICULTY = 16 // Reasonable default for geohash spam prevention
|
||||
|
||||
// State flows for reactive UI
|
||||
private val _powEnabled = MutableStateFlow(DEFAULT_POW_ENABLED)
|
||||
|
||||
Reference in New Issue
Block a user