Commit graph

248 commits

Author SHA1 Message Date
SomberNight
014d25ff28
lnwatcher: sweep to_remote and to_local outputs if they close 2018-11-05 20:05:40 +01:00
Janus
43d72c236a
ln: add two trimming tests, avoid negative numbers in htlc trim decision 2018-11-05 20:05:39 +01:00
Janus
98574bf5ee
lnhtlc: fee update upgrade and passes ReciverCommits and SenderCommits tests, fix NameErrors in lnbase 2018-11-05 20:05:38 +01:00
Janus
d4433cfcd4
lnaddr: remove remnants of lightning_payencode directory 2018-11-05 20:05:38 +01:00
Janus
bdac56aa19
ln: avoid code duplication 2018-11-05 20:05:36 +01:00
Janus
414da3942c
ln: avoid recursive dependencies, make new lnutil 2018-11-05 20:05:35 +01:00
Janus
c255f534a8
ln: merge OpenChannel and HTLCStateMachine 2018-11-05 20:05:35 +01:00
Janus
d894320625
ln: store HTLCStateMachine in lnworker.channels 2018-11-05 20:05:34 +01:00
Janus
a3b67494a9
ln: trim dust htlc outputs 2018-11-05 20:05:32 +01:00
Janus
5cd0cb2a6f
ln: improve lnhtlc, passes test 2018-11-05 20:02:54 +01:00
Janus
8301d932a5
lnhtlc: use current_per_commitment_point, current_commitment_signature 2018-11-05 20:02:54 +01:00
Janus
3dbd1e4af6
ln: add was_announced in test_lnhtlc 2018-11-05 20:02:52 +01:00
Janus
a4a5705936
ln: don't break channel when failing htlc 2018-11-05 20:02:51 +01:00
Janus
e0f817244a
ln: fix reestablishing channel with no mined funding tx 2018-11-05 20:02:47 +01:00
Janus
87992bce0c
ln: avoid code duplication 2018-11-05 20:02:46 +01:00
Janus
01280924d2
test_lnbase: use new Peer API (with lnworker) 2018-11-05 20:02:43 +01:00
Janus
d920310c66
ln: remove unneeded forwarding htlc features, check commitment sig using lnhtlc while receiving 2018-11-05 20:02:43 +01:00
Janus
a7a2d79f2a
ln: integrate lnhtlc in lnbase, fix multiple lnhtlc bugs 2018-11-05 20:02:42 +01:00
ThomasV
2f35212446
do not block GUI with open_channel 2018-11-05 20:02:41 +01:00
Janus
2cd255c775
ln: htlc state machine (not used yet) 2018-11-05 20:02:34 +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
SomberNight
5483d56c15
split lnrouter from lnbase 2018-11-05 20:02:28 +01:00
ThomasV
48756b31ed
lightning: move lnworker code to its own module 2018-11-05 20:02:25 +01:00
Janus
9ff68501e3
lnbase: mSAT hygiene, multiple multi-hop payments can be received 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
bd8c6913f5
lnbase: try multi-hop onion package, type safety 2018-11-05 19:58:48 +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
Janus
5f1f9a5cf8
lnbase: initial 'payment to remote' attempt 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
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
0da6602581
lnbase: receive repeated payments 2018-11-05 19:58:40 +01:00
Janus
a961346d2a
tests: don't use default lightning_peers in online test 2018-11-05 19:58:39 +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
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
e7a85302e0
lnbase: fix custom local to_self_delay, use node privkey derived from timestamp in online test 2018-11-05 19:58:34 +01:00
Janus
5d6c835e8d
test_lnbase_online: pass password=None to channel_establishment_flow 2018-11-05 19:58:34 +01:00
ThomasV
d921aa50dd
lnbase: derive keys from wallet keystore 2018-11-05 19:58:33 +01:00
Janus
ca74023d7e
lnbase: organize channel data 2018-11-05 19:58:30 +01:00