Commit graph

31 commits

Author SHA1 Message Date
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
ThomasV
70dd4d1235 lnbase: expose wallet object in LNWorker 2019-08-20 09:03:09 +02:00
Janus
e1824233b5 lnbase: merge initialize and main_loop 2019-08-20 09:03:09 +02:00
Janus
7bd3cbf567 lnbase: handle error during channel establishment 2019-08-20 09:03:09 +02:00
Janus
78119f9733 lnbase: channel establishment flow, avoid using Wallet instance 2019-08-20 09:03:09 +02:00
ThomasV
1f5852bd15 lnbase: use relative imports 2019-08-20 09:03:09 +02:00
Janus
784b06f1b9 lnbase: support simnet/testnet, create accepted open_channel message 2019-08-20 09:03:09 +02:00
Janus
ab2e03fcb5 lnbase: use valid pubkeys in open_channel 2019-08-20 09:03:09 +02:00
Janus
304c4b0222 lnbase: try sending open_channel 2019-08-20 09:03:09 +02:00
ThomasV
d8eedf514d lnbase: add draft handlers 2019-08-20 09:03:09 +02:00
Janus
fc2864cb63 lnbase: avoid reimplementing int.to_bytes 2019-08-20 09:03:09 +02:00
Janus
f2066c4629 lnbase: avoid reimplementing int.from_bytes 2019-08-20 09:03:09 +02:00
Janus
94b87ac7d1 lnbase: do not catch all exceptions, tolerate calculations with variables from kwargs 2019-08-20 09:03:09 +02:00
ThomasV
3795770b37 integrate lnbase with network 2019-08-20 09:03:09 +02:00
ThomasV
0fac793735 lnbase: process ping messages 2019-08-20 09:03:09 +02:00
ThomasV
98707a3624 lnbase: create main loop 2019-08-20 09:03:09 +02:00
ThomasV
bcb268d554 lnbase: save buffer for next read 2019-08-20 09:03:09 +02:00
ThomasV
7421bffaa2 lnbase: Peer class 2019-08-20 09:03:09 +02:00
ThomasV
692bc148bb lnbase: fix json loading and indentation 2019-08-20 09:03:09 +02:00
Janus
c69f812f13 lightning: do not list python files as resources, use lightning spec generated serialization 2019-08-20 09:03:09 +02:00
ThomasV
cbf8d4c781 lightning network base 2019-08-20 09:03:09 +02:00