Commit graph

10 commits

Author SHA1 Message Date
ThomasV
b74d4261af lnworker: generate and save private key 2019-08-20 09:03:10 +02:00
ThomasV
af4f0b6daf lnworker: separate invoice creation from payment flow 2019-08-20 09:03:10 +02:00
Janus
ae3971259d 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
2019-08-20 09:03:10 +02:00
ThomasV
aafbe74a28 fix channel_reestablish 2019-08-20 09:03:10 +02:00
Janus
6a8e5d5954 ln: restore functionality 2019-08-20 09:03:09 +02:00
Janus
4268be9093 ln: save remote node_id in channel 2019-08-20 09:03:09 +02:00
SomberNight
8ba63380b4 split lnrouter from lnbase 2019-08-20 09:03:09 +02:00
ThomasV
b71f020fc9 move on_funding_locked to lnworker 2019-08-20 09:03:09 +02:00
ThomasV
0552c61b66 lightning: add payment methods to lnworker 2019-08-20 09:03:09 +02:00
ThomasV
c621ae8f6e lightning: move lnworker code to its own module 2019-08-20 09:03:09 +02:00
Renamed from lib/tests/test_lnbase_online.py (Browse further)