Commit graph

12117 commits

Author SHA1 Message Date
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
ThomasV
e05cd2006a fix get_payments 2020-02-18 17:40:13 +01:00
SomberNight
d1fc4399e6
lnwatcher: use is_mine(addr) instead of (addr in get_addresses())
small performance gain
2020-02-18 17:16:46 +01:00
ThomasV
72f4e83333 fix race in check_onchain_situation 2020-02-18 17:06:54 +01:00
ThomasV
b90cbeb0ba fix flake8 test 2020-02-18 14:05:28 +01:00
ThomasV
6696f40e36 follow-up previous commit: show onchain tx dialog for channel open/close transactions 2020-02-18 13:58:17 +01:00
ThomasV
feb47b0a6f Add lightning tx dialog (qt and kivy) 2020-02-18 13:02:18 +01:00
ThomasV
b3a3267ede follow-up a6302b3a12 2020-02-18 12:39:18 +01:00
SomberNight
46d8080c76
ln gossip: don't put own channels into db; always pass them to fn calls
Previously we would put fake chan announcement and fake outgoing chan upd
for own channels into db (to make path finding work). See Peer.add_own_channel().
Now, instead of above, we pass a "my_channels" param to the relevant ChannelDB methods.
2020-02-17 20:38:41 +01:00
SomberNight
7d65fe1ba3
Qt ChannelsList: cosmetics (set font, enable sorting) 2020-02-17 19:45:27 +01:00
SomberNight
b50c47c5ce
qt exc reporter: add FIXME re HTML tags in traceback 2020-02-17 19:44:12 +01:00
SomberNight
16626a3386
lnutil.split_host_port: fix for IPv6 connection string 2020-02-17 19:43:21 +01:00
SomberNight
0723355a0f
util.Satoshis: note that sometimes this actually has 'msat' precision 2020-02-17 16:52:25 +01:00
SomberNight
a6302b3a12
fix wallet history order: incl both on-chain and LN, sorted by time
GUIs now respect order of wallet.get_full_history(), which is probably the sane
thing to do, given that is the order the "balance" column is calculated in.

fixes #5958
2020-02-17 16:33:54 +01:00