Skip to content

Commit c426c98

Browse files
committed
Merge branch 'master' into mainnet
2 parents b6c14c6 + 7439267 commit c426c98

File tree

7 files changed

+12
-14
lines changed

7 files changed

+12
-14
lines changed

phoenix-android/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ android {
2525
applicationId = "fr.acinq.phoenix.mainnet"
2626
minSdk = 26
2727
targetSdk = 34
28-
versionCode = 96
29-
versionName = "2.4.3"
28+
versionCode = 97
29+
versionName = gitCommitHash()
3030
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
3131
resourceConfigurations.addAll(listOf("en", "fr", "de", "es", "b+es+419", "cs", "pt-rBR", "sk", "vi", "sw"))
3232
}

phoenix-android/src/main/kotlin/fr/acinq/phoenix/android/AppView.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ fun AppView(
406406
AboutView()
407407
}
408408
composable("${Screen.PaymentSettings.route}?showAuthSchemeDialog={showAuthSchemeDialog}", arguments = listOf(
409-
navArgument("showAuthSchemeDialog") { type = NavType.BoolType }
409+
navArgument("showAuthSchemeDialog") { type = NavType.BoolType ; defaultValue = false }
410410
)) {
411411
val showAuthSchemeDialog = it.arguments?.getBoolean("showAuthSchemeDialog") ?: false
412412
PaymentSettingsView(initialShowLnurlAuthSchemeDialog = showAuthSchemeDialog)

phoenix-android/src/main/kotlin/fr/acinq/phoenix/android/home/HomeBalance.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ private fun OnChainBalance(
185185
OnChainBalanceEntry(
186186
label = stringResource(id = R.string.home_swapin_ready_title),
187187
icon = if (expiringSoon) R.drawable.ic_alert_triangle else R.drawable.ic_sleep,
188-
amount = fundsBeingConfirmed,
188+
amount = fundsConfirmedNotLocked.toMilliSatoshi(),
189189
description = {
190190
Column {
191191
Text(

phoenix-android/src/main/kotlin/fr/acinq/phoenix/android/services/BootReceiver.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ class BootReceiver : BroadcastReceiver() {
2727
override fun onReceive(context: Context, intent: Intent) {
2828
if (Intent.ACTION_BOOT_COMPLETED == intent.action) {
2929
ChannelsWatcher.schedule(context)
30-
DailyConnect.schedule(context)
3130
InflightPaymentsWatcher.scheduleOnce(context)
3231
}
3332
}

phoenix-android/src/main/kotlin/fr/acinq/phoenix/android/services/NodeService.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,6 @@ class NodeService : Service() {
232232
log.info("starting node from service state=${_state.value?.name} with checkLegacyChannels=$requestCheckLegacyChannels")
233233
doStartBusiness(decryptedMnemonics, requestCheckLegacyChannels)
234234
ChannelsWatcher.schedule(applicationContext)
235-
DailyConnect.schedule(applicationContext)
236235
ContactsPhotoCleaner.scheduleASAP(applicationContext)
237236
_state.postValue(NodeServiceState.Running)
238237
}

phoenix-legacy/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ android {
3030
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
3131
}
3232
buildTypes {
33-
val libCode = 96
33+
val libCode = 97
3434
getByName("debug") {
3535
resValue("string", "CHAIN", chain)
3636
buildConfigField("String", "CHAIN", chain)

phoenix-legacy/src/main/kotlin/fr/acinq/phoenix/legacy/main/MigrationFragmentDialog.kt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ class MigrationDialogViewModel : ViewModel() {
289289
state.value = MigrationScreenState.Complete(swapInAddress, channelsPublicationStatusMap.keys)
290290

291291
// pause then update preferences to switch to the new app
292-
delay(3_000)
292+
delay(2_000)
293293
LegacyPrefsDatastore.savePrefsMigrationExpected(context, true)
294294
LegacyPrefsDatastore.saveDataMigrationExpected(context, true)
295295
LegacyPrefsDatastore.saveHasMigratedFromLegacy(context, true)
@@ -304,12 +304,12 @@ class MigrationDialogViewModel : ViewModel() {
304304
return channels.any {
305305
when (val data = it.data()) {
306306
is DATA_CLOSING -> {
307-
data.remoteCommitPublished().isDefined
308-
|| !data.revokedCommitPublished().isEmpty
309-
|| !data.customRemoteCommitPublished().isEmpty
310-
|| data.futureRemoteCommitPublished().isDefined
311-
|| data.localCommitPublished().isDefined
312-
|| data.nextRemoteCommitPublished().isDefined
307+
(data.remoteCommitPublished().nonEmpty() && data.remoteCommitPublished().get().irrevocablySpent().isEmpty) // potentially a remote close but remote commit is not confirmed
308+
|| data.revokedCommitPublished().nonEmpty()
309+
|| data.customRemoteCommitPublished().nonEmpty()
310+
|| data.futureRemoteCommitPublished().nonEmpty()
311+
|| data.localCommitPublished().nonEmpty()
312+
|| data.nextRemoteCommitPublished().nonEmpty()
313313
}
314314
else -> false
315315
}

0 commit comments

Comments
 (0)