Commit graph

70 commits

Author SHA1 Message Date
Janus
edf6fe7a94 lnbase: improve htlc_tx generation (only localsig wrong) 2019-08-20 09:03:09 +02:00
SomberNight
3e899caaf4 get_per_commitment_secret_from_seed: small clean-up 2019-08-20 09:03:09 +02:00
Janus
b523085fa3 fix derive_secret 2019-08-20 09:03:09 +02:00
SomberNight
576a74a48a get_per_commitment_secret_from_seed (not working yet) 2019-08-20 09:03:09 +02:00
Janus
f0e19ffdfd lnbase: avoid race while waiting for funding_locked, wait for un-reversed hash 2019-08-20 09:03:09 +02:00
SomberNight
4aa9d7ea0d channel_establishment_flow: wait for confirmations of funding txn 2019-08-20 09:03:09 +02:00
ThomasV
a4809245b3 add processing flow for funding_locked 2019-08-20 09:03:09 +02:00
SomberNight
22f6deacb8 transaction.py: shortcut witness/scriptSig serialisation 2019-08-20 09:03:09 +02:00
Janus
fc822ab927 lnbase: add some comments 2019-08-20 09:03:09 +02:00
ThomasV
5f4328fb3a lnbase: fix initial commitment transaction 2019-08-20 09:03:09 +02:00
SomberNight
815079efe0 refactor storage of channels, path finding 2019-08-20 09:03:09 +02:00
Janus
f278833c40 lnbase: more work on make_htlc_tx 2019-08-20 09:03:09 +02:00
Janus
d7244f6708 lnbase: make_htlc_tx 2019-08-20 09:03:09 +02:00
ThomasV
ab7a854f9a fix: use remote_per_commitment_point 2019-08-20 09:03:09 +02:00
ThomasV
8f00bdb0b0 lnbase: derive blinded pubkey 2019-08-20 09:03:09 +02:00
ThomasV
d4377cc073 lnbase: fix variable name 2019-08-20 09:03:09 +02:00
ThomasV
6c4c2267f8 lnbase: add privkey derivation 2019-08-20 09:03:09 +02:00
ThomasV
aa8700d0b3 lnbase: key derivation (WIP) 2019-08-20 09:03:09 +02:00
Janus
4b8f279d50 lnbase: test signing of first htlc test case 2019-08-20 09:03:09 +02:00
Janus
fa86dda983 lnbase: make_received_htlc 2019-08-20 09:03:09 +02:00
ThomasV
6ba846bff0 fix hash in make_offered_htlc 2019-08-20 09:03:09 +02:00
SomberNight
f8f365f1ea naive route finding 2019-08-20 09:03:09 +02:00
Janus
a23aac76d3 lnbase: offered htlc script construction 2019-08-20 09:03:09 +02:00
ThomasV
1bc6958c83 use acceptable variable names 2019-08-20 09:03:09 +02:00
ThomasV
60d6080fe5 lightning: separate testing from main code 2019-08-20 09:03:09 +02:00
ThomasV
1c3e9b0cf8 lightning: store network view 2019-08-20 09:03:09 +02:00
ThomasV
e4b188c714 lnbase: parse ipv6, fix transport bug 2019-08-20 09:03:09 +02:00
ThomasV
d212c90ed9 lnbase: fix read_message, reduce verbosity 2019-08-20 09:03:09 +02:00
ThomasV
8e7df0be71 lnbase: implement key rotation, request initial sync in localfeatures 2019-08-20 09:03:09 +02:00
ThomasV
969708316c lnbase: verify signature in node_announcement 2019-08-20 09:03:09 +02:00
SomberNight
b662a9d87b bitcoin.py: implement add_number_to_script. fix CSV arg in make_commitment. 2019-08-20 09:03:09 +02:00
ThomasV
57b63cf490 lnbase: fix test 2019-08-20 09:03:09 +02:00
SomberNight
98f46dbaf5 implement script_num_to_hex. fix encoding of argument for CSV in make_commitment 2019-08-20 09:03:09 +02:00
SomberNight
aaa67adb5a fixes for make_commitment, but still incorrect destination address (csv arg?) 2019-08-20 09:03:09 +02:00
ThomasV
eca8d13e37 lnbase: fix tx amounts 2019-08-20 09:03:09 +02:00
ThomasV
316f9a3954 lnbase: fix locktime and nsequence 2019-08-20 09:03:09 +02:00
ThomasV
7b6f64a402 lnbase: create unit test for commitment tx 2019-08-20 09:03:09 +02:00
ThomasV
52ae63990f lnbase: fix signature index 2019-08-20 09:03:09 +02:00
ThomasV
ba99795131 lnbase: initial commitment transaction 2019-08-20 09:03:09 +02:00
ThomasV
451d52281a lnbase: fix funding address, funding_output_index 2019-08-20 09:03:09 +02:00
ThomasV
5a4ab74c77 follow up 1aac9e59ed957898fceef99b29b9cc17d7843569 2019-08-20 09:03:09 +02:00
ThomasV
dd73a4596e lnbase: communication privkey belongs to peer 2019-08-20 09:03:09 +02:00
Janus
668c3887d6 lnbase: more parts of channel establishment 2019-08-20 09:03:09 +02:00
Janus
2353415445 lnbase: remove unnecessary try/except 2019-08-20 09:03:09 +02:00
Janus
e7b92b8184 lnbase: lnbase_test must use threadsafe task submission 2019-08-20 09:03:09 +02:00
ThomasV
9781201fa0 lnbase: decorator that handles exceptions 2019-08-20 09:03:09 +02:00
Janus
483ec42156 lnbase: fix shutdown when lnbase has exception in main_loop 2019-08-20 09:03:09 +02:00
Janus
e906e6e90a lnbase: print exceptions from main_loop 2019-08-20 09:03:09 +02:00
Janus
b9ca972445 lnbase: initialize loop variable in main 2019-08-20 09:03:09 +02:00
Janus
9617447a0f lnbase: add lnbase_test 2019-08-20 09:03:09 +02:00