1
0
Commit Graph

18468 Commits

Author SHA1 Message Date
SomberNight
2600a3bc74 requirements: bump max aiorpcx
and bump pinned aiorpcx and electrum-aionostr
2025-05-08 14:31:11 +00:00
SomberNight
c75b10fe69 requirements: add upper bounds for electrum_ecc and electrum_aionostr 2025-05-08 13:33:16 +00:00
ThomasV
db271d9b7d Fix get_pending_swaps: use both funding and spending tx heights
Also, do not show closing warnings if we are offline.
2025-05-08 14:58:13 +02:00
ThomasV
2b68f65aac fix typo 2025-05-08 09:34:48 +02:00
ThomasV
061460611c Merge pull request #9795 from f321x/followup_tos_qt
followup: qt terms of use scrollbar and regtest mode
2025-05-07 19:33:05 +02:00
f321x
39901c8872 fix: enable Agree button if scrollbar is not visible 2025-05-07 17:33:19 +02:00
ThomasV
9a61640243 move question text 2025-05-07 17:23:33 +02:00
f321x
c54f75b31f don't show ToU in regtest mode 2025-05-07 17:19:30 +02:00
ThomasV
45c7180536 Merge pull request #9715 from f321x/warning_on_close
gui: Add option to show warnings on wallet close, add warning for swaps
2025-05-07 17:17:59 +02:00
f321x
913f5ec6d8 add option to show warnings on wallet close, add warning for ongoing submarine swap 2025-05-07 17:11:08 +02:00
SomberNight
151b64da84 wizard: "terms of use": add version number
follow-up https://github.com/spesmilo/electrum/pull/9794
2025-05-07 13:59:00 +00:00
ThomasV
5300088ef8 Merge pull request #9794 from f321x/terms_of_use_separate
qt: show terms of use as first window on setup
2025-05-07 14:03:34 +02:00
f321x
802c316edb qt: show terms of use as first window on setup 2025-05-07 14:02:40 +02:00
ThomasV
0d1b6aa432 nwc plugin: improve dialog layout 2025-05-07 12:10:20 +02:00
ThomasV
cec2089917 revealer plugin: do not add icon to status bar
timelock_recovery: move help button to the top
2025-05-07 09:33:08 +02:00
SomberNight
0e6f8282e2 Merge branch 'hook_transaction_dialog_address_menu': hww show addr opt
hardware wallets: add "show address on device" option also to tx dialog context menu
2025-05-06 18:32:59 +00:00
SomberNight
46924381ed follow-up prev: fix for multisig 2025-05-06 18:22:11 +00:00
ThomasV
b86be552e7 hardware wallets: show address on device also from tx dialog 2025-05-06 18:22:07 +00:00
SomberNight
4640384b91 Merge branch 202505_choiceitem': refactor qt.util.ChoiceWidget
This introduces util.ChoiceItem, which makes query_choice()
and ChoiceWidget better type-able and hence statically analysable.
2025-05-06 18:16:12 +00:00
SomberNight
42d810bc7d refactor qt.util.ChoiceWidget: rename arg to default_key 2025-05-06 18:12:42 +00:00
SomberNight
ba3783f998 refactor qt.util.ChoiceWidget: introduce ChoiceItem 2025-05-06 18:12:37 +00:00
SomberNight
ef49bb2109 hw plugins: fix DeviceMgr.select_device
regression from ChoiceWidget refactor

follow-up f7749d62aa
2025-05-06 18:11:10 +00:00
ThomasV
dfb7a8ab5a Merge pull request #9791 from f321x/structured_plugin_storage
plugins: structure plugin storage in wallet db and prune uninstalled plugins data
2025-05-06 13:18:29 +02:00
f321x
e80551192b plugins: structure plugin storage in wallet
store all plugin data by plugin name in a root dictionary `plugin_data`
inside the wallet db so that plugin data can get deleted again.
Prunes the data of plugins from the wallet db on wallet stop if the
plugin is not installed anymore.
2025-05-06 13:16:49 +02:00
ThomasV
a4d88e307b Merge pull request #9751 from spesmilo/txbatcher_without_password_in_memory
Txbatcher without password in memory
2025-05-06 13:06:03 +02:00
ThomasV
7bcc7fb0c4 txbatcher: do not require password in memory
- if password is needed, await future and request it from GUI
 - run asyncio task for each TxBatch, so that batches can
   request the password concurrently
2025-05-06 13:04:19 +02:00
ThomasV
07ba0e6329 Qt: do not require password in memory
- do not require full encryption
 - do not store password on startup
 - add lock/unlock functions to qt GUI
2025-05-06 13:04:18 +02:00
ThomasV
1c3268c2ff submarine_swaps: make callback async (follow-up previous commit) 2025-05-06 13:03:38 +02:00
ThomasV
5be646dfd2 call lnwatcher callbacks in asyncio thread
This partially reverts fbebe7de1a
lnwatcher.trigger_callbacks is called manually in commands.py
2025-05-06 12:37:00 +02:00
ThomasV
855aff7c44 lnwatcher: cleanup unused code 2025-05-06 12:37:00 +02:00
accumulator
d9d86f475f Merge pull request #9788 from f321x/fix_update_amount
fix: SendTab not updating amount after text input change
2025-05-06 12:16:24 +02:00
SomberNight
3a5815d854 build: fix locale/build_cleanlocale.sh for macos
fixes https://github.com/spesmilo/electrum/pull/9726/files#r2057787097 :
> The version of readlink installed on macOS does not support the -e flag:
> ```
> 💬 INFO:  preparing electrum-locale.
> readlink: illegal option -- e
> usage: readlink [-fn] [file ...]
> ```
>
> On a mac you can install a version of readlink that argbash expects:
> Using homebrew, `brew install coreutils` will install `greadlink` which supports the `-e` flag.

I don't think we actually need to resolve symlinks here.
There are already some examples of similar usage with realpath vs grealpath. Let's just do that.
2025-05-05 18:31:07 +00:00
ThomasV
e41cefae1a lnwatcher: call maybe_redeem even for already spent inputs
fixes #9789
2025-05-05 17:30:55 +02:00
SomberNight
c50aa7e777 exchange_rate: clear up confusion re type of ExchangeBase._history
follow-up 41c0558595
2025-05-05 15:01:11 +00:00
f321x
4e8db98d1b fix: SendTab not updating amount after text input change
When paying a 0 amount invoice, after clicking pay the entered amount
will get saved in
`PaymentIdentifier.boltPaymentIdentifier.bolt11.amount_msat`. However if
the user clicks cancel instead of pay, and then changes the amount,
amount_msat will not get updated, as it is not None anymore. If the user
clicks pay again, it will pay the previously entered wrong amount.
This checks the `LnAddr` amount instead of the `Invoice` amount.
2025-05-05 15:39:22 +02:00
ThomasV
f25ddbc8f9 Merge pull request #9787 from f321x/fix_exception_suggest_swap_to_send
fix: exception in suggest_swap_to_send due to missing method
2025-05-05 13:25:16 +02:00
f321x
396800be61 fix: exception in suggest_swap_to_send due to missing method
can_pay_onchain has been removed in commit 840243e but
suggest_swap_to_send was still calling it causing an exception.
2025-05-05 12:41:41 +02:00
ThomasV
09e333fead Qt: allow fixed fee policy in confirm_tx_dialog
Fixes #9662
2025-05-05 11:45:31 +02:00
ThomasV
5993f95282 Merge pull request #9777 from accumulator/nostr_relays_config_description
config: update description for nostr_relays
2025-05-04 11:25:24 +02:00
ThomasV
59a283a0cc Merge pull request #9778 from accumulator/qt_richlabel
plugins: coldcard: use RichLabel, org imports
2025-05-04 11:20:37 +02:00
ThomasV
1eb489b961 Qt: set main_window.need_update if new transaction is added 2025-05-04 11:13:03 +02:00
accumulator
79ac87f739 Merge pull request #9783 from f321x/add_revealer_infos
plugin: add help text to revealer plugin
2025-05-02 16:13:21 +02:00
Sander van Grieken
eda88b2972 lnaddr: fix outdated doc reference to lnworker._check_invoice
(and clean some imports/whitespace while we're at it)
2025-05-02 15:57:01 +02:00
f321x
31a9934e59 plugin: add help text to revealer plugin
there is no available documentation on what this plugin does or how it
works, also the concept isn't well known. By adding some information in
the form of a help box the user can understand the concept of what this
plugin does and how it is used.
2025-05-02 14:02:25 +02:00
accumulator
d8551990e4 Merge pull request #9773 from f321x/improve_relay_string_input
qt: validate and deduplicate relay config input in qt gui
2025-05-02 10:36:22 +02:00
f321x
ee7d2ee17d validate and deduplicate relay config input in qt gui
Adds validation and deduplication of the relay urls entered in the QT
settings dialog. This is supposed to prevent malformed or duplicated
relay entries.
Also resets the relays to the default value if no (valid) url
is entered. This prevents the user from getting stuck without relays
(otherwise the user would have to research for relay urls manually if
they don't know any).
2025-05-02 09:03:27 +02:00
accumulator
4b23ca1949 Merge pull request #9757 from accumulator/qml_nostr_servers_config
qml: add nostr relay config in NetworkOverview and add relay edit dialog
2025-05-01 14:11:38 +02:00
Sander van Grieken
7146e320f0 plugins: coldcard: use RichLabel, org imports
qt/util.py: introduce RichLabel, allows link select and open
2025-05-01 12:06:16 +02:00
accumulator
83ac15935a Merge pull request #9772 from f321x/fix_suggest_peer
fix: don't suggest onion peers for channel opening
2025-05-01 10:53:13 +02:00
accumulator
1ae12d967d Merge pull request #9775 from f321x/fix_block_exception_dialog
fix: blocked Exception_Window by setting modality
2025-05-01 10:46:51 +02:00