Commit graph

249 commits

Author SHA1 Message Date
Janus
b26e028d9b ln: test fix: our commit fee is implicit from outputs 2019-08-20 09:03:10 +02:00
SomberNight
63d2c3aaf4 lnwatcher: sweep to_remote and to_local outputs if they close 2019-08-20 09:03:10 +02:00
Janus
605d6ff5ca ln: add two trimming tests, avoid negative numbers in htlc trim decision 2019-08-20 09:03:10 +02:00
Janus
03c2b954d9 lnhtlc: fee update upgrade and passes ReciverCommits and SenderCommits tests, fix NameErrors in lnbase 2019-08-20 09:03:10 +02:00
Janus
d95d6fcae9 lnaddr: remove remnants of lightning_payencode directory 2019-08-20 09:03:10 +02:00
Janus
4515c859c4 ln: avoid code duplication 2019-08-20 09:03:10 +02:00
Janus
fe973a5137 ln: avoid recursive dependencies, make new lnutil 2019-08-20 09:03:10 +02:00
Janus
7a3551b5df ln: merge OpenChannel and HTLCStateMachine 2019-08-20 09:03:10 +02:00
Janus
77e9abc655 ln: store HTLCStateMachine in lnworker.channels 2019-08-20 09:03:10 +02:00
Janus
b3dad9480c ln: trim dust htlc outputs 2019-08-20 09:03:10 +02:00
Janus
e7089c1458 ln: improve lnhtlc, passes test 2019-08-20 09:03:10 +02:00
Janus
56d5936661 lnhtlc: use current_per_commitment_point, current_commitment_signature 2019-08-20 09:03:10 +02:00
Janus
4eb370d2e2 ln: add was_announced in test_lnhtlc 2019-08-20 09:03:10 +02:00
Janus
3f73332817 ln: don't break channel when failing htlc 2019-08-20 09:03:10 +02:00
Janus
f169bff89e ln: fix reestablishing channel with no mined funding tx 2019-08-20 09:03:10 +02:00
Janus
399fe08047 ln: avoid code duplication 2019-08-20 09:03:10 +02:00
Janus
3270ac039c test_lnbase: use new Peer API (with lnworker) 2019-08-20 09:03:10 +02:00
Janus
bd0f659f26 ln: remove unneeded forwarding htlc features, check commitment sig using lnhtlc while receiving 2019-08-20 09:03:10 +02:00
Janus
4d25933898 ln: integrate lnhtlc in lnbase, fix multiple lnhtlc bugs 2019-08-20 09:03:10 +02:00
ThomasV
6e71340e52 do not block GUI with open_channel 2019-08-20 09:03:10 +02:00
Janus
497706afbf ln: htlc state machine (not used yet) 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
SomberNight
8ba63380b4 split lnrouter from lnbase 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
Janus
6ac15962dc lnbase: mSAT hygiene, multiple multi-hop payments can be received 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
6c67ad24f3 lnbase: try multi-hop onion package, type safety 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
Janus
6bf2714e33 lnbase: initial 'payment to remote' attempt 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
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
2a594e9d0e lnbase: receive repeated payments 2019-08-20 09:03:09 +02:00
Janus
913176b4b1 tests: don't use default lightning_peers in online test 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
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
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
517e19ebab test_lnbase_online: pass password=None to channel_establishment_flow 2019-08-20 09:03:09 +02:00
ThomasV
96544b8b58 lnbase: derive keys from wallet keystore 2019-08-20 09:03:09 +02:00