Commit graph

10841 commits

Author SHA1 Message Date
Janus
12a02a8a1e lnrouter: ignore duplicate channel announcement 2019-08-20 09:03:10 +02:00
ThomasV
9897e41e68 remove unused method 2019-08-20 09:03:10 +02:00
SomberNight
21e907a4e3 ChannelDB: print_graph 2019-08-20 09:03:10 +02:00
SomberNight
135951a13f qt channels list: update channel when detecting close 2019-08-20 09:03:10 +02:00
SomberNight
f2242868fa qt/channels list: show error in dialog 2019-08-20 09:03:10 +02:00
SomberNight
66817d41f9 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
2019-08-20 09:03:10 +02:00
Janus
d740475e7a move channel_state into HTLCStateMachine 2019-08-20 09:03:10 +02:00
ThomasV
3caccbebcd follow-up a7e5b9421c014fc0be72696837cb9d77519c5e03 2019-08-20 09:03:10 +02:00
ThomasV
89dfd1cc2c lightning: improve request tab layout 2019-08-20 09:03:10 +02:00
ThomasV
f2b40c69fc do not set background in frozen_style, it does not look good with dark theme 2019-08-20 09:03:10 +02:00
ThomasV
b5f0209a56 fix crash in lnworker main_loop 2019-08-20 09:03:10 +02:00
ThomasV
18bc5aa27b lightning: improve receive in Qt GUI 2019-08-20 09:03:10 +02:00
ThomasV
31b67c422b add peer suggestion to open channel dialog. move add_peer code back to lnworker constructor 2019-08-20 09:03:10 +02:00
ThomasV
2ee41975f9 add lnworker.main_loop to network.futures so it gets cancelled on exit. fix aiosafe verbosity. 2019-08-20 09:03:10 +02:00
ThomasV
44d8c8f995 diagnostic_name: convert to str 2019-08-20 09:03:10 +02:00
ThomasV
8f779f504f LNWorker: connect to multiple peers.
save exceptions in aiosafe.
enable adding peer in GUI.
2019-08-20 09:03:10 +02:00
Janus
35adc3231b lightning: fixup after rebasing on restructured master 2019-08-20 09:03:10 +02:00
ThomasV
1db7a8334a Refresh LN status in GUI using network callback. 2019-08-20 09:03:10 +02:00
Janus
9145d61797 lnhtlc: remove unnecessary double application of pending feerate 2019-08-20 09:03:10 +02:00
Janus
cc48e14618 ln: enable receiving dust htlcs 2019-08-20 09:03:10 +02:00
SomberNight
18627ecd1a lnwatcher: naive code to sweep to_local from our ctx (will not wait for timelock yet) 2019-08-20 09:03:10 +02:00
Janus
55a7e4cec1 ln: use pending_local_commit while closing (won't be revoked) 2019-08-20 09:03:10 +02:00
Janus
ed62a21547 ln: raise our dust/reserve to 546 to be compatible with c-lightning 2019-08-20 09:03:10 +02:00
Janus
b26e028d9b ln: test fix: our commit fee is implicit from outputs 2019-08-20 09:03:10 +02:00
Janus
2dd1cb86fa lnbase: do not revoke more than once if we have missed reading commitments 2019-08-20 09:03:10 +02:00
SomberNight
63d2c3aaf4 lnwatcher: sweep to_remote and to_local outputs if they close 2019-08-20 09:03:10 +02:00
Janus
8573dd3b6a ln: revoke before sending bare ctx in pay(), remove subtraction of trimmed amt from fee 2019-08-20 09:03:10 +02:00
Janus
605d6ff5ca ln: add two trimming tests, avoid negative numbers in htlc trim decision 2019-08-20 09:03:10 +02:00
Janus
03c2b954d9 lnhtlc: fee update upgrade and passes ReciverCommits and SenderCommits tests, fix NameErrors in lnbase 2019-08-20 09:03:10 +02:00
Janus
d95d6fcae9 lnaddr: remove remnants of lightning_payencode directory 2019-08-20 09:03:10 +02:00
Janus
ea3d8cb157 lnaddr: fix imports 2019-08-20 09:03:10 +02:00
ThomasV
722b4c5029 move comment 2019-08-20 09:03:10 +02:00
ThomasV
8346e358b2 move lnaddr.py to lib 2019-08-20 09:03:10 +02:00
Janus
4515c859c4 ln: avoid code duplication 2019-08-20 09:03:10 +02:00
Janus
fe973a5137 ln: avoid recursive dependencies, make new lnutil 2019-08-20 09:03:10 +02:00
Janus
7a3551b5df ln: merge OpenChannel and HTLCStateMachine 2019-08-20 09:03:10 +02:00
Janus
42a56df996 ln: shortcut some OpenChannel fields to traversing too much 2019-08-20 09:03:10 +02:00
Janus
77e9abc655 ln: store HTLCStateMachine in lnworker.channels 2019-08-20 09:03:10 +02:00
SomberNight
0d4593eebf improve Qt Receive tab for LN payment requests 2019-08-20 09:03:10 +02:00
ThomasV
c7e47b74a9 Separate open_channel dialog. In open_channel_coroutine, use host and port from channel announcements 2019-08-20 09:03:10 +02:00
Janus
dbdabcfc5d ln: use new non-classmethod add_signature_to_txin 2019-08-20 09:03:10 +02:00
Janus
b3dad9480c ln: trim dust htlc outputs 2019-08-20 09:03:10 +02:00
ThomasV
8fe70fc0eb do not set channel state in close_channel; the watcher should do it 2019-08-20 09:03:10 +02:00
ThomasV
61983c222a lightning: single shared instance of Watcher, ChannelDB and PathFinder 2019-08-20 09:03:10 +02:00
ThomasV
3fd3b2a74d disable lightning on mainnet 2019-08-20 09:03:10 +02:00
Janus
e7089c1458 ln: improve lnhtlc, passes test 2019-08-20 09:03:10 +02:00
Janus
56d5936661 lnhtlc: use current_per_commitment_point, current_commitment_signature 2019-08-20 09:03:10 +02:00
ThomasV
0ccafb547c fix reestablish_channel 2019-08-20 09:03:10 +02:00
ThomasV
df960700c9 reestablish channels in network callback 2019-08-20 09:03:10 +02:00
ThomasV
322acd93d9 channel watcher class 2019-08-20 09:03:10 +02:00