Commit graph

10216 commits

Author SHA1 Message Date
ThomasV
0c52c1cc8d
watchtower: use network job, catch exceptions 2018-11-05 20:19:04 +01:00
ThomasV
bdb54ef8ca
remote watchtower: initial commit 2018-11-05 20:19:03 +01:00
Janus
786ead4d83
rebase fixup: use new broadcast_transaction API 2018-11-05 20:19:03 +01:00
Janus
b21fb16803
lnbase: use 45000 feerate on regtest for eclair compatibility 2018-11-05 20:19:02 +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
e1f37a17f3
lnhtlc: only store feerate once, don't store heights since we do not roll back 2018-11-05 20:19:00 +01:00
Janus
ab2ca4d018
lnhtlc: merge config and state, remove unnecessary properties 2018-11-05 20:19:00 +01:00
Janus
ab991ce207
lnhtlc: remove lookup_htlc, use heterogeneously typed lists 2018-11-05 20:18:59 +01:00
Janus
7cb76fee84
lnhtlc: save settled htlc amounts separately 2018-11-05 20:18:59 +01:00
Janus
d480d52c1c
qt channels_list: use repr() and not str() for exceptions 2018-11-05 20:18:58 +01:00
ThomasV
a8969d8822
fix previous commit 2018-11-05 20:18:58 +01:00
ThomasV
639e4ae8ca
follow-up 1c8a4bcfa497b117e4511c2f108dbca8a1adb793 2018-11-05 20:18:58 +01:00
SomberNight
048d9c7332
lnbase: handle some error codes re htlc failures ('UPDATE' flag) 2018-11-05 20:18:57 +01:00
SomberNight
93134c49c5
lnonion: use IntEnum and IntFlag for failure codes 2018-11-05 20:18:57 +01:00
SomberNight
a3dabbf889
handle failing htlc after restart 2018-11-05 20:18:56 +01:00
SomberNight
ea6406c5be
clean up local/global features 2018-11-05 20:18:56 +01:00
SomberNight
1479a50eb7
on_channel_reestablish: try to get remote to force close channel if out-of-sync.
see ACINQ/eclair#727 and lightningnetwork/lnd#1904
2018-11-05 20:18:55 +01:00
SomberNight
9578bfca12
on_update_fail_htlc: don't send commitment without changes
c-lightning was force-closing channels with us: "[lnbase:127.0.0.1] error commit_sig with no changes"
2018-11-05 20:18:55 +01:00
SomberNight
bea5fd8ba8
simplify ChannelDB.on_channel_update 2018-11-05 20:18:54 +01:00
SomberNight
c6f0dbbca4
travis: don't build binaries on ln branch 2018-11-05 20:18:54 +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
SomberNight
b9e281a5fa
lnaddr: clean up imports 2018-11-05 20:18:52 +01:00
ThomasV
c654856cef
follow-up previous commit 2018-11-05 20:18:51 +01:00
ThomasV
cf6519ee0e
get rid of callbacks in lnwatcher, use network events instead 2018-11-05 20:18:51 +01:00
ThomasV
1b11fc2f79
lightning: fix tests 2018-11-05 20:18:50 +01:00
SomberNight
f680708b87
follow-up lnwatcher changes 2018-11-05 20:18:50 +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
89460aecd8
aiosafe: define user visible exception class 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
3e1862bb94
fix race between lnwatcher/lnworker
channels were sometimes not getting re-established
2018-11-05 20:18:47 +01:00
SomberNight
8a14993f9b
fix tests 2018-11-05 20:18:47 +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
0a67872e83
fix lnwatcher for channels initiated by remote 2018-11-05 20:18:45 +01:00
SomberNight
d12107e743
lnutil: missing import 2018-11-05 20:18:45 +01:00
Janus
d2249dc9c3
lnhtlc: don't save FeeUpdates to disk, only keep FeeUpdate in memory while in progress 2018-11-05 20:18:44 +01:00
Janus
6be8b5994a
ln: fix opening of channels (NameErrors) 2018-11-05 20:18:44 +01:00
Janus
7d5e1a0932
lnbase: update gui after accomodating channel opening request 2018-11-05 20:18:43 +01:00
Janus
77479068c5
accept channel opening requests initiated by remote 2018-11-05 20:18:43 +01:00
SomberNight
041e84109c
lnchannelverifier: (minor) use named fields of namedtuple 2018-11-05 20:18:42 +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