Commit graph

12 commits

Author SHA1 Message Date
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
Renamed from lib/tests/test_lnbase_online.py (Browse further)