Commit graph

84 commits

Author SHA1 Message Date
Janus
f6ee7adabd Kivy: Lightning support in Receive tab 2018-11-13 21:17:54 +01:00
Janus
6e69c9ed1a Kivy: open channel dialog 2018-11-12 18:02:15 +01:00
Janus
a6601dc0d7 Kivy: Support Lightning in Send tab 2018-11-08 11:38:18 +01:00
Janus
405ed49028 add command for listing invoices and their progress, fix list_channels 2018-11-07 17:44:49 +01:00
Janus
a774f3339e
avoid leaving FORCE_CLOSING state, rebroadcast closing tx if reorged out 2018-11-05 20:24:16 +01:00
Janus
266d9462f3
move force_close_channel to lnbase, test it, add FORCE_CLOSING state 2018-11-05 20:24:15 +01:00
SomberNight
f411183158
after rebase clean-up 2018-11-05 20:24:11 +01:00
Janus
751942442e
test_lnbase: add test that pays to another local electrum 2018-11-05 20:24:11 +01:00
SomberNight
0b2993cd06
add licence headers to more files 2018-11-05 20:24:10 +01:00
Janus
3866df6650
lnworker: fix listchannels 2018-11-05 20:24:09 +01:00
ThomasV
f8fd131d01
use WaitingDialog to close channels 2018-11-05 20:24:07 +01:00
ThomasV
b38e25844b
add close_channel method to peer 2018-11-05 20:24:07 +01:00
SomberNight
53027d6b2f
lnworker: store invoices based on payment_hash 2018-11-05 20:24:04 +01:00
SomberNight
5c8b5a0b7c
some more type annotations that needed conditional imports 2018-11-05 20:24:02 +01:00
SomberNight
3f53384309
lnrouter: run Dijkstra in reverse direction 2018-11-05 20:24:00 +01:00
SomberNight
78ca70887a
fix confusion re max path length 2018-11-05 20:23:59 +01:00
SomberNight
4fcc766ba5
protect against getting robbed through routing fees 2018-11-05 20:23:59 +01:00
SomberNight
f1ea73a2c6
start failing htlcs 2018-11-05 20:23:58 +01:00
SomberNight
1503227bbf
invoice 'r' field fallback: change cltv to 1 2018-11-05 20:23:57 +01:00
ThomasV
784b4a9d65
encapsulate get_invoice in lnworker 2018-11-05 20:23:56 +01:00
SomberNight
97d1438f5d
lnaddr: encode min_final_cltv into invoice 2018-11-05 20:23:53 +01:00
SomberNight
66cfcd9feb
log if no invoice has no routing hints 2018-11-05 20:23:52 +01:00
ThomasV
bcf202c465
improve suggest_peers; add htlcs to list_channels. 2018-11-05 20:23:51 +01:00
SomberNight
2f9e3067ff
clean-up Peer init 2018-11-05 20:23:50 +01:00
SomberNight
be6a7e432b
if channel_update for our channel is missing, fill invoice with zeroes 2018-11-05 20:23:50 +01:00
SomberNight
3d89cc355d
if payment fails with UPDATE onion error, also utilise channel_update for private channels 2018-11-05 20:23:49 +01:00
Janus
34dff98919
ln: add lightning_listen config option 2018-11-05 20:23:49 +01:00
SomberNight
3dad632472
lnworker: make add_peer async 2018-11-05 20:23:48 +01:00
SomberNight
2d0cabbc5f
path finding: minor clean-up 2018-11-05 20:23:46 +01:00
ThomasV
ecb6922456
lnrouter: filter out unsuitable channels 2018-11-05 20:23:45 +01:00
ThomasV
0e3e43f522
move transport code to its own file 2018-11-05 20:23:43 +01:00
ThomasV
354a4acea5
future and callback are not needed here 2018-11-05 20:23:43 +01:00
Janus
da7f731b93
lnbase: split out BOLT-08 (Noise) implementation 2018-11-05 20:23:42 +01:00
ThomasV
d4527b84c1
add 'recḱless' option to allow using lightning on mainnet 2018-11-05 20:22:45 +01:00
SomberNight
dc43341717
rebase follow-up 2018-11-05 20:19:04 +01:00
ThomasV
97c9a095a4
open_channel: improved success message 2018-11-05 20:19:02 +01:00
ThomasV
591e85c087
run open_channel in a WaitingDialog 2018-11-05 20:19:01 +01:00
Janus
12bc0a75f8
rename lnhtlc->lnchan, HTLCStateMachine->Channel 2018-11-05 20:19:01 +01:00
Janus
ab2ca4d018
lnhtlc: merge config and state, remove unnecessary properties 2018-11-05 20:19:00 +01:00
SomberNight
9716347555
when paying and there are multiple 'r' hints, use one at random 2018-11-05 20:18:54 +01:00
SomberNight
54ce4feb24
use 'r' field in invoice when making payments (routing hints) 2018-11-05 20:18:53 +01:00
SomberNight
37ddb89ec1
make our channels private, and put routing hints in invoices we create 2018-11-05 20:18:53 +01:00
SomberNight
288cfc5af7
lnworker: fix race
sometimes a reestablished channel would not get marked "open"
2018-11-05 20:18:52 +01:00
ThomasV
cf6519ee0e
get rid of callbacks in lnwatcher, use network events instead 2018-11-05 20:18:51 +01:00
ThomasV
6bdd8b87a0
lnwatcher simplification: remove ctn tests and pubkeys 2018-11-05 20:18:50 +01:00
ThomasV
377210bc6f
add more fields to list_channels 2018-11-05 20:18:49 +01:00
ThomasV
297c43863c
lnbase: propagate error messages received in on_error to their relevant coroutines 2018-11-05 20:18:48 +01:00
ThomasV
607eda3a29
create sweep transaction outside of lnwatcher 2018-11-05 20:18:48 +01:00
SomberNight
714b0858f1
lnbase: Peer handles its own disconnection instead of lnworker 2018-11-05 20:18:46 +01:00
SomberNight
8967b5848e
follow-up prev: avoid storage key collision with old 'lightning_privkey' 2018-11-05 20:18:46 +01:00