Commit Graph

4285 Commits

Author SHA1 Message Date
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
ThomasV
8322a04557 follow up 0b3a882e7d57c8a42be48c491a46dc814eab6acb 2018-06-26 19:32:50 +02:00
ThomasV
45f113244a simplify funding_locked
expose lnworker in peer
update channel_db when channels are open
2018-06-26 19:32:50 +02:00
ThomasV
71a0b91096 Display channel status in the GUI.
Do not convert channel_id to integer; there is no reason to do that.
2018-06-26 19:32:50 +02:00
ThomasV
4c5390d3dd integrate channels_list with existing framework 2018-06-26 19:32:50 +02:00
ThomasV
62762443b4 follow-up a612c2b0983ab4c6798156aebf1cd550fb3e0447 2018-06-26 19:32:19 +02:00
Janus
c6ad21889d ln: htlc state machine (not used yet) 2018-06-26 19:32:19 +02:00
Janus
c23a4f10bd ln: save channels in dict, warn on invoice exceeding max_htlc amount 2018-06-26 19:32:19 +02:00
ThomasV
6949d37251 lightning: connect send button 2018-06-26 19:32:19 +02:00
ThomasV
424a346834 lightning GUI: use existing receive and send tabs with lightning invoices 2018-06-26 19:32:19 +02:00
Janus
a7052175d2 ln: don't make invoice if peer can't possibly pay, append _sat to sat
parameters to avoid confusion
2018-06-26 19:31:41 +02:00
ThomasV
a31df98b1d lnworker: generate and save private key 2018-06-26 19:31:41 +02:00