Commit Graph

4296 Commits

Author SHA1 Message Date
Janus
839c2fa46d ln: do not add_peer in open_channel, but add_peer in gui when opening channel to unknown peer 2018-06-29 16:22:32 +01:00
Janus
0b7f4eb83c lnaddr: fix imports 2018-06-29 13:31:42 +01:00
ThomasV
b155b0151b move comment 2018-06-29 12:34:59 +02:00
ThomasV
b63de3f920 move lnaddr.py to lib 2018-06-29 12:33:16 +02:00
Janus
5b05e37c15 ln: avoid code duplication 2018-06-28 16:04:25 +02:00
Janus
40b4e555e6 ln: avoid recursive dependencies, make new lnutil 2018-06-28 15:50:45 +02:00
Janus
3397474095 ln: merge OpenChannel and HTLCStateMachine 2018-06-28 13:57:39 +02:00
Janus
49541f78a6 ln: shortcut some OpenChannel fields to traversing too much 2018-06-28 13:57:39 +02:00
Janus
5791ed1b66 ln: store HTLCStateMachine in lnworker.channels 2018-06-28 13:57:39 +02:00
SomberNight
d77afdf9e0
improve Qt Receive tab for LN payment requests 2018-06-27 21:54:57 +02:00
ThomasV
a0042b8203 Separate open_channel dialog. In open_channel_coroutine, use host and port from channel announcements 2018-06-27 12:44:43 +02:00
Janus
6bcbf8069e ln: use new non-classmethod add_signature_to_txin 2018-06-26 19:45:13 +02:00
Janus
5d1cdc6513 ln: trim dust htlc outputs 2018-06-26 19:33:37 +02:00
ThomasV
c1907d3cbd do not set channel state in close_channel; the watcher should do it 2018-06-26 19:33:37 +02:00
ThomasV
77b1670b77 lightning: single shared instance of Watcher, ChannelDB and PathFinder 2018-06-26 19:33:37 +02:00
Janus
0efc67b96b ln: improve lnhtlc, passes test 2018-06-26 19:32:50 +02:00
Janus
523251be03 lnhtlc: use current_per_commitment_point, current_commitment_signature 2018-06-26 19:32:50 +02:00
ThomasV
09e700056d fix reestablish_channel 2018-06-26 19:32:50 +02:00
ThomasV
7bea7515f1 follow-up previous commit 2018-06-26 19:32:50 +02:00
ThomasV
78474978a0 reestablish channels in network callback 2018-06-26 19:32:50 +02:00
ThomasV
8586c8f53c channel watcher class 2018-06-26 19:32:50 +02:00
Janus
170c1af344 ln: add was_announced in test_lnhtlc 2018-06-26 19:32:50 +02:00
Janus
90d0d0dd7e ln: close channels 2018-06-26 19:32:50 +02:00
Janus
fe8dec0426 ln: don't corrupt channels storage when multiple funding_locked are received 2018-06-26 19:32:50 +02:00
Janus
fe8f26981c ln: don't break channel when failing htlc 2018-06-26 19:32:50 +02:00
Janus
4bd792902b ln: announcement reliability fixes for qt, remove asserts forbidding unbalanced channels 2018-06-26 19:32:50 +02:00
Janus
7dade39d20 ln: begin handling htlc failures 2018-06-26 19:32:50 +02:00
SomberNight
21725f939a add minor comment for RouteEdge as clarification 2018-06-26 19:32:50 +02:00
SomberNight
7fc7e9a250 LNPathFinder: cltv delta of first edge in a path should be ignored 2018-06-26 19:32:50 +02:00
Janus
43c0a73033 ln: channel announcements 2018-06-26 19:32:50 +02:00
Janus
76ff48160c ln: lnpay: revoke until we get a commitment tx without htlcs 2018-06-26 19:32:50 +02:00
Janus
eec6a71670 ln: fix reestablishing channel with no mined funding tx 2018-06-26 19:32:50 +02:00
Janus
2e2ccdf4af ln: fix repeated payments 2018-06-26 19:32:50 +02:00
Janus
0faba96984 ln: avoid code duplication 2018-06-26 19:32:50 +02:00
Janus
6e2834a65c ln: save remote's secrets in RevocationStore, not our secrets. call lnhtlc.receive_revocation 2018-06-26 19:32:50 +02:00
Janus
1ad5987e03 lnbase/lnhtlc: use lnhtlc more instead of manually constructing tx'es 2018-06-26 19:32:50 +02:00
Janus
f8e1b935ea lnbase: use sign_next_commitment for initial remote_ctx 2018-06-26 19:32:50 +02:00
Janus
65aa87dcdb daemon: prevent json-rpc-pelix from suppressing stack traces of TypeErrors 2018-06-26 19:32:50 +02:00
Janus
0f81af0142 lnbase: use lnhtlc when verifying our initial commitment tx 2018-06-26 19:32:50 +02:00
Janus
29deff53ad lnbase: use broadcast_transaction instead of broadcast (follow up e57e55aad) 2018-06-26 19:32:50 +02:00
Janus
418b65207f test_lnbase: use new Peer API (with lnworker) 2018-06-26 19:32:50 +02:00
Janus
207b5e9179 ln: remove unneeded forwarding htlc features, check commitment sig using lnhtlc while receiving 2018-06-26 19:32:50 +02:00
Janus
4ecdce39f8 ln: integrate lnhtlc in lnbase, fix multiple lnhtlc bugs 2018-06-26 19:32:50 +02:00
Janus
5127177711 ln: remove lnbase global flag 2018-06-26 19:32:50 +02:00
Janus
608ee85607 ln: request_initial_sync, increase our max_htlc_value, fix receiving payment 2018-06-26 19:32:50 +02:00
ThomasV
0be0d4e2cc do not block GUI with open_channel 2018-06-26 19:32:50 +02:00
ThomasV
6a73e04e29 lnbase: mark_open on startup 2018-06-26 19:32:50 +02:00
ThomasV
a9b2fe3f1a revert the introduction of add_invoice_coroutine in a612c2b09 2018-06-26 19:32:50 +02:00
ThomasV
3950912ee9 do not pass channel list to update_rows signal, as it is sent to all windows 2018-06-26 19:32:50 +02:00
SomberNight
4a1a407802 wait for peer.initialized in channel_establishment_flow 2018-06-26 19:32:50 +02:00