1
0

qt: expose swaps to address as Submarine Payments

Exposes reverse submarine swaps to an external/specific address in the
TxEditor gui as "Submarine Payments". The user can enter a onchain
address in the Send Tab and then pay it from the lightning balance in
the send tab by enabling the Submarine Payments option in the TxEditor
dialog menu and switching to the Submarine Payment tab in the Tab bar.
This commit is contained in:
f321x
2025-11-07 10:24:05 +01:00
parent a0455f8382
commit 8a70fdcb81
7 changed files with 501 additions and 39 deletions

View File

@@ -688,6 +688,13 @@ class SimpleConfig(Logger):
short_desc=lambda: _('Send change to Lightning'),
long_desc=lambda: _('If possible, send the change of this transaction to your channels, with a submarine swap'),
)
WALLET_ENABLE_SUBMARINE_PAYMENTS = ConfigVar(
'enable_submarine_payments', default=False, type_=bool,
short_desc=lambda: _('Submarine Payments'),
long_desc=lambda: _('Send onchain payments directly from your Lightning balance with a '
'submarine swap. This allows you to do onchain transactions even if your entire '
'wallet balance is inside Lightning channels.')
)
WALLET_FREEZE_REUSED_ADDRESS_UTXOS = ConfigVar(
'wallet_freeze_reused_address_utxos', default=False, type_=bool,
short_desc=lambda: _('Avoid spending from used addresses'),