Commit graph

51 commits

Author SHA1 Message Date
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
SomberNight
2d24ac150a
fix lnwatcher: network triggers were renamed 2018-11-05 20:18:29 +01:00
ThomasV
4e68befcf8
fix: broadcast_transaction from non network thread 2018-11-05 20:18:27 +01:00
Janus
137bf72602
ln: cooperative close with remote peer initiating 2018-11-05 20:16:13 +01:00
Janus
d3a1c8ce42
lnwatcher rebased 2018-11-05 20:16:10 +01:00
Janus
9ccf80200b
lightning: post aiorpcx rebase fixup 2018-11-05 20:16:09 +01:00
SomberNight
7baf428cb8
remove our closed channels from channeldb. note some FIXMEs
payment were attempting to use the closed channels.
2018-11-05 20:16:09 +01:00
SomberNight
9b0ac5cc45
rebase follow-up: use namedtuples from master in new code (TxOutput, TxMinedStatus) 2018-11-05 20:16:08 +01:00
SomberNight
dea0c7ebbf
qt: pay_lightning_invoice - attempt paying multiple times in case of failure 2018-11-05 20:16:07 +01:00
SomberNight
36ce46ed70
ln onchain fees: use 2 block ETAs with 150 s/b fallback 2018-11-05 20:16:05 +01:00
SomberNight
985d15dc8e
more reliable peer and channel re-establishing 2018-11-05 20:16:04 +01:00
SomberNight
a56eb29880
lnworker: fix confusion re what is in self.peers 2018-11-05 20:16:04 +01:00
SomberNight
3447d8504b
don't connect to same peer multiple times 2018-11-05 20:16:04 +01:00
SomberNight
a16388dbc8
persist recent peers. implement dns seed bootstrapping.
dns seeds are currently disabled though, as they always seem to return mainnet nodes.
2018-11-05 20:16:03 +01:00
SomberNight
4537f2bcd5
persist nodes in channel_db on disk 2018-11-05 20:15:57 +01:00
Janus
67c69d7042
special case receiving payment after fee update, fee update injector 2018-11-05 20:08:46 +01:00
SomberNight
ef39459e90
avoid crash if don't have peer for open channel 2018-11-05 20:05:58 +01:00
SomberNight
037290a9a8
allow paying invoice without amount. min feerate 253 sat/kw. 2018-11-05 20:05:56 +01:00
Janus
fc147242e1
ln: fix race in on_network_update 2018-11-05 20:05:55 +01:00
Janus
05300a01e6
ln: send update_fee on fee change, handle nodes without data_protect 2018-11-05 20:05:54 +01:00
SomberNight
8c24e2101d
qt channels list: update channel when detecting close 2018-11-05 20:05:52 +01:00
Janus
d9208f3245
move channel_state into HTLCStateMachine 2018-11-05 20:05:51 +01:00
ThomasV
f6aae9e399
fix crash in lnworker main_loop 2018-11-05 20:05:47 +01:00
ThomasV
841124ce47
add peer suggestion to open channel dialog. move add_peer code back to lnworker constructor 2018-11-05 20:05:46 +01:00
ThomasV
2fd3a1ca72
add lnworker.main_loop to network.futures so it gets cancelled on exit. fix aiosafe verbosity. 2018-11-05 20:05:46 +01:00
ThomasV
ae389ae5e2
LNWorker: connect to multiple peers.
save exceptions in aiosafe.
enable adding peer in GUI.
2018-11-05 20:05:45 +01:00