Skip to content

Commit

Permalink
Unlock utxos when peer is unavailable for splice (#564)
Browse files Browse the repository at this point in the history
If the peer is offline when the swap-in job requests a splice-in, the
request will be ignored, but we weren't unlocking UTXOs, preventing any
further attempt.
  • Loading branch information
pm47 authored Dec 8, 2023
1 parent 10ebeea commit 9ac8fba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/commonMain/kotlin/fr/acinq/lightning/io/Peer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -1076,6 +1076,7 @@ class Peer(
} else {
// There are existing channels but not immediately usable (e.g. creating, disconnected), we don't do anything yet
logger.info { "ignoring channel request, existing channels are not ready for splice-in: ${channels.values.map { it::class.simpleName }}" }
swapInCommands.trySend(SwapInCommand.UnlockWalletInputs(cmd.walletInputs.map { it.outPoint }.toSet()))
}
}
}
Expand Down

0 comments on commit 9ac8fba

Please sign in to comment.