Commit graph

224 commits

Author SHA1 Message Date
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
Janus
148b063ca0
lnbase: receiving invoice payment works 2018-11-05 19:58:29 +01:00
Janus
86154028fd
lnbase: commitment_signed, revoke_and_ack now accepted without errors 2018-11-05 19:58:28 +01:00
Janus
8b4bdf6fc0
lnbase: attempt at making htlc_signature to send (currently remote fails due to wrong num_htlcs in commitment_signed) 2018-11-05 19:58:26 +01:00
ThomasV
7dabdad7a7
simplification 2018-11-05 19:58:25 +01:00
Janus
a96b88738f
lnbase: verification of new local commitment working 2018-11-05 19:58:24 +01:00
Janus
e69d5a5d6d
lnbase: derive next keys when making updated local commitment transaction 2018-11-05 19:58:24 +01:00
Janus
f489fc38ad
lnbase: try to receive payment, work on commitment tx with htlcs 2018-11-05 19:58:24 +01:00
Janus
4a13146439
lnbase: handle commitment transaction update (receive funds, not working yet) 2018-11-05 19:58:23 +01:00
Janus
85358b6bd1
simnet/testnet support in bolt11, set max-htlc-value-in-flight 2018-11-05 19:58:23 +01:00
SomberNight
d844b20d41
transaction.py: sign_txin. allow override for get_preimage_script.
test_commitment_tx_with_all_five_HTLCs_untrimmed_minimum_feerate now passes
2018-11-05 19:58:22 +01:00
ThomasV
8ee71b623f
lnbase: verify remote signature 2018-11-05 19:58:21 +01:00
Janus
e76f7a2ca8
lnbase: improve htlc_tx generation (only localsig wrong) 2018-11-05 19:58:20 +01:00
SomberNight
244fe2f4c5
get_per_commitment_secret_from_seed: small clean-up 2018-11-05 19:58:20 +01:00
Janus
43e2f4ae35
fix derive_secret 2018-11-05 19:58:19 +01:00
SomberNight
b15a74c95a
get_per_commitment_secret_from_seed (not working yet) 2018-11-05 19:58:19 +01:00
Janus
729dde2bb4
lnbase: avoid race while waiting for funding_locked, wait for un-reversed hash 2018-11-05 19:58:18 +01:00
Janus
0e042384a4
complete bolt11 port to ecdsa instead of secp256k1 2018-11-05 19:58:18 +01:00
SomberNight
42b222a8b8
channel_establishment_flow: wait for confirmations of funding txn 2018-11-05 19:58:17 +01:00
ThomasV
b8ab08b2cc
lnbase: fix parameters to make_commitment in htlc test 2018-11-05 19:58:16 +01:00
SomberNight
8b7b3382b0
transaction.py: shortcut witness/scriptSig serialisation 2018-11-05 19:58:16 +01:00
ThomasV
af67aff4fc
lnbase: fix initial commitment transaction 2018-11-05 19:58:13 +01:00
SomberNight
0ac170e0ae
refactor storage of channels, path finding 2018-11-05 19:58:13 +01:00
Janus
122ad8a50c
lnbase: more work on make_htlc_tx 2018-11-05 19:58:12 +01:00
Janus
9246b2a187
lnbase: make_htlc_tx 2018-11-05 19:58:11 +01:00