Janus
361e119816
ln: shortcut some OpenChannel fields to traversing too much
2018-11-05 20:05:34 +01:00
Janus
d894320625
ln: store HTLCStateMachine in lnworker.channels
2018-11-05 20:05:34 +01:00
SomberNight
94c9943054
improve Qt Receive tab for LN payment requests
2018-11-05 20:05:33 +01:00
ThomasV
93796b1e32
Separate open_channel dialog. In open_channel_coroutine, use host and port from channel announcements
2018-11-05 20:05:33 +01:00
Janus
3948945b0f
ln: use new non-classmethod add_signature_to_txin
2018-11-05 20:05:32 +01:00
ThomasV
047c543e19
do not set channel state in close_channel; the watcher should do it
2018-11-05 20:05:31 +01:00
ThomasV
586dc0a891
lightning: single shared instance of Watcher, ChannelDB and PathFinder
2018-11-05 20:05:31 +01:00
ThomasV
9e1b62f6b4
reestablish channels in network callback
2018-11-05 20:02:53 +01:00
ThomasV
1be29dbad6
channel watcher class
2018-11-05 20:02:52 +01:00
Janus
27288f3e69
ln: close channels
2018-11-05 20:02:52 +01:00
Janus
90488f0e05
ln: don't corrupt channels storage when multiple funding_locked are received
2018-11-05 20:02:51 +01:00
Janus
86546ea6c4
ln: announcement reliability fixes for qt, remove asserts forbidding unbalanced channels
2018-11-05 20:02:50 +01:00
Janus
695ac2db0c
ln: begin handling htlc failures
2018-11-05 20:02:50 +01:00
Janus
cc815c318d
ln: channel announcements
2018-11-05 20:02:48 +01:00
Janus
a7a2d79f2a
ln: integrate lnhtlc in lnbase, fix multiple lnhtlc bugs
2018-11-05 20:02:42 +01:00
Janus
beab441783
ln: request_initial_sync, increase our max_htlc_value, fix receiving payment
2018-11-05 20:02:41 +01:00
ThomasV
2f35212446
do not block GUI with open_channel
2018-11-05 20:02:41 +01:00
ThomasV
da614e90c0
revert the introduction of add_invoice_coroutine in a612c2b09
2018-11-05 20:02:39 +01:00
ThomasV
8f1b4e7b4a
do not pass channel list to update_rows signal, as it is sent to all windows
2018-11-05 20:02:39 +01:00
SomberNight
91048fb4e1
wait for peer.initialized in channel_establishment_flow
2018-11-05 20:02:38 +01:00
ThomasV
a6ef0c4f0c
simplify funding_locked
...
expose lnworker in peer
update channel_db when channels are open
2018-11-05 20:02:37 +01:00
ThomasV
1257cd28dd
Display channel status in the GUI.
...
Do not convert channel_id to integer; there is no reason to do that.
2018-11-05 20:02:37 +01:00
ThomasV
81f7cfd8aa
integrate channels_list with existing framework
2018-11-05 20:02:36 +01:00
ThomasV
ab5a776f47
follow-up a612c2b0983ab4c6798156aebf1cd550fb3e0447
2018-11-05 20:02:35 +01:00
Janus
853c118b17
ln: save channels in dict, warn on invoice exceeding max_htlc amount
2018-11-05 20:02:34 +01:00
ThomasV
37393fe686
lightning: connect send button
2018-11-05 20:02:33 +01:00
ThomasV
7c1c3d2d6d
lightning GUI: use existing receive and send tabs with lightning invoices
2018-11-05 20:02:33 +01:00
Janus
31f92d7e7d
ln: don't make invoice if peer can't possibly pay, append _sat to sat
...
parameters to avoid confusion
2018-11-05 20:02:32 +01:00
ThomasV
4869615e0e
lnworker: generate and save private key
2018-11-05 20:02:32 +01:00
ThomasV
59e8c44311
lnworker: separate invoice creation from payment flow
2018-11-05 20:02:31 +01:00
Janus
0d1a4c2982
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-11-05 20:02:30 +01:00
ThomasV
12e170996a
fix channel_reestablish
2018-11-05 20:02:30 +01:00
Janus
25c300f10c
ln: restore functionality
2018-11-05 20:02:29 +01:00
Janus
2a6771b645
ln: save remote node_id in channel
2018-11-05 20:02:29 +01:00
SomberNight
5483d56c15
split lnrouter from lnbase
2018-11-05 20:02:28 +01:00
ThomasV
1d1a5d6c44
move on_funding_locked to lnworker
2018-11-05 20:02:27 +01:00
ThomasV
47c0b2501d
lightning: add payment methods to lnworker
2018-11-05 20:02:26 +01:00
ThomasV
48756b31ed
lightning: move lnworker code to its own module
2018-11-05 20:02:25 +01:00