Commit graph

140 commits

Author SHA1 Message Date
ThomasV
5666188e9e update lnbase after crypto refactoring 2019-08-20 09:03:09 +02:00
Janus
1d8c771440 lnbase: remove lnbase stub 2019-08-20 09:03:09 +02:00
ThomasV
8abd072c89 lnbase: pass password to mktx 2019-08-20 09:03:09 +02:00
ThomasV
5a819611c8 qt: fix password passed to open_channel, cleanup 2019-08-20 09:03:09 +02:00
Janus
6ac15962dc lnbase: mSAT hygiene, multiple multi-hop payments can be received 2019-08-20 09:03:09 +02:00
Janus
10e8a90224 kivy: port lightning ui to lnbase 2019-08-20 09:03:09 +02:00
Janus
18963405ee lightning: remove hub based approach, port qt gui to lnbase 2019-08-20 09:03:09 +02:00
Janus
4fdf1b9b84 lnbase: use small buffer when reading, support new_channel without payment in online test, send channel_reserve_satoshis 2019-08-20 09:03:09 +02:00
Janus
5d375de30e lnbase: use correct cltv_expiry calculation (use invoice) 2019-08-20 09:03:09 +02:00
Janus
eeb027babc lnbase: fix multi-hop payments 2019-08-20 09:03:09 +02:00
Janus
001ab4e3bc lnbase: fix onion-hop payload construction again (cltv currently broken) 2019-08-20 09:03:09 +02:00
Janus
1d267f1226 lnbase: fix multi-hop fees, initial handling of received update_add_htlc during payment 2019-08-20 09:03:09 +02:00
Janus
f6995b99d9 lnbase: calculate cltv_expiry for onion_packet correctly 2019-08-20 09:03:09 +02:00
Janus
6c67ad24f3 lnbase: try multi-hop onion package, type safety 2019-08-20 09:03:09 +02:00
SomberNight
43eb33327e PathFinder: change path element semantics from "from node, take edge" to "to get to node, use edge" 2019-08-20 09:03:09 +02:00
SomberNight
50cc603d91 create route from path, that includes extra info needed for routing 2019-08-20 09:03:09 +02:00
SomberNight
5b1da26041 bolt-04: decryption of errors 2019-08-20 09:03:09 +02:00
Janus
5da3820a28 lnbase online test: use random node key when making new channel, save node key, multiple actions per invocation 2019-08-20 09:03:09 +02:00
Janus
b81fb44952 lnbase: fix pay(), save htlc_id's, generate onion packet correctly 2019-08-20 09:03:09 +02:00
Janus
34da1349e0 lnbase/online_test: save short_channel_id to wallet and build onion packet with it 2019-08-20 09:03:09 +02:00
SomberNight
7ba3f2d54d calc short_channel_id after funding locked 2019-08-20 09:03:09 +02:00
Janus
6bf2714e33 lnbase: initial 'payment to remote' attempt 2019-08-20 09:03:09 +02:00
Janus
928eb886c5 lnbase: formatting, remove imports 2019-08-20 09:03:09 +02:00
Janus
2e23ecb3ca lnbase: verify commitment tx'es again 2019-08-20 09:03:09 +02:00
Janus
73a17c93ee lnbase: infinite amount of incoming payments 2019-08-20 09:03:09 +02:00
Janus
6173c2d7a7 lnbase: two payments working, temporarily disable sig check 2019-08-20 09:03:09 +02:00
Janus
ee87920573 lnbase: store remote revocation store, don't store all remote revocation points, verify ctn numbers in reestablish 2019-08-20 09:03:09 +02:00
Janus
3a20c8ce00 lnbase: add RevocationStore test, remove unnecessary lnd helper functions 2019-08-20 09:03:09 +02:00
Janus
cf82150aab lnbase: compact commitment secret storage 2019-08-20 09:03:09 +02:00
Janus
c5fb090e5c lnbase: no negative commitment number nonsense 2019-08-20 09:03:09 +02:00
Janus
2338d18ab8 lnbase: move channel commitment number increment to function 2019-08-20 09:03:09 +02:00
Janus
2a594e9d0e lnbase: receive repeated payments 2019-08-20 09:03:09 +02:00
Janus
d9d2989a6a lnbase: channel reestablishment working 2019-08-20 09:03:09 +02:00
SomberNight
a58a345dc3 bolt-04: implement processing of onion packets 2019-08-20 09:03:09 +02:00
SomberNight
053c571d74 minor clean-up of prev. util.xor_bytes 2019-08-20 09:03:09 +02:00
SomberNight
47b1bed539 implement bolt-04 onion packet construction 2019-08-20 09:03:09 +02:00
Janus
60b77f6a00 lnbase: save channel details in wallet, enable running online test with reestablishment_mode 2019-08-20 09:03:09 +02:00
Janus
d3f8fe923c lnbase: move waiting for funding_locked to new function, make function for signing and sig conversion 2019-08-20 09:03:09 +02:00
Janus
d96b80ad1f lnbase: make function for building htlc_tx depending on if it is for_us/we_receive 2019-08-20 09:03:09 +02:00
Janus
309aca69b8 lnbase: verify their htlc signature 2019-08-20 09:03:09 +02:00
ThomasV
6b79052bc9 lnbase: standardize to_bytes calls 2019-08-20 09:03:09 +02:00
Janus
fa80fd4bd5 lnbase: fix custom local to_self_delay, use node privkey derived from timestamp in online test 2019-08-20 09:03:09 +02:00
Janus
1363dfb522 lnbase: avoid copying variables, insert newlines 2019-08-20 09:03:09 +02:00
ThomasV
96544b8b58 lnbase: derive keys from wallet keystore 2019-08-20 09:03:09 +02:00
Janus
bdec72dd4b lnbase: avoid local variables, remote useless comments, name basepoints as such 2019-08-20 09:03:09 +02:00
Janus
e1f7eb6cb3 lnbase: set new field in Transaction instead of returning a tuple in make_commitment 2019-08-20 09:03:09 +02:00
Janus
194a2bba16 lnbase: set to_self_delay back to 144, defer cltv_expiry problem 2019-08-20 09:03:09 +02:00
Janus
19d8a13232 lnbase: use correct delay 2019-08-20 09:03:09 +02:00
Janus
20f0464009 lnbase: avoid code duplication, return htlc outpoint dict in make_commitment 2019-08-20 09:03:09 +02:00
Janus
5f38019420 lnbase: simplify commitment transaction building with open channel 2019-08-20 09:03:09 +02:00