Commit graph

9978 commits

Author SHA1 Message Date
ThomasV
6c901b3e9a
remove unused method 2018-11-05 20:05:53 +01:00
SomberNight
309331a936
ChannelDB: print_graph 2018-11-05 20:05:53 +01:00
SomberNight
8c24e2101d
qt channels list: update channel when detecting close 2018-11-05 20:05:52 +01:00
SomberNight
5538762673
qt/channels list: show error in dialog 2018-11-05 20:05:52 +01:00
SomberNight
f99de79da1
lnwatcher improvements
- only try sweeping csv-locked to_local if past timelock
- check if outputs are already spent
- no need to keep watching channels for which all outputs are spent and mined deep
2018-11-05 20:05:51 +01:00
Janus
d9208f3245
move channel_state into HTLCStateMachine 2018-11-05 20:05:51 +01:00
ThomasV
c0c7b92bff
follow-up a7e5b9421c014fc0be72696837cb9d77519c5e03 2018-11-05 20:05:50 +01:00
ThomasV
73d0a3baf6
lightning: improve request tab layout 2018-11-05 20:05:50 +01:00
ThomasV
010740c060
draw qrcode with fixed framesize 2018-11-05 20:05:49 +01:00
ThomasV
8af31ad045
follow-up c505a9b8b498fa661a09fc9bc02e4b71e0f76a68 2018-11-05 20:05:49 +01:00
ThomasV
f78e1a5606
do not use Qt.UserRole+1, it does not work with findItems 2018-11-05 20:05:48 +01:00
ThomasV
b79573c858
do not set background in frozen_style, it does not look good with dark theme 2018-11-05 20:05:48 +01:00
ThomasV
f6aae9e399
fix crash in lnworker main_loop 2018-11-05 20:05:47 +01:00
ThomasV
8e39bae831
lightning: improve receive in Qt GUI 2018-11-05 20:05:47 +01:00
ThomasV
841124ce47
add peer suggestion to open channel dialog. move add_peer code back to lnworker constructor 2018-11-05 20:05:46 +01:00
ThomasV
2fd3a1ca72
add lnworker.main_loop to network.futures so it gets cancelled on exit. fix aiosafe verbosity. 2018-11-05 20:05:46 +01:00
ThomasV
e7a1f6b7cb
diagnostic_name: convert to str 2018-11-05 20:05:45 +01:00
ThomasV
ae389ae5e2
LNWorker: connect to multiple peers.
save exceptions in aiosafe.
enable adding peer in GUI.
2018-11-05 20:05:45 +01:00
Janus
8276d023c2
lightning: fixup after rebasing on restructured master 2018-11-05 20:05:44 +01:00
ThomasV
de75872bfc
Refresh LN status in GUI using network callback. 2018-11-05 20:05:44 +01:00
Janus
c244e47024
lnhtlc: remove unnecessary double application of pending feerate 2018-11-05 20:05:43 +01:00
Janus
017f275f18
ln: enable receiving dust htlcs 2018-11-05 20:05:43 +01:00
SomberNight
36de0ac9d7
lnwatcher: naive code to sweep to_local from our ctx (will not wait for timelock yet) 2018-11-05 20:05:42 +01:00
Janus
009b56a777
ln: use pending_local_commit while closing (won't be revoked) 2018-11-05 20:05:42 +01:00
Janus
e464c989e9
ln: raise our dust/reserve to 546 to be compatible with c-lightning 2018-11-05 20:05:41 +01:00
Janus
3a89e4f9a8
ln: test fix: our commit fee is implicit from outputs 2018-11-05 20:05:41 +01:00
Janus
be068de6a0
lnbase: do not revoke more than once if we have missed reading commitments 2018-11-05 20:05:40 +01:00
SomberNight
014d25ff28
lnwatcher: sweep to_remote and to_local outputs if they close 2018-11-05 20:05:40 +01:00
Janus
1ee125df8a
ln: revoke before sending bare ctx in pay(), remove subtraction of trimmed amt from fee 2018-11-05 20:05:39 +01:00
Janus
43d72c236a
ln: add two trimming tests, avoid negative numbers in htlc trim decision 2018-11-05 20:05:39 +01:00
Janus
98574bf5ee
lnhtlc: fee update upgrade and passes ReciverCommits and SenderCommits tests, fix NameErrors in lnbase 2018-11-05 20:05:38 +01:00
Janus
d4433cfcd4
lnaddr: remove remnants of lightning_payencode directory 2018-11-05 20:05:38 +01:00
Janus
413a94a13d
lnaddr: fix imports 2018-11-05 20:05:37 +01:00
ThomasV
fd18ae6773
move comment 2018-11-05 20:05:37 +01:00
ThomasV
e7e2b39cfa
move lnaddr.py to lib 2018-11-05 20:05:36 +01:00
Janus
bdac56aa19
ln: avoid code duplication 2018-11-05 20:05:36 +01:00
Janus
414da3942c
ln: avoid recursive dependencies, make new lnutil 2018-11-05 20:05:35 +01:00
Janus
c255f534a8
ln: merge OpenChannel and HTLCStateMachine 2018-11-05 20:05:35 +01:00
Janus
361e119816
ln: shortcut some OpenChannel fields to traversing too much 2018-11-05 20:05:34 +01:00
Janus
d894320625
ln: store HTLCStateMachine in lnworker.channels 2018-11-05 20:05:34 +01:00
SomberNight
94c9943054
improve Qt Receive tab for LN payment requests 2018-11-05 20:05:33 +01:00
ThomasV
93796b1e32
Separate open_channel dialog. In open_channel_coroutine, use host and port from channel announcements 2018-11-05 20:05:33 +01:00
Janus
3948945b0f
ln: use new non-classmethod add_signature_to_txin 2018-11-05 20:05:32 +01:00
Janus
a3b67494a9
ln: trim dust htlc outputs 2018-11-05 20:05:32 +01:00
ThomasV
047c543e19
do not set channel state in close_channel; the watcher should do it 2018-11-05 20:05:31 +01:00
ThomasV
586dc0a891
lightning: single shared instance of Watcher, ChannelDB and PathFinder 2018-11-05 20:05:31 +01:00
ThomasV
7711bc1074
disable lightning on mainnet 2018-11-05 20:02:55 +01:00
Janus
5cd0cb2a6f
ln: improve lnhtlc, passes test 2018-11-05 20:02:54 +01:00
Janus
8301d932a5
lnhtlc: use current_per_commitment_point, current_commitment_signature 2018-11-05 20:02:54 +01:00
ThomasV
d79e4ba3cf
fix reestablish_channel 2018-11-05 20:02:53 +01:00