1
0
Commit Graph

13141 Commits

Author SHA1 Message Date
SomberNight
4ca2a5cf3e appimage build: build most of our python dependencies from source
instead of using pre-built binary wheels from PyPI
2020-12-09 16:38:03 +01:00
SomberNight
e0917d12f6 rerun freeze_packages 2020-12-09 16:37:59 +01:00
SomberNight
d40bedb2ac also support uppercase bip21 URIs
related https://github.com/btcpayserver/btcpayserver/issues/2110
2020-12-09 16:09:12 +01:00
SomberNight
37a124fa1c appimage: update package in dockerfile 4.0.7 2020-12-09 15:00:42 +01:00
ThomasV
4fdeeb224e update locale 2020-12-09 14:20:34 +01:00
ThomasV
0e0cb57c73 update locale 2020-12-09 14:19:04 +01:00
ThomasV
f396ae0a29 prepare 4.0.7 2020-12-09 14:10:50 +01:00
ghost43
b4cc420d0a Merge pull request #6300 from SomberNight/202006_qt_statusbarbutton
qt StatusBarButton: use QToolButton instead of QPushButton
2020-12-09 12:42:23 +00:00
SomberNight
5b9c972499 qt StatusBarButton: use custom theme for macOS if using default theme 2020-12-09 12:41:19 +01:00
SomberNight
6f14375a68 qt StatusBarButton: use QToolButton instead of QPushButton
related: #6299
2020-12-09 12:15:55 +01:00
ThomasV
07bc4c40ef kivy: add on_dismiss method to crash reporter dialog 2020-12-09 10:22:42 +01:00
ThomasV
9ddb675550 kivy: handle lightning invoices on wallets that do not have lightning. fix #6371 2020-12-09 10:04:49 +01:00
SomberNight
ac223073ba keystore: handle unusual derivation paths in PSBT
If a tx contained a derivation path for a pubkey,
with a length=2 der suffix,
with the first element of the suffix not in (0, 1),
with a fingerprint that matches either our root or intermediate fp,
then processing that tx would raise and result in a crash reporter.

Traceback (most recent call last):
  File ".../electrum/electrum/gui/qt/main_window.py", line 2718, in do_process_from_text
    self.show_transaction(tx)
  File ".../electrum/electrum/gui/qt/main_window.py", line 1041, in show_transaction
    show_transaction(tx, parent=self, desc=tx_desc)
  File ".../electrum/electrum/gui/qt/transaction_dialog.py", line 84, 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 680, in __init__
    self.set_tx(tx)
  File ".../electrum/electrum/gui/qt/transaction_dialog.py", line 218, in set_tx
    tx.add_info_from_wallet(self.wallet)
  File ".../electrum/electrum/transaction.py", line 1944, in add_info_from_wallet
    wallet.add_input_info(txin, only_der_suffix=only_der_suffix)
  File ".../electrum/electrum/wallet.py", line 1573, in add_input_info
    is_mine = self._learn_derivation_path_for_address_from_txinout(txin, address)
  File ".../electrum/electrum/wallet.py", line 2609, in _learn_derivation_path_for_address_from_txinout
    pubkey, der_suffix = ks.find_my_pubkey_in_txinout(txinout, only_der_suffix=True)
  File ".../electrum/electrum/keystore.py", line 155, in find_my_pubkey_in_txinout
    path = self.get_pubkey_derivation(pubkey, txinout, only_der_suffix=only_der_suffix)
  File ".../electrum/electrum/keystore.py", line 391, in get_pubkey_derivation
    if not test_der_suffix_against_pubkey(der_suffix, pubkey):
  File ".../electrum/electrum/keystore.py", line 368, in test_der_suffix_against_pubkey
    if pubkey != self.derive_pubkey(*der_suffix):
  File ".../electrum/electrum/keystore.py", line 491, in derive_pubkey
    assert for_change in (0, 1)
AssertionError
2020-12-09 09:42:51 +01:00
ThomasV
0c3f360385 Merge pull request #6832 from SomberNight/202012_fix_qt_swap_dialog_ok_btn
qt swap dialog: fix enabling OK button
2020-12-09 09:28:16 +01:00
SomberNight
8c5601a172 dnspython: fix deprecation warnings when using dnspython 2.0
related: #6828
2020-12-09 09:04:04 +01:00
SomberNight
2ebd844b31 qt swap dialog: fix enabling OK button
fixes #6831
2020-12-09 08:20:46 +01:00
ThomasV
6273b4808f kivy: ensure WizardDialog.on_release is not executed more than once (see #6822) 2020-12-08 19:42:21 +01:00
ghost43
201ffa210e Merge pull request #6828 from SomberNight/202012_dnspython20
dependencies: require dnspython 2.0, require cryptography 2.6, drop python-ecdsa
2020-12-08 16:30:29 +00:00
SomberNight
239776cb41 gitignore: add some more build artifacts 2020-12-08 17:18:01 +01:00
SomberNight
cf5333187e update block header checkpoints 2020-12-08 17:08:03 +01:00
SomberNight
2c8ebff965 rerun freeze_packages 2020-12-08 16:53:51 +01:00
SomberNight
5a2d588e8b dependencies: rm python-ecdsa 2020-12-08 16:38:13 +01:00
SomberNight
14372e0a94 dependencies: support and require dnspython 2.0, rm monkey patches
- dnspython 2.0 requires cryptography 2.6 so we now always require that
  (no longer a choice between cryptography and pycryptodomex)
- test_dnssec.py is deleted as it was testing the monkey-patch

related: #6538
2020-12-08 16:35:29 +01:00
ThomasV
1684b348df Qt: keep pending_invoice logic in main_window (follow-up 56579c2, fixes #5829) 2020-12-08 13:12:57 +01:00
SomberNight
f74ac1a741 cli/rpc: fix 'sweep' command
fixes #6825
2020-12-08 12:21:56 +01:00
SomberNight
dbb7d7ce4d network: set _loop_thread again as it helps debugging
related: #6825
2020-12-08 11:48:01 +01:00
ThomasV
8bdd44edcb kivy: remove redundant declaration 2020-12-08 10:44:59 +01:00
SomberNight
95b08e9961 plugins: remove 'on_new_window' hook 2020-12-08 10:33:43 +01:00
SomberNight
933d8861ce mnemonic.make_seed: de-duplicate num_bits default magic number 2020-12-08 10:00:34 +01:00
SomberNight
376ee395f8 kivy: (fix) clicking "max" to send would raise for empty wallet
fix #6812
2020-12-08 08:47:13 +01:00
SomberNight
78513affe5 kivy: fix open channel with "max" amt
related #6169

E | gui.kivy.uix.dialogs.lightning_open_channel.LightningOpenChannelDialog | Problem opening channel
Traceback (most recent call last):
  File "/home/user/wspace/electrum/electrum/gui/kivy/uix/dialogs/lightning_open_channel.py", line 167, in do_open_channel
    chan, funding_tx = lnworker.open_channel(
  File "/home/user/wspace/electrum/electrum/lnworker.py", line 859, in open_channel
    if funding_sat > LN_MAX_FUNDING_SAT:
TypeError: '>' not supported between instances of 'str' and 'int'
2020-12-07 15:38:10 +01:00
ThomasV
dc810f131d kivy: wizard does not need Factory 2020-12-07 10:53:53 +01:00
ThomasV
2ac815e669 Merge pull request #6820 from ValdikSS/bug6404-fork-child-exit-fix
Use os._exit() for FORKed child browser opener process. Fixes #6404.
2020-12-07 10:31:36 +01:00
ThomasV
d2b96ad64b Merge pull request #6821 from aldrinpscastro/master
Added new brazillian exchange to exchange rates plugin: Walltime.
2020-12-07 10:11:15 +01:00
Aldrin P. S. Castro
c32ac41c36 Added new brazillian exchange to exchange rates plugin: Walltime. 2020-12-06 23:35:39 -03:00
ValdikSS
276d8f9a4d Use os._exit() for FORKed child browser opener process. Fixes #6404.
On Linux, when Electrum is executed from Appimage file, to prevent system library
inconsistence for Electrum and web browser and all issues involving that,
Electrum starts web browser and opens web page upon clicking on
'View on block explorer' by fork()'ing the process, unsetting
its custom LD_LIBRARY_PATH environment variable in the child process,
and calling webbrowser.open().

Due to incorrect usage of sys.exit() instead of os._exit() for child process,
Electrum (parent) can't be terminated and endlessly waits for child process upon
exit, while child process does nothing but still exists.

Fix this issue by using os._exit function, which should be used for
child processes (not only in Python).
2020-12-06 20:42:42 +03:00
ThomasV
40fbf3a929 follow-up c66c54a (simplification) 2020-12-06 13:16:17 +01:00
ThomasV
305ca90647 revert a9fc440, use Clock.schedule_interval to set address. Fixes #6810 and #6817 2020-12-06 11:51:15 +01:00
ThomasV
863cc39995 kivy: dismiss invoice_dialog before delete (fix #6816) 2020-12-05 22:18:58 +01:00
ThomasV
2f13e4eb85 kivy: do not save invoice until payment is confirmed by user.
add confirmation screen for lightning payments.
2020-12-05 19:55:55 +01:00
ThomasV
f020125e74 kivy screens: initialize is_max (fix #6813) 2020-12-05 19:48:10 +01:00
ThomasV
56579c282e Qt: do not save pending invoice before the user has confirmed payment 2020-12-05 19:27:54 +01:00
ThomasV
5a5ec81e10 kivy: disable send amount button if lightning invoice has an amount, and fix #6526 2020-12-05 18:26:23 +01:00
ThomasV
64292fd142 fix #4503: in kivy, catch NotEnoughFunds raised on open channel. 2020-12-05 10:27:35 +01:00
ThomasV
8aecbca11c fix #4561 2020-12-04 21:45:33 +01:00
ThomasV
e4d1997e3e prepare release 4.0.6 4.0.6 2020-12-04 17:52:21 +01:00
ThomasV
47afc3bc7b follow-up 427779350f 2020-12-04 17:38:40 +01:00
ThomasV
e881908b43 remove unused declaration 2020-12-04 16:31:21 +01:00
ThomasV
5058cf9d22 kivy wizard: if wallet creation is aborted, show message in the wizard and stop the GUI. (see #6796) 2020-12-04 15:16:30 +01:00
ThomasV
13b05f64e6 kivy: split on_wizard_complete in two methods 2020-12-04 11:59:55 +01:00