Commit graph

4130 commits

Author SHA1 Message Date
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
Janus
752f0379d3
lnbase: add lnbase_test 2018-11-05 19:57:51 +01:00
ThomasV
23c32b9eda
lnbase: expose wallet object in LNWorker 2018-11-05 19:57:50 +01:00
Janus
567dfe62e3
lnbase: merge initialize and main_loop 2018-11-05 19:57:50 +01:00
Janus
9c2b0786be
lnbase: handle error during channel establishment 2018-11-05 19:57:49 +01:00
Janus
21b2fa1b1a
lnbase: channel establishment flow, avoid using Wallet instance 2018-11-05 19:57:49 +01:00
ThomasV
2fd5bae0fd
lnbase: use relative imports 2018-11-05 19:57:48 +01:00
Janus
a9027db7dc
lnbase: support simnet/testnet, create accepted open_channel message 2018-11-05 19:57:48 +01:00
Janus
58096addd5
lnbase: use valid pubkeys in open_channel 2018-11-05 19:57:47 +01:00
Janus
70f7c11ac5
lnbase: try sending open_channel 2018-11-05 19:57:47 +01:00
ThomasV
94bc353731
lnbase: add draft handlers 2018-11-05 19:57:46 +01:00
Janus
bea30e7da1
lnbase: avoid reimplementing int.to_bytes 2018-11-05 19:57:46 +01:00
Janus
24d52009b0
lnbase: avoid reimplementing int.from_bytes 2018-11-05 19:57:45 +01:00
Janus
740c694ba0
lnbase: do not catch all exceptions, tolerate calculations with variables from kwargs 2018-11-05 19:57:45 +01:00
ThomasV
6e6cec3097
integrate lnbase with network 2018-11-05 19:57:45 +01:00
ThomasV
a774aeaf8c
lnbase: process ping messages 2018-11-05 19:57:44 +01:00
ThomasV
459c702349
lnbase: create main loop 2018-11-05 19:57:44 +01:00
ThomasV
ad95118c0e
lnbase: save buffer for next read 2018-11-05 19:57:43 +01:00
ThomasV
2cb1799ee5
lnbase: Peer class 2018-11-05 19:57:43 +01:00
ThomasV
c9bf00546d
lnbase: fix json loading and indentation 2018-11-05 19:57:42 +01:00
Janus
d997969eb3
lightning: do not list python files as resources, use lightning spec generated serialization 2018-11-05 19:57:42 +01:00
ThomasV
acddc05dab
lightning network base 2018-11-05 19:57:41 +01:00
Janus
d7cb740435
lightning: do not catch BaseException unnecessarily, fix clearSubscribers, detect passworded wallet correctly 2018-11-05 19:57:40 +01:00
ThomasV
3fda24b984
simplify parameters, add lndhost to config 2018-11-05 19:57:39 +01:00
Janus
f708db95ed
lightning: add --simnet and --lightning switches 2018-11-05 19:57:39 +01:00
Janus
e48ad713c3
lightning: assert result type, add invoice qr dialog 2018-11-05 19:57:37 +01:00
Janus
5bf7fb87e3
lightning: kivy: open channel button in invoice 2018-11-05 19:57:37 +01:00
Janus
aa492872d0
lightning: python3.5 compat 2018-11-05 19:57:36 +01:00
Janus
acd1d6bd17
lightning: add missing import, set console to none initially 2018-11-05 19:57:35 +01:00
Janus
fba9072c15
lightning: do not require lock for broadcast tx, it is thread-safe 2018-11-05 19:57:34 +01:00
Janus
c90bbf8d27
lightning: save key derivation point 2018-11-05 19:57:34 +01:00
Janus
2046859bf3
lightning: separate thread for publish transaction 2018-11-05 19:57:33 +01:00
Janus
8f681e13a2
lightning: use queueing lock 2018-11-05 19:57:33 +01:00
Janus
c3aa6e30cd
lightning: less junk on console, quicker shutdown 2018-11-05 19:57:32 +01:00
Janus
e184b613e9
lightning: don't receive too much data, workaround by reading byte by byte 2018-11-05 19:56:57 +01:00
Janus
df910ec1de
lightning: complete moving of lightning objects, acquire net/wallet lock while answering lightning requests 2018-11-05 19:56:56 +01:00