Commit Graph

4091 Commits

Author SHA1 Message Date
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
6b044bf2ae network: do not acquire lightninglock for lnbase 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
ThomasV
48dae8fadf fix asyncio loop 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
Janus
2a26544bb4 lightning: qt channel dialog, fix for shutdown when lightning disabled 2018-06-26 19:28:29 +02:00
Janus
1a04eb3ae4 kivy: paste test seed using xclip, lightning: do not catch BaseException unnecessarily, fix clearSubscribers, detect passworded wallet correctly 2018-06-26 19:28:29 +02:00
ThomasV
bbb9911904 simplify parameters, add lndhost to config 2018-06-26 19:28:29 +02:00
Janus
18aaf674c3 lightning: add --simnet and --lightning switches 2018-06-26 19:28:29 +02:00
Janus
6f4ac2779b lightning: assert result type, add invoice qr dialog 2018-06-26 19:27:04 +02:00
Janus
b0fdec3d6d lightning: kivy: open channel button in invoice 2018-06-26 19:27:04 +02:00
Janus
81ab10d6e2 lightning: python3.5 compat 2018-06-26 19:26:38 +02:00
Janus
54bf3c2bc9 lightning: add missing import, set console to none initially 2018-06-26 19:26:38 +02:00
Janus
c9f7c4026f lightning: do not require lock for broadcast tx, it is thread-safe 2018-06-26 19:26:38 +02:00
Janus
8601e7cb7e lightning: save key derivation point 2018-06-26 19:26:38 +02:00
Janus
727b04ffa2 lightning: separate thread for publish transaction 2018-06-26 19:26:38 +02:00
Janus
6a3118c42f lightning: use queueing lock 2018-06-26 19:26:38 +02:00
Janus
f5e3da3e56 lightning: less junk on console, quicker shutdown 2018-06-26 19:26:38 +02:00
Janus
155f62f7d4 lightning: don't receive too much data, workaround by reading byte by byte 2018-06-26 19:26:38 +02:00
Janus
a10365e6de lightning: fix syntax 2018-06-26 19:26:38 +02:00
Janus
fdd47454f3 lightning: complete moving of lightning objects, acquire net/wallet lock while answering lightning requests 2018-06-26 19:26:07 +02:00
Janus
6fe733a8f9 lightning: misc patches, launch asyncio loop on separate thread 2018-06-26 19:24:26 +02:00
Janus
a9444e02a9 lightning: march 2018 rebase, without integration 2018-06-26 19:24:26 +02:00
ThomasV
f24a449d37
Merge pull request #4463 from maschwanden/master
Daemon: Fix preflight CORS request handling
2018-06-26 17:09:13 +02:00
SomberNight
4dcefa7d3b
network: fix fork detection in certain backward search cases
if there are no checkpoints and the split is very old, the exponential backward search might undershoot so that it asks for the genesis block but 0 and None are not distinguished hence the fork detection logic fails
2018-06-26 16:56:30 +02:00
ThomasV
5a5502303f make add_signature_to_txin an instance method 2018-06-26 13:09:02 +02:00