1
0
Commit Graph

16785 Commits

Author SHA1 Message Date
Sander van Grieken
b2a41b6363 qt: jade for new wizard 2023-09-20 14:34:31 +02:00
Sander van Grieken
902290ee8c qt: multisig checks with hardware cosigners 2023-09-20 14:34:31 +02:00
Sander van Grieken
d3a1cef9ba create ChoiceWidget, refactor ChoicesLayout to ChoiceWidget 2023-09-20 14:34:31 +02:00
Sander van Grieken
b7ed4c569b wip. trezor works for standard wallet, also for cosigners 2023-09-20 14:34:31 +02:00
Sander van Grieken
3c232d70d1 small fixes 2023-09-20 14:34:31 +02:00
Sander van Grieken
fd28c66670 qt: 2fa implement OTP check 2023-09-20 14:34:31 +02:00
Sander van Grieken
571d16314f qt: introduce electrum/gui/qt_common, implement remaining trustedcoin views,
unify most qml and qt wizard code for trustedcoin,
separate non-GUI trustedcoin wizard definition to trustedcoin.py
2023-09-20 14:34:31 +02:00
Sander van Grieken
0de6216560 qt: have_seed and create_seed support 2fa 2023-09-20 14:34:30 +02:00
Sander van Grieken
ac5ebb9204 qt: refactor please_wait layout to widget to better control UI, add in-page error view 2023-09-20 14:34:30 +02:00
Sander van Grieken
15773086e5 qt: initial trustedcoin wizard pages 2023-09-20 14:34:30 +02:00
Sander van Grieken
bcdacf3773 wizard: add passing of params in navmap to wizard pages 2023-09-20 14:34:30 +02:00
Sander van Grieken
c99f71aefc wizard: imports, flake 2023-09-20 14:34:30 +02:00
Sander van Grieken
a6aff1ec07 qml: check passphrase not empty when checked 2023-09-20 14:34:30 +02:00
Sander van Grieken
a6caa3ffe9 wizard: fix wizard_data instance not isolated between pages,
combine is_bip39_seed and is_slip39_seed into cosigner aware needs_derivation_path
add instance id logging to wizard.log_stack()
qt: add updated signal to SeedLayout
2023-09-20 14:34:30 +02:00
Sander van Grieken
c485753ffd wizard: rename bip39_refine to script_and_derivation 2023-09-20 14:34:30 +02:00
Sander van Grieken
0222c93228 wizard: add support for slip39 2023-09-20 14:34:30 +02:00
Sander van Grieken
d395b97e83 qt: add have_master_key gui, implement cosigners in have_seed and bip39_refine guis
fix adding data from accept handler
2023-09-20 14:34:30 +02:00
Sander van Grieken
e43b005047 qt: implement initial bip39 refine and account detect, restore from seed pages 2023-09-20 14:34:30 +02:00
Sander van Grieken
41cf7f920e qt: implement multisig and import addresses/keys pages 2023-09-20 14:34:30 +02:00
Sander van Grieken
4a12b285e4 qt: submit final state to wizard and return proper dialog result when finished 2023-09-20 14:34:30 +02:00
Sander van Grieken
2407fab178 wizard: also push final state on the stack 2023-09-20 14:34:30 +02:00
Sander van Grieken
ffbddb9208 wizard: implement confirm seed and wallet password pages
some styling improvements
2023-09-20 14:34:30 +02:00
Sander van Grieken
113d698e42 wizard: avoid importing from installwizard.py 2023-09-20 14:34:30 +02:00
Sander van Grieken
786eab9cfd wizard: cleanup, variable naming consistency, imports, invalid accept handler now raises 2023-09-20 14:34:30 +02:00
Sander van Grieken
39f34fd7d1 implement first batch of pages for wallet wizard 2023-09-20 14:34:30 +02:00
Sander van Grieken
1440eab5bf qt wizardcomponent receives qeabstractwizard instance 2023-09-20 14:34:30 +02:00
Sander van Grieken
d651220685 extract proxy and server widgets 2023-09-20 14:34:30 +02:00
Sander van Grieken
9e096fbf1e wizard: remove view from is_last_view call, it's never used 2023-09-20 14:34:30 +02:00
Sander van Grieken
8f0cb38af2 qt: add initial wizard classes for desktop client 2023-09-20 14:34:30 +02:00
ThomasV
d7beb109b8 lnworker: separate add_peer from _open_channel_coroutine 2023-09-19 09:45:56 +02:00
ThomasV
4d68025cca maybe_forward_htlc: detect invalid onion before temporary chan failures 2023-09-19 09:44:06 +02:00
accumulator
7439ecdb39 bip39: add likely script vs derivation path mistakes for BIP49 and BIP84 paths (#8615)
See e.g. https://bitcointalk.org/index.php?topic=5454270.0
2023-09-18 16:52:38 +00:00
Sander van Grieken
3e12d92a41 flake: remove whitespace 2023-09-18 18:03:31 +02:00
ThomasV
b0ff95d7c5 Merge pull request #8619 from SomberNight/202309_config_tooltips
config: move tooltips from Qt gui into configvars
2023-09-18 17:31:48 +02:00
ThomasV
1545f47b97 Merge pull request #8618 from accumulator/fix_swap_cancel_race
submarine swaps: register hold invoice early in wait_for_htlcs_and_br…
2023-09-18 17:05:40 +02:00
Sander van Grieken
8dbddedd30 submarine swaps: register hold invoice early in wait_for_htlcs_and_broadcast, so a SwapManager.cancel_normal_swap() does not race.
cancel_normal_swap unregisters the hold invoice, which can occur before register_hold_invoice in wait_for_htlcs_and_broadcast
if the network call has not returned yet.
2023-09-18 16:58:04 +02:00
Sander van Grieken
bbfe5225b6 qml: port cancel normal swap feature from desktop client 2023-09-18 16:13:32 +02:00
SomberNight
357ae985cc config: move tooltips from Qt gui into configvars 2023-09-18 13:54:48 +00:00
SomberNight
f58387eaa8 qt settings_dialog: rm unused coinchooser selection 2023-09-18 11:48:02 +00:00
ThomasV
cffbe44c07 lnworker: get_channel_by_short_id to use remote scid_alias
This is needed when forwarding payments
2023-09-17 11:12:23 +02:00
ThomasV
375f96f7fa remove lnworker.get_channel_by_scid (redundant) 2023-09-17 11:06:25 +02:00
ThomasV
6cd42faa68 QML: show onchain and offchain amounts for groups in txdetails 2023-09-16 15:42:16 +02:00
ThomasV
7eabbbc81f Move history grouping logic from qt GUI to wallet.get_full_history()
Tx groups are now rendered similarly on all GUIs.
2023-09-16 15:39:32 +02:00
ThomasV
c27e6de975 Merge pull request #8616 from SomberNight/202309_dont_sign_tx_with_dummy_addr
add sanity checks we don't sign tx including dummy addr
2023-09-16 15:02:36 +02:00
ThomasV
59aa7611dd add group_id to swap refund transactions, so that the GUI shows them as part of the swap tx group 2023-09-16 11:09:39 +02:00
ThomasV
ea79562b7a submarine swaps: remove expired swaps from the list, and log the reason for failing a swap. 2023-09-16 10:21:08 +02:00
SomberNight
4c63d8729b add sanity checks we don't sign tx including dummy addr
Somewhat a follow-up to 649ce979ab.

This adds some safety belts so we don't accidentally sign a tx that
contains a dummy address.
Specifically we check that tx does not contain output for dummy addr:
- in wallet.sign_transaction
- in network.broadcast_transaction

The second one is perhaps redundant, but I think it does not hurt.
2023-09-16 04:36:08 +00:00
SomberNight
956b455954 qt tx dlg: follow-up "send tx change to lightning"
lnworker is None if lightning is disabled.
follow-up 649ce979ab

```
 15.14 | E | gui.qt.exception_window.Exception_Hook | exception caught by crash reporter
Traceback (most recent call last):
  File "...\electrum\electrum\gui\qt\rate_limiter.py", line 231, in wrapper
    return RateLimiter.invoke(rate, ts_after, func, args, kwargs)
  File "...\electrum\electrum\gui\qt\rate_limiter.py", line 79, in invoke
    return rl._invoke(args, kwargs)
  File "...\electrum\electrum\gui\qt\rate_limiter.py", line 91, in _invoke
    return self._doIt()
  File "...\electrum\electrum\gui\qt\rate_limiter.py", line 120, in _doIt
    retval = self.func(*args, **kwargs) # and.. call the function. use latest invocation's args
  File "...\electrum\electrum\gui\qt\transaction_dialog.py", line 745, in _throttled_update
    self.update()
  File "...\electrum\electrum\gui\qt\transaction_dialog.py", line 750, in update
    self.io_widget.update(self.tx)
  File "...\electrum\electrum\gui\qt\transaction_dialog.py", line 243, in update
    insert_tx_io(
  File "...\electrum\electrum\gui\qt\transaction_dialog.py", line 205, in insert_tx_io
    tcf_addr = addr_text_format(addr)
  File "...\electrum\electrum\gui\qt\transaction_dialog.py", line 173, in addr_text_format
    sm = self.wallet.lnworker.swap_manager
AttributeError: 'NoneType' object has no attribute 'swap_manager'
```
2023-09-16 02:21:23 +00:00
ThomasV
3bc9ead67b submarine swaps: use password stored in memory. fixes #8612 2023-09-15 16:01:13 +02:00
ThomasV
9eb448ffe0 follow-up previous commit 2023-09-15 15:54:25 +02:00