Commit graph

9785 commits

Author SHA1 Message Date
Janus
4516a27e37
use same servers for simnet as for regtest 2018-11-05 19:58:14 +01:00
Janus
5f549b931b
lightning-hub: update rpc stubs, do not ignore them in gitignore 2018-11-05 19:58:14 +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
cc4b9edf11
avoid duplicating bech32 module 2018-11-05 19:58:12 +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
ThomasV
6d5e240b1c
fix: use remote_per_commitment_point 2018-11-05 19:58:11 +01:00
ThomasV
ad5b1e4268
lnbase: derive blinded pubkey 2018-11-05 19:58:10 +01:00
ThomasV
a677a39bc0
lnbase: fix variable name 2018-11-05 19:58:10 +01:00
ThomasV
56901f709c
lnbase: add privkey derivation 2018-11-05 19:58:09 +01:00
ThomasV
dc97fccb0a
add test for key derivation 2018-11-05 19:58:09 +01:00
ThomasV
2f657b467a
lnbase: key derivation (WIP) 2018-11-05 19:58:09 +01:00
Janus
30581b32f1
lnbase: test signing of first htlc test case 2018-11-05 19:58:08 +01:00
Janus
3160ea30fd
lnbase: make_received_htlc 2018-11-05 19:58:08 +01:00
ThomasV
b726d77bdc
fix hash in make_offered_htlc 2018-11-05 19:58:07 +01:00
ThomasV
635d924dff
cleanup lnbase tests 2018-11-05 19:58:07 +01:00
Janus
c1f70dd738
lightning-hub: remove path hack, use relative imports 2018-11-05 19:58:06 +01:00
SomberNight
6115c0a15e
naive route finding 2018-11-05 19:58:06 +01:00
Janus
07a9ab8fae
lnbase: offered htlc script construction 2018-11-05 19:58:05 +01:00
ThomasV
9abad8e5bd
use acceptable variable names 2018-11-05 19:58:05 +01:00
ThomasV
dccec08aa3
lightning: separate testing from main code 2018-11-05 19:58:04 +01:00
ThomasV
ae27446b61
lightning: store network view 2018-11-05 19:58:04 +01:00
ThomasV
9088b25a06
lnbase: parse ipv6, fix transport bug 2018-11-05 19:58:03 +01:00
ThomasV
f68b186be0
lnbase: fix read_message, reduce verbosity 2018-11-05 19:58:03 +01:00
ThomasV
8a58516782
lnbase: implement key rotation, request initial sync in localfeatures 2018-11-05 19:58:02 +01:00
ThomasV
c2de68fd43
lnbase: verify signature in node_announcement 2018-11-05 19:58:02 +01:00
SomberNight
0cc5241a1e
bitcoin.py: implement add_number_to_script. fix CSV arg in make_commitment. 2018-11-05 19:58:01 +01:00
ThomasV
6798eb3916
lnbase: fix test 2018-11-05 19:58:01 +01:00
SomberNight
181bc6448a
implement script_num_to_hex. fix encoding of argument for CSV in make_commitment 2018-11-05 19:58:00 +01:00
Janus
4694a365f5
lightning_channels_list: use signals to avoid segfault 2018-11-05 19:58:00 +01:00
SomberNight
34f54f8a43
fixes for make_commitment, but still incorrect destination address (csv arg?) 2018-11-05 19:57:59 +01:00
ThomasV
dc219e04d3
lnbase: fix tx amounts 2018-11-05 19:57:59 +01:00
Janus
3b0e72038c
lightning-hub: include ln relative to current directory 2018-11-05 19:57:59 +01:00
Janus
3d5fa38798
lnbase_test: add first commitment tx with 5 htlcs test 2018-11-05 19:57:58 +01:00
ThomasV
d047f45a0c
lnbase: fix locktime and nsequence 2018-11-05 19:57:58 +01:00
Janus
9f1f72d55f
lnbase_test: insert remote_signature and compare fields independently 2018-11-05 19:57:57 +01:00
ThomasV
d276687faa
lnbase: create unit test for commitment tx 2018-11-05 19:57:57 +01:00
ThomasV
cd89340f61
lnbase: fix signature index 2018-11-05 19:57:56 +01:00
ThomasV
4b1aac7876
lnbase: initial commitment transaction 2018-11-05 19:57:56 +01:00
ThomasV
a5cfc95314
lnbase: fix funding address, funding_output_index 2018-11-05 19:57:55 +01:00
ThomasV
ff80d1aa26
follow up 1aac9e59ed957898fceef99b29b9cc17d7843569 2018-11-05 19:57:55 +01:00
ThomasV
79228c9ad8
lnbase: communication privkey belongs to peer 2018-11-05 19:57:54 +01:00
Janus
b3d7b8d54b
lnbase: more parts of channel establishment 2018-11-05 19:57:54 +01:00
Janus
9aad85e6a7
lnbase: remove unnecessary try/except 2018-11-05 19:57:53 +01:00
Janus
bf3c9dd234
lnbase: lnbase_test must use threadsafe task submission 2018-11-05 19:57:53 +01:00
ThomasV
f62887e565
lnbase: decorator that handles exceptions 2018-11-05 19:57:52 +01:00
Janus
177286ab1d
lnbase: fix shutdown when lnbase has exception in main_loop 2018-11-05 19:57:52 +01:00
Janus
9474ce1a22
lnbase: print exceptions from main_loop 2018-11-05 19:57:52 +01:00
Janus
39a409336c
lnbase: initialize loop variable in main 2018-11-05 19:57:51 +01:00