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 |
|
SomberNight
|
3b938160d1
|
make key derivation reasonable
no more hardcoded secrets, no more key-reuse
|
2018-11-05 20:18:45 +01:00 |
|
Janus
|
77479068c5
|
accept channel opening requests initiated by remote
|
2018-11-05 20:18:43 +01:00 |
|
SomberNight
|
4bd99243ff
|
fix lnworker.choose_preferred_address
|
2018-11-05 20:18:42 +01:00 |
|
Janus
|
ef67f1e18a
|
new network API: use broadcast_transaction with run_from_other_thread
|
2018-11-05 20:18:41 +01:00 |
|
Janus
|
cfc566c93c
|
lnworker.pay(): lightning-integration support
|
2018-11-05 20:18:40 +01:00 |
|
Janus
|
91a319ec1c
|
lnworker: add missing import
|
2018-11-05 20:18:40 +01:00 |
|
Janus
|
4b2fa6a828
|
move connection string decoding to lnworker, fix test_lnutil
|
2018-11-05 20:18:38 +01:00 |
|
Janus
|
634c39b6b0
|
ln: commit fee updates as soon as possible
|
2018-11-05 20:18:35 +01:00 |
|