Commit Graph

4228 Commits

Author SHA1 Message Date
Janus
7664855e44 ln: add was_announced in test_lnhtlc 2018-06-20 15:46:41 +02:00
Janus
705b138f21 ln: close channels 2018-06-20 15:46:22 +02:00
Janus
1f46df9af5 ln: don't corrupt channels storage when multiple funding_locked are received 2018-06-20 10:48:31 +02:00
Janus
b668071310 ln: don't break channel when failing htlc 2018-06-19 15:13:48 +02:00
Janus
c096acddaa ln: announcement reliability fixes for qt, remove asserts forbidding unbalanced channels 2018-06-19 13:02:59 +02:00
Janus
3df8372956 ln: begin handling htlc failures 2018-06-18 19:46:44 +02:00
SomberNight
3f71a7e1f2
add minor comment for RouteEdge as clarification 2018-06-18 19:18:39 +02:00
SomberNight
1838d17713
LNPathFinder: cltv delta of first edge in a path should be ignored 2018-06-18 18:32:06 +02:00
Janus
84b9438670 ln: channel announcements 2018-06-18 15:34:18 +02:00
Janus
618b5a7988 ln: lnpay: revoke until we get a commitment tx without htlcs 2018-06-15 18:51:49 +02:00
Janus
7bfca9a951 ln: fix reestablishing channel with no mined funding tx 2018-06-15 18:36:41 +02:00
Janus
5794da2a2d ln: fix repeated payments 2018-06-15 17:04:34 +02:00
Janus
f761e0816c ln: avoid code duplication 2018-06-15 16:35:29 +02:00
Janus
31315c8a9b ln: save remote's secrets in RevocationStore, not our secrets. call lnhtlc.receive_revocation 2018-06-14 15:34:51 +02:00
Janus
6d808c755b lnbase/lnhtlc: use lnhtlc more instead of manually constructing tx'es 2018-06-14 14:45:36 +02:00
Janus
bf35aad40c lnbase: use sign_next_commitment for initial remote_ctx 2018-06-13 16:28:07 +02:00
Janus
4c24ed46c2 daemon: prevent json-rpc-pelix from suppressing stack traces of TypeErrors 2018-06-13 16:28:07 +02:00
Janus
1d7c332859 lnbase: use lnhtlc when verifying our initial commitment tx 2018-06-13 16:28:07 +02:00
Janus
65ec33bda3 lnbase: use broadcast_transaction instead of broadcast (follow up e57e55aad) 2018-06-13 16:28:07 +02:00
Janus
f2d651e909 test_lnbase: use new Peer API (with lnworker) 2018-06-13 16:28:07 +02:00
Janus
1b6a14875a ln: remove unneeded forwarding htlc features, check commitment sig using lnhtlc while receiving 2018-06-13 16:28:07 +02:00
Janus
d17ec4d7e3 ln: integrate lnhtlc in lnbase, fix multiple lnhtlc bugs 2018-06-13 16:28:07 +02:00
Janus
7cff6443a0 ln: remove lnbase global flag 2018-06-13 16:28:07 +02:00
Janus
06129d3dfd ln: request_initial_sync, increase our max_htlc_value, fix receiving payment 2018-06-13 16:28:07 +02:00
ThomasV
3dfb4cdbb6 do not block GUI with open_channel 2018-06-13 16:28:07 +02:00
ThomasV
c94f5a8563 lnbase: mark_open on startup 2018-06-13 16:28:07 +02:00
ThomasV
2edac7c6f4 revert the introduction of add_invoice_coroutine in a612c2b09 2018-06-13 16:28:07 +02:00
ThomasV
1d2a6c3092 do not pass channel list to update_rows signal, as it is sent to all windows 2018-06-13 16:28:07 +02:00
SomberNight
1433fdc842 wait for peer.initialized in channel_establishment_flow 2018-06-13 16:28:07 +02:00
ThomasV
25b9d065b2 follow up 0b3a882e7d57c8a42be48c491a46dc814eab6acb 2018-06-13 16:28:07 +02:00
ThomasV
4c7ca381a8 simplify funding_locked
expose lnworker in peer
update channel_db when channels are open
2018-06-13 16:28:07 +02:00
ThomasV
f3357787b9 Display channel status in the GUI.
Do not convert channel_id to integer; there is no reason to do that.
2018-06-13 16:28:07 +02:00
ThomasV
6a388a571e integrate channels_list with existing framework 2018-06-13 16:28:07 +02:00
ThomasV
58cdabb031 follow-up a612c2b0983ab4c6798156aebf1cd550fb3e0447 2018-06-13 16:28:07 +02:00
Janus
0da069f631 ln: htlc state machine (not used yet) 2018-06-13 16:28:07 +02:00
Janus
f78f28b47c ln: save channels in dict, warn on invoice exceeding max_htlc amount 2018-06-13 16:28:07 +02:00
ThomasV
8f9397a18f lightning: connect send button 2018-06-13 16:28:07 +02:00
ThomasV
5979dcc293 lightning GUI: use existing receive and send tabs with lightning invoices 2018-06-13 16:28:07 +02:00
Janus
c9deed8694 ln: don't make invoice if peer can't possibly pay, append _sat to sat
parameters to avoid confusion
2018-06-13 16:28:07 +02:00
ThomasV
6eaf09fe94 lnworker: generate and save private key 2018-06-13 16:28:07 +02:00
ThomasV
c8401218be follow up previous commit 2018-06-13 16:28:07 +02:00
ThomasV
586ac743be lnworker: separate invoice creation from payment flow 2018-06-13 16:28:07 +02:00
Janus
044c253b5d ln: restore channels correctly after restart
* save funding_locked_received: if a node already sent us
funding_locked, save it to avoid superfluous messages

* use Queues instead of Futures: this ensure that we don't error if we
receive two messages of the same type, and in avoids having to delete
futures in finally blocks. A queue monitor could be added to detect
queue elements that are not popped.

* request initial routing sync: since we don't store the graph yet, it
is better to request the graph from the Peer so that we can route

* channel_state cleanup: now each channel should have a state, which is
initialized to OPENING and only marked OPEN once we have verified that
the funding_tx has been mined
2018-06-13 16:28:07 +02:00
ThomasV
39ec22d033 fix channel_reestablish 2018-06-13 16:28:07 +02:00
ThomasV
ccf2cf23b6 lnbase: fix read_message 2018-06-13 16:28:07 +02:00
Janus
da411bcb1e ln: restore functionality 2018-06-13 16:28:07 +02:00
Janus
f7b877f10d ln: save remote node_id in channel 2018-06-13 16:28:07 +02:00
SomberNight
1f06f4c439 split lnrouter from lnbase 2018-06-13 16:28:07 +02:00
SomberNight
47c9a0692c remove function H256 2018-06-13 16:28:07 +02:00
ThomasV
6f70cb02f3 fix amount in open_channel, add listchannels command 2018-06-13 16:28:07 +02:00