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
ThomasV
d1232f7e5f
lnbase: fix read_message
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
SomberNight
728bc2353d
remove function H256
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
ThomasV
aaf40af7d0
update lnbase after crypto refactoring
2018-11-05 20:02:24 +01:00
Janus
18f2335bf9
lnbase: remove lnbase stub
2018-11-05 20:02:24 +01:00
ThomasV
a7f85efcf1
lnbase: pass password to mktx
2018-11-05 20:01:19 +01:00
ThomasV
86972cc9e2
qt: fix password passed to open_channel, cleanup
2018-11-05 20:01:19 +01:00
Janus
9ff68501e3
lnbase: mSAT hygiene, multiple multi-hop payments can be received
2018-11-05 20:01:18 +01:00
Janus
f82d40af1b
kivy: port lightning ui to lnbase
2018-11-05 20:01:18 +01:00
Janus
98f73348c1
lightning: remove hub based approach, port qt gui to lnbase
2018-11-05 20:00:35 +01:00
Janus
67dd377a05
lnbase: use small buffer when reading, support new_channel without payment in online test, send channel_reserve_satoshis
2018-11-05 19:58:51 +01:00
Janus
5a142cae4a
lnbase: use correct cltv_expiry calculation (use invoice)
2018-11-05 19:58:51 +01:00
Janus
60a24be561
lnbase: fix multi-hop payments
2018-11-05 19:58:50 +01:00
Janus
d974f8111f
lnbase: fix onion-hop payload construction again (cltv currently broken)
2018-11-05 19:58:50 +01:00
Janus
9dacca5e1c
lnbase: fix multi-hop fees, initial handling of received update_add_htlc during payment
2018-11-05 19:58:49 +01:00
Janus
46811d899c
lnbase: calculate cltv_expiry for onion_packet correctly
2018-11-05 19:58:49 +01:00
Janus
bd8c6913f5
lnbase: try multi-hop onion package, type safety
2018-11-05 19:58:48 +01:00
SomberNight
33c42decb4
PathFinder: change path element semantics from "from node, take edge" to "to get to node, use edge"
2018-11-05 19:58:48 +01:00
SomberNight
7d52c90a87
create route from path, that includes extra info needed for routing
2018-11-05 19:58:47 +01:00
SomberNight
3c7ccc303c
bolt-04: decryption of errors
2018-11-05 19:58:47 +01:00
Janus
b2ef33fec3
lnbase online test: use random node key when making new channel, save node key, multiple actions per invocation
2018-11-05 19:58:46 +01:00
Janus
0e8b816189
lnbase: fix pay(), save htlc_id's, generate onion packet correctly
2018-11-05 19:58:46 +01:00
Janus
4368e33eb3
lnbase/online_test: save short_channel_id to wallet and build onion packet with it
2018-11-05 19:58:45 +01:00
SomberNight
d44d1a8467
calc short_channel_id after funding locked
2018-11-05 19:58:45 +01:00
Janus
5f1f9a5cf8
lnbase: initial 'payment to remote' attempt
2018-11-05 19:58:44 +01:00
Janus
3eb52a1ecd
lnbase: formatting, remove imports
2018-11-05 19:58:44 +01:00
Janus
95f4114b73
lnbase: verify commitment tx'es again
2018-11-05 19:58:43 +01:00
Janus
216f476dc9
lnbase: infinite amount of incoming payments
2018-11-05 19:58:43 +01:00
Janus
f7d3f2fd85
lnbase: two payments working, temporarily disable sig check
2018-11-05 19:58:42 +01:00
Janus
a78c6b30c6
lnbase: store remote revocation store, don't store all remote revocation points, verify ctn numbers in reestablish
2018-11-05 19:58:42 +01:00
Janus
9f759c72e4
lnbase: add RevocationStore test, remove unnecessary lnd helper functions
2018-11-05 19:58:41 +01:00
Janus
29e81d53db
lnbase: compact commitment secret storage
2018-11-05 19:58:41 +01:00
Janus
6d1594e28a
lnbase: no negative commitment number nonsense
2018-11-05 19:58:41 +01:00
Janus
d8217cf717
lnbase: move channel commitment number increment to function
2018-11-05 19:58:40 +01:00
Janus
0da6602581
lnbase: receive repeated payments
2018-11-05 19:58:40 +01:00
Janus
8d27fda29f
lnbase: channel reestablishment working
2018-11-05 19:58:39 +01:00
SomberNight
c013ce07f7
bolt-04: implement processing of onion packets
2018-11-05 19:58:38 +01:00
SomberNight
96f89fbd97
minor clean-up of prev. util.xor_bytes
2018-11-05 19:58:38 +01:00
SomberNight
1a55e59c6b
implement bolt-04 onion packet construction
2018-11-05 19:58:37 +01:00
Janus
7210b2d0f8
lnbase: save channel details in wallet, enable running online test with reestablishment_mode
2018-11-05 19:58:37 +01:00
Janus
6c7f04fdca
lnbase: move waiting for funding_locked to new function, make function for signing and sig conversion
2018-11-05 19:58:36 +01:00
Janus
04ad312d91
lnbase: make function for building htlc_tx depending on if it is for_us/we_receive
2018-11-05 19:58:36 +01:00
Janus
7c7c633175
lnbase: verify their htlc signature
2018-11-05 19:58:35 +01:00