Commit Graph

31 Commits

Author SHA1 Message Date
ThomasV
f8d868e89a lnbase: fix funding address, funding_output_index 2018-06-26 19:28:29 +02:00
ThomasV
812e9fcca6 follow up 1aac9e59ed957898fceef99b29b9cc17d7843569 2018-06-26 19:28:29 +02:00
ThomasV
17a9c8e417 lnbase: communication privkey belongs to peer 2018-06-26 19:28:29 +02:00
Janus
ed7961c0ce lnbase: more parts of channel establishment 2018-06-26 19:28:29 +02:00
Janus
ce5ae70d20 lnbase: remove unnecessary try/except 2018-06-26 19:28:29 +02:00
Janus
dc934ce9e5 lnbase: lnbase_test must use threadsafe task submission 2018-06-26 19:28:29 +02:00
ThomasV
9a2fba81e7 lnbase: decorator that handles exceptions 2018-06-26 19:28:29 +02:00
Janus
d45a6a5069 lnbase: fix shutdown when lnbase has exception in main_loop 2018-06-26 19:28:29 +02:00
Janus
89850de99b lnbase: print exceptions from main_loop 2018-06-26 19:28:29 +02:00
Janus
470d6071ea lnbase: initialize loop variable in main 2018-06-26 19:28:29 +02:00
Janus
5e0def63c6 lnbase: add lnbase_test 2018-06-26 19:28:29 +02:00
ThomasV
37d73c3165 lnbase: expose wallet object in LNWorker 2018-06-26 19:28:29 +02:00
Janus
51a31051bd lnbase: merge initialize and main_loop 2018-06-26 19:28:29 +02:00
Janus
7fb777828a lnbase: handle error during channel establishment 2018-06-26 19:28:29 +02:00
Janus
abe436fa9a lnbase: channel establishment flow, avoid using Wallet instance 2018-06-26 19:28:29 +02:00
ThomasV
3869463f62 lnbase: use relative imports 2018-06-26 19:28:29 +02:00
Janus
2b6c550aee lnbase: support simnet/testnet, create accepted open_channel message 2018-06-26 19:28:29 +02:00
Janus
09141f6767 lnbase: use valid pubkeys in open_channel 2018-06-26 19:28:29 +02:00
Janus
29b8ba95c9 lnbase: try sending open_channel 2018-06-26 19:28:29 +02:00
ThomasV
4836aefbe8 lnbase: add draft handlers 2018-06-26 19:28:29 +02:00
Janus
d2493457ac lnbase: avoid reimplementing int.to_bytes 2018-06-26 19:28:29 +02:00
Janus
27132ec4dd lnbase: avoid reimplementing int.from_bytes 2018-06-26 19:28:29 +02:00
Janus
a8320ef6f5 lnbase: do not catch all exceptions, tolerate calculations with variables from kwargs 2018-06-26 19:28:29 +02:00
ThomasV
c4d20e0ce8 integrate lnbase with network 2018-06-26 19:28:29 +02:00
ThomasV
411f188daf lnbase: process ping messages 2018-06-26 19:28:29 +02:00
ThomasV
ca532df193 lnbase: create main loop 2018-06-26 19:28:29 +02:00
ThomasV
c5fdf0d8ba lnbase: save buffer for next read 2018-06-26 19:28:29 +02:00
ThomasV
35fb996a8a lnbase: Peer class 2018-06-26 19:28:29 +02:00
ThomasV
339b1778f7 lnbase: fix json loading and indentation 2018-06-26 19:28:29 +02:00
Janus
9a343e0cd2 lightning: do not list python files as resources, use lightning spec generated serialization 2018-06-26 19:28:29 +02:00
ThomasV
26c09a84e4 lightning network base 2018-06-26 19:28:29 +02:00