Skip to content

Commit

Permalink
Upgrade to lightning-kmp 1.8.3 (#122)
Browse files Browse the repository at this point in the history
It mostly includes cltv fixes for on-the-fly funding ACINQ/lightning-kmp#714.

Also, the default invoice expiry for both bolt11/bolt12 invoices is now 24 hours.
  • Loading branch information
pm47 authored Oct 16, 2024
1 parent a3fe8f6 commit 8334b62
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/Versions.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
object Versions {
val kotlin = "1.9.23"
val lightningKmp = "1.8.2"
val lightningKmp = "1.8.3"
val sqlDelight = "2.0.1"
val okio = "3.8.0"
val clikt = "4.2.2"
Expand Down
4 changes: 2 additions & 2 deletions src/commonMain/kotlin/fr/acinq/lightning/bin/Api.kt
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ class Api(
description == null && descriptionHash != null -> Either.Right(descriptionHash)
else -> badRequest("Must provide either a description or descriptionHash")
}
val expirySeconds = formParameters.getOptionalLong("expirySeconds")
val invoice = peer.createInvoice(randomBytes32(), amount?.toMilliSatoshi(), eitherDesc, expirySeconds)
val expiry = formParameters.getOptionalLong("expirySeconds")?.seconds
val invoice = peer.createInvoice(randomBytes32(), amount?.toMilliSatoshi(), eitherDesc, expiry)
val externalId = formParameters["externalId"]
val webhookUrl = formParameters.getOptionalUrl("webhookUrl")
if (externalId != null || webhookUrl != null) {
Expand Down

0 comments on commit 8334b62

Please sign in to comment.