Skip to content

Commit 9ac8fba

Browse files
authored
Unlock utxos when peer is unavailable for splice (#564)
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.
1 parent 10ebeea commit 9ac8fba

File tree

1 file changed

+1
-0
lines changed
  • src/commonMain/kotlin/fr/acinq/lightning/io

1 file changed

+1
-0
lines changed

src/commonMain/kotlin/fr/acinq/lightning/io/Peer.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1076,6 +1076,7 @@ class Peer(
10761076
} else {
10771077
// There are existing channels but not immediately usable (e.g. creating, disconnected), we don't do anything yet
10781078
logger.info { "ignoring channel request, existing channels are not ready for splice-in: ${channels.values.map { it::class.simpleName }}" }
1079+
swapInCommands.trySend(SwapInCommand.UnlockWalletInputs(cmd.walletInputs.map { it.outPoint }.toSet()))
10791080
}
10801081
}
10811082
}

0 commit comments

Comments
 (0)