Commit graph

10711 commits

Author SHA1 Message Date
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
Janus
4eb370d2e2 ln: add was_announced in test_lnhtlc 2019-08-20 09:03:10 +02:00
Janus
7f206d6e4c ln: close channels 2019-08-20 09:03:10 +02:00
Janus
83c60441cf ln: don't corrupt channels storage when multiple funding_locked are received 2019-08-20 09:03:10 +02:00
Janus
3f73332817 ln: don't break channel when failing htlc 2019-08-20 09:03:10 +02:00
Janus
6f88c55f17 ln: announcement reliability fixes for qt, remove asserts forbidding unbalanced channels 2019-08-20 09:03:10 +02:00
Janus
e9fec66eb4 ln: begin handling htlc failures 2019-08-20 09:03:10 +02:00
SomberNight
6d8cae11dd add minor comment for RouteEdge as clarification 2019-08-20 09:03:10 +02:00
SomberNight
36519a535b LNPathFinder: cltv delta of first edge in a path should be ignored 2019-08-20 09:03:10 +02:00
Janus
a106760469 ln: channel announcements 2019-08-20 09:03:10 +02:00
Janus
275f1e6cbc ln: lnpay: revoke until we get a commitment tx without htlcs 2019-08-20 09:03:10 +02:00
Janus
f169bff89e ln: fix reestablishing channel with no mined funding tx 2019-08-20 09:03:10 +02:00
Janus
3ea6415dc7 ln: fix repeated payments 2019-08-20 09:03:10 +02:00
Janus
399fe08047 ln: avoid code duplication 2019-08-20 09:03:10 +02:00
Janus
d1769472bd ln: save remote's secrets in RevocationStore, not our secrets. call lnhtlc.receive_revocation 2019-08-20 09:03:10 +02:00
Janus
6c8bd2559b lnbase/lnhtlc: use lnhtlc more instead of manually constructing tx'es 2019-08-20 09:03:10 +02:00
Janus
9010ea7e6e lnbase: use sign_next_commitment for initial remote_ctx 2019-08-20 09:03:10 +02:00
Janus
434ce49451 lnbase: use lnhtlc when verifying our initial commitment tx 2019-08-20 09:03:10 +02:00
Janus
8eeaac8dda lnbase: use broadcast_transaction instead of broadcast (follow up e57e55aad) 2019-08-20 09:03:10 +02:00
Janus
3270ac039c test_lnbase: use new Peer API (with lnworker) 2019-08-20 09:03:10 +02:00
Janus
bd0f659f26 ln: remove unneeded forwarding htlc features, check commitment sig using lnhtlc while receiving 2019-08-20 09:03:10 +02:00
Janus
4d25933898 ln: integrate lnhtlc in lnbase, fix multiple lnhtlc bugs 2019-08-20 09:03:10 +02:00
Janus
5ed6f79a33 ln: request_initial_sync, increase our max_htlc_value, fix receiving payment 2019-08-20 09:03:10 +02:00
ThomasV
6e71340e52 do not block GUI with open_channel 2019-08-20 09:03:10 +02:00
ThomasV
40fcf58fec lightning: display remote balance in gui 2019-08-20 09:03:10 +02:00
ThomasV
2b9be294a0 lnbase: mark_open on startup 2019-08-20 09:03:10 +02:00
ThomasV
f1d067f446 revert the introduction of add_invoice_coroutine in a612c2b09 2019-08-20 09:03:10 +02:00
ThomasV
aeb58dbd66 do not pass channel list to update_rows signal, as it is sent to all windows 2019-08-20 09:03:10 +02:00
SomberNight
6f246b90bf wait for peer.initialized in channel_establishment_flow 2019-08-20 09:03:10 +02:00
ThomasV
11c6fce7bf follow up 0b3a882e7d57c8a42be48c491a46dc814eab6acb 2019-08-20 09:03:10 +02:00
ThomasV
2ae4b1862d simplify funding_locked
expose lnworker in peer
update channel_db when channels are open
2019-08-20 09:03:10 +02:00