Skip to content

Commit 19d6db0

Browse files
committed
feat: enable spending unconfirmed funds
1 parent 9e26b8f commit 19d6db0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

app/src/main/java/to/bitkit/repositories/WalletRepo.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ class WalletRepo @Inject constructor(
421421
val hash = paymentHash()
422422
if (hash != null) return@withContext hash
423423
val address = getOnchainAddress()
424-
return@withContext if (address.isEmpty()) null else address
424+
return@withContext address.ifEmpty { null }
425425
}
426426

427427
// Pre-activity metadata tag management

app/src/main/java/to/bitkit/services/LightningService.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ class LightningService @Inject constructor(
9393
trustedPeersNoReserve = trustedPeerNodeIds,
9494
perChannelReserveSats = 1u,
9595
),
96+
includeUntrustedPendingInSpendable = true,
9697
)
9798

9899
val builder = Builder.fromConfig(config).apply {

0 commit comments

Comments
 (0)