Commit graph

12381 commits

Author SHA1 Message Date
SomberNight
cc5624fb20
don't raise BaseException 2020-02-23 19:55:09 +01:00
SomberNight
2409782975
qt open channel: early return if fields are left empty
closes #5934
2020-02-23 19:53:41 +01:00
ThomasV
ac884eb3c3 lnpeer: Use a single queue per channel for messages that are ordered.
Forward error messages with 'temporary_channel_id' to the correct channel_id
2020-02-23 18:06:47 +01:00
ThomasV
28c5825f41 follow-up previous commit 2020-02-23 17:56:01 +01:00
ThomasV
54ef6db762 do not try to reestablish channels in PREOPENING state (per BOLT2). 2020-02-23 14:54:04 +01:00
ThomasV
8730fa3f75 return preimage in lnpay. fixes #5794 2020-02-23 12:40:40 +01:00
ThomasV
67d0e780b3 remove double definition of lightning_history. fixes #5984 2020-02-23 11:59:34 +01:00
ThomasV
9616333b39 add_future_tx should return success 2020-02-22 17:20:05 +01:00
ThomasV
64a8de8bae Qt: show amounts sent to channels in show_transaction 2020-02-22 16:02:02 +01:00
ThomasV
d319680d16 lnpeer: do not dump exceptions raised in initialize 2020-02-22 16:00:38 +01:00
ThomasV
874efc125d (minor) trigger 'wallet_updated' callback when adding future tx 2020-02-22 12:59:48 +01:00
ThomasV
7771daf94e qt: add menu item to view closing transaction of channel 2020-02-22 12:28:07 +01:00
ThomasV
b12c913d47 do not show channel balances if channel is closed 2020-02-22 12:10:41 +01:00
ThomasV
4e73318fad Qt: ask confirmation before closing channel. 2020-02-22 10:40:39 +01:00
ThomasV
938d918e55 sweep_ctx: do not log if channel was not force closed 2020-02-22 09:27:34 +01:00
ThomasV
3264d19c6b Qt open channel dialog: suggest and clear buttons 2020-02-22 09:25:12 +01:00
ThomasV
fa62d03c2a require option static_remotekey in lnwallet 2020-02-22 09:04:42 +01:00
ThomasV
bda23ef73d Use a Future for lnpeer.initialized, so that exceptions are passed to the GUI 2020-02-22 09:04:24 +01:00
SomberNight
56cb45df70
android build: fix accepting licenses 2020-02-21 20:08:32 +01:00
SomberNight
1ac3a66d49
win binaries: bump python version (3.6.8->3.7.6)
finally possible, after bb94712a14
2020-02-21 19:02:38 +01:00
SomberNight
7e3d50a641
README: rm "Compile the protobuf description file" section
The generated file "paymentrequest_pb2.py" is already committed into the repository,
so users don't need to run this command.
Further, the command itself is preserved in "paymentrequest.py"
(it gets printed if we cannot find the generated file).
2020-02-21 18:50:52 +01:00
SomberNight
7f8d667e85
Revert "qt/hww: temporarily bundle our own version of safetlib.qt.pinmatrix"
This reverts commit 7f3de8241c.

(can finally undo this due to bb94712a14)
2020-02-21 18:32:58 +01:00
ThomasV
a1b8c8e54e add comment about minor issue with closing_signed 2020-02-21 18:30:59 +01:00
SomberNight
bb94712a14
requirements: bump min archos safet version
related: #5968
2020-02-21 18:23:33 +01:00
ThomasV
1b586faec9 disable peer filtering in lnworker 2020-02-21 17:41:20 +01:00
ThomasV
3329d9dd0e lnwatcher: fix keep_watching if the wallet was not force-closed 2020-02-21 16:35:27 +01:00
SomberNight
d8a992e400
libsecp: log exception if failed to load 2020-02-21 15:59:18 +01:00
ThomasV
6e5abc049b follow-up previous commit (backward compatibility) 2020-02-21 15:33:15 +01:00
ThomasV
55e0e1a72e Generate channel keys from random seed 2020-02-21 12:38:12 +01:00
ThomasV
c2432aa125 kivy: set pin_code timeout to 5 minutes 2020-02-21 11:33:07 +01:00
ThomasV
86d1e50469 select peers with desired features before connecting 2020-02-21 10:57:13 +01:00
ThomasV
a96aa68a4c lnpeer:
- print parent classname in diagnostic name,
 - fix error message when requested feature is not supported
2020-02-21 09:48:36 +01:00
ThomasV
570167a2c4 restrict lightning to p2wpkh wallets 2020-02-20 21:17:25 +01:00
ThomasV
2255b07157 support option_static_remotekey 2020-02-20 21:02:01 +01:00
ThomasV
47d14c579b minor fix: can_send, can_receive 2020-02-20 21:01:42 +01:00
ThomasV
9a462ac9b5 trustedcoin: fix wallet constructor 2020-02-20 20:59:18 +01:00
ThomasV
704c3ae07f do not allow channel creation from backup file 2020-02-20 19:09:05 +01:00
ThomasV
9d0a862a43 revert prrevious commit (used in tests) 2020-02-20 11:26:19 +01:00
ThomasV
9680e7836c remove ChannelDB.add_channel_update (no longer needed after 46d8080c76) 2020-02-20 11:20:05 +01:00
ThomasV
9451ca9568 move list_channels to commands.py 2020-02-20 10:30:30 +01:00
ThomasV
238fb46d87 Lightning: Show sending and receiving capacity. Fixes #5967 2020-02-19 16:11:55 +01:00
SomberNight
3d42fca86e
daemon.run_gui: make sure to exit process on exception
previously, if GUI-related imports raised, the GUI would not start
but the process would not exit (e.g. asyncio event loop would go on)

Traceback (most recent call last):
  File "...\electrum\electrum\daemon.py", line 517, in run_gui
    gui = __import__('electrum.gui.' + gui_name, fromlist=['electrum'])
  File "...\electrum\electrum\gui\qt\__init__.py", line 39, in <module>
    from PyQt5.QtGui import QGuiApplication
ImportError: DLL load failed while importing QtGui: The specified module could not be found.
2020-02-19 15:45:36 +01:00
ThomasV
300888f21c fix path for payserver static files 2020-02-19 11:47:43 +01:00
ThomasV
317d405432 follow-up previous commit 2020-02-19 11:39:52 +01:00
ThomasV
cc6e461d3e storage upgrade for invoices and requests. fixes #5959 2020-02-19 11:26:03 +01:00
ThomasV
21fffeb7ad do not store 'outputs' field in requests (it is unused) 2020-02-19 11:24:44 +01:00
SomberNight
9c5e49f432
ecc.ECPubkey: also accept bytearray in __init__
regression since #5947

Traceback (most recent call last):
  File "...\electrum\electrum\base_wizard.py", line 339, in on_device
    self.plugin.setup_device(device_info, self, purpose)
  File "...\electrum\electrum\plugins\ledger\ledger.py", line 598, in setup_device
    client.get_xpub("m/44'/0'", 'standard') # TODO replace by direct derivation once Nano S > 1.1
  File "...\electrum\electrum\plugins\ledger\ledger.py", line 55, in catch_exception
    return func(self, *args, **kwargs)
  File "...\electrum\electrum\plugins\ledger\ledger.py", line 124, in get_xpub
    eckey=ecc.ECPubkey(publicKey),
  File "...\electrum\electrum\ecc.py", line 145, in __init__
    self._x, self._y = _x_and_y_from_pubkey_bytes(b)
  File "...\electrum\electrum\ecc.py", line 119, in _x_and_y_from_pubkey_bytes
    ret = _libsecp256k1.secp256k1_ec_pubkey_parse(
ctypes.ArgumentError: argument 3: <class 'TypeError'>: wrong type
2020-02-19 00:40:33 +01:00
SomberNight
0845300150
qt InstallWizard: turn some instance variables to locals 2020-02-18 21:12:46 +01:00
ThomasV
fe4ca4c466 follow-up previous commit 2020-02-18 20:06:35 +01:00
ThomasV
c9e39d3a79 remove channel from channel_timestamps if funding_tx has been dropped from mempool 2020-02-18 18:04:23 +01:00