1
0
Commit Graph

15662 Commits

Author SHA1 Message Date
ThomasV
77fe2e6421 Qt tx dialog: rename Save and Export actions 2023-02-25 11:07:23 +01:00
Sander van Grieken
7fe5282f7c qml: hamburger styling/menu position 2023-02-23 21:49:23 +01:00
Sander van Grieken
e589d859ae qml: reset position in history to top when loading another wallet 2023-02-23 21:27:19 +01:00
Sander van Grieken
9d425b5b23 qml: move remaining buttons to bottom of dialogs 2023-02-23 21:22:44 +01:00
Sander van Grieken
32d00b2982 qml: wallet loading indicator as modal dialog, unclosable 2023-02-23 20:46:56 +01:00
Sander van Grieken
e511701c74 qml: ElDialog assure close behavior is consistent with allowClose property 2023-02-23 20:44:25 +01:00
Sander van Grieken
278486602b qml: add loader overlay, avoid interacting with the to-be-unloaded wallet 2023-02-23 18:20:29 +01:00
Sander van Grieken
a56c9687c8 qml: initial async wallet load 2023-02-23 14:39:55 +01:00
SomberNight
0af7f68dd8 qt tx dialog: fix "preview" for unsigned pre-segwit tx
```
629.08 | E | gui.qt.exception_window.Exception_Hook | exception caught by crash reporter
Traceback (most recent call last):
  File ".../electrum/electrum/gui/qt/invoice_list.py", line 170, in <lambda>
    menu.addAction(_("Pay") + "...", lambda: self.send_tab.do_pay_invoice(invoice))
  File ".../electrum/electrum/gui/qt/send_tab.py", line 573, in do_pay_invoice
    self.pay_onchain_dialog(self.window.get_coins(), invoice.outputs)
  File ".../electrum/electrum/gui/qt/send_tab.py", line 251, in pay_onchain_dialog
    self.window.show_transaction(tx)
  File ".../electrum/electrum/gui/qt/main_window.py", line 1074, in show_transaction
    show_transaction(tx, parent=self, desc=tx_desc)
  File ".../electrum/electrum/gui/qt/transaction_dialog.py", line 351, in show_transaction
    d = TxDialog(tx, parent=parent, desc=desc, prompt_if_unsaved=prompt_if_unsaved)
  File ".../electrum/electrum/gui/qt/transaction_dialog.py", line 450, in __init__
    self.set_title()
  File ".../electrum/electrum/gui/qt/transaction_dialog.py", line 858, in set_title
    self.setWindowTitle(_("Transaction") + ' ' + self.tx.txid())
TypeError: can only concatenate str (not "NoneType") to str
```
2023-02-22 14:05:27 +00:00
SomberNight
2242a506a9 ledger: fix sign_transaction for Ypub / sh(wsh(multi())) wallets
regression from https://github.com/spesmilo/electrum/pull/8041
2023-02-22 14:02:24 +00:00
ThomasV
4e9ddf6ddd cosignerpool: minor fix, follow-up new GUI flow 2023-02-21 13:15:06 +01:00
SomberNight
7aa1609718 tests: disable asyncio debug mode
see https://bugs.python.org/issue38608
2023-02-20 16:53:47 +00:00
SomberNight
d4338fb503 tests: clean-up use of asyncio 2023-02-20 16:53:44 +00:00
SomberNight
3ebf1e44bf tox.ini: allow running tox from local dev env
Some folders e.g. contrib/*/fresh_clone should not be searched.
2023-02-20 16:53:28 +00:00
SomberNight
dcd158dfdc tox.ini: (trivial) reformat tabs->spaces 2023-02-20 16:53:24 +00:00
SomberNight
f5eabaff55 ci: also run unit tests with PYTHONASYNCIODEBUG=1
This can reveal additional asyncio-related bugs,
and due to also enabling the full "debug mode", maybe more.
2023-02-20 16:53:18 +00:00
ThomasV
9a5496cfd8 Qt: remove redundant history_list update 2023-02-20 10:06:26 +01:00
SomberNight
9ad2c9138d tests: rm SequentialTestCase to further simplify inheritance 2023-02-18 11:29:58 +00:00
SomberNight
c5bdd5007c tests: rework testnet
Inheritance was overkill here, and now we can use inheritance for new functionality X
without having to create classes for all combinations of {X, is_testnet}.
2023-02-18 11:29:54 +00:00
SomberNight
72e1be6f5e swaps: rm support for p2wsh-p2sh lockup scripts
- unused
- the client was already refusing to fund such lockup addresses (if the server asked)
- no existing unit tests for it, and as the choice is up to the server, it is hard to create tests
- no clear reason to want to use p2sh-nested scripts here, aside from curiosity
2023-02-17 14:10:03 +00:00
SomberNight
8a4c06b692 swaps: small refactor and add unit tests for claim tx 2023-02-17 14:04:03 +00:00
SomberNight
373db76ac9 util: kill bh2u
no longer useful, and the name is so confusing...
2023-02-17 11:43:11 +00:00
SomberNight
1ce37c8bb1 transaction: rm hardcoded sighash magic numbers 2023-02-17 11:40:12 +00:00
SomberNight
1c53035b93 ecc.py: add/fix some type hints 2023-02-17 11:38:01 +00:00
SomberNight
845f4aee4d transaction.py: move Tx.serialize_input -> TxInput.serialize_to_network 2023-02-17 11:37:22 +00:00
Sander van Grieken
15d73daf8d qml: fix lifecycle issues with swap helper.
previously tied to Channels view, now dynamically created and parented to app
2023-02-16 13:24:23 +01:00
Sander van Grieken
fa45e1b7ba qml: fix name clash QML vs registered QObjects NewWalletWizard and ServerConnectWizard 2023-02-16 13:22:24 +01:00
Sander van Grieken
46ed94eb3a qml: don't present bolt11 invoice when invoice amount > num_sats_can_receive 2023-02-15 15:21:25 +01:00
Sander van Grieken
ebb3f90e29 qml: refresh transaction list when wallet_updated+is_up_to_date and history is dirty 2023-02-14 16:34:01 +01:00
Sander van Grieken
d3d66e7248 qml: RbF: do not decrease payment when payment is a swap
ref f617887509
2023-02-14 16:26:04 +01:00
SomberNight
6a6391c6a3 bitcoin.py: (trivial) rm redundant "net=" defaults 2023-02-14 15:05:34 +00:00
Sander van Grieken
3aa10b483f qml: add status update timer for invoice listmodel 2023-02-14 15:51:11 +01:00
Sander van Grieken
421bd93047 qml: fix a few leftovers 2023-02-14 15:37:17 +01:00
SomberNight
2378f92a6a tests: add more "sweep" tests for different script types 2023-02-14 12:19:18 +00:00
SomberNight
2d6e34c8c2 ecc: make ECPubkey.__lt__ relation strongly-connected/total
Previously we had:
```
>>> import electrum
>>> from electrum.ecc import POINT_AT_INFINITY
>>> G = electrum.ecc.GENERATOR
>>> G <= (-1 * G)
False
>>> (-1 * G) <= G
False
```
2023-02-14 12:19:14 +00:00
SomberNight
df2bd61de6 bip32: change hardened char "'"->"h" when encoding derivation paths
We accept either when decoding - this only changes what we use when encoding.
Single quotes are annoying to use in a shell, as they often need to be escaped.
2023-02-14 12:19:10 +00:00
Sander van Grieken
2b0e624876 qml: styling CloseChannelDialog, InvoiceDialog 2023-02-14 12:32:33 +01:00
Sander van Grieken
995754e523 qml: add expiry timers to update status string in InvoiceDialog and ReceiveDialog 2023-02-14 11:36:13 +01:00
ThomasV
292ce35945 receive tab: copy to clipboard when tab is changed 2023-02-13 11:20:10 +01:00
ThomasV
1da65451c0 Qt: schedule tooltip in do_copy 2023-02-13 11:11:26 +01:00
SomberNight
faea1e6e1a lnchannel: add more debug logging for ctx/htlc sigs
related: https://github.com/spesmilo/electrum/issues/8191
2023-02-13 01:23:47 +00:00
ThomasV
4a91213044 minor fix 2023-02-12 13:28:19 +01:00
ThomasV
d766f2fd9e Qt: make copy menus more consistent 2023-02-12 11:13:03 +01:00
ThomasV
df842af0b6 UTXO tab: add menus to fully spend utxo:
- send to address
 - in new channel
 - in submarine swap

This is easier than coin control, because it does not involve
switching tabs. Coin control is activated during the operation,
so that users learn how it works.
2023-02-11 10:49:33 +01:00
ThomasV
5e88b0da88 swaps: cache pairs to file 2023-02-11 10:27:12 +01:00
ThomasV
215629235d submarine_swaps: fix bugs and create method for max_amount_forward_swap 2023-02-11 10:21:01 +01:00
Sander van Grieken
095b6dab0f qml: fix display of negative millisat amounts in qefx.py for historic amounts too 2023-02-11 09:56:09 +01:00
Sander van Grieken
b5f0be2d8d qml: use FormattedAmount for fee in LightningPaymentDetails 2023-02-11 09:51:24 +01:00
Sander van Grieken
56cdc4a92b qml: fix display of negative millisat amounts in FormattedAmount, qefx.py 2023-02-11 09:50:56 +01:00
Sander van Grieken
8a8703d5ea qml: styling 2023-02-10 17:24:39 +01:00