Commit graph

10148 commits

Author SHA1 Message Date
SomberNight
ab61a7592e
lnbase: fix peer clean-up 2018-11-05 20:23:51 +01:00
ThomasV
bcf202c465
improve suggest_peers; add htlcs to list_channels. 2018-11-05 20:23:51 +01:00
ThomasV
3c1fbc2247
funding tx: use fees from config and set rbf 2018-11-05 20:23:50 +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
763eaec21e
lnrouter: use htlc_maximum_msat 2018-11-05 20:23:48 +01:00
SomberNight
3dad632472
lnworker: make add_peer async 2018-11-05 20:23:48 +01:00
ThomasV
7091e59df3
follow-up prev commit: channel_flags, message_flags, htlc_maximum_msat 2018-11-05 20:23:47 +01:00
ThomasV
1112e72e9d
add htlc_maximum_msat feature (bolt7) 2018-11-05 20:23:47 +01:00
SomberNight
f29a88147a
lnbase: typo in on_channel_reestablish 2018-11-05 20:23:46 +01:00
SomberNight
2d0cabbc5f
path finding: minor clean-up 2018-11-05 20:23:46 +01:00
Janus
e85226a6b3
make function for determining who pays fee 2018-11-05 20:23:46 +01:00
SomberNight
77ce64bc58
fix prev 2018-11-05 20:23:45 +01:00
ThomasV
ecb6922456
lnrouter: filter out unsuitable channels 2018-11-05 20:23:45 +01:00
ThomasV
42ada7ffc4
gather definitions of LN exceptions 2018-11-05 20:23:44 +01:00
ThomasV
560a8e99ac
fix tests (follow-up previous commit) 2018-11-05 20:23:44 +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
SomberNight
a124e7ebf9
fix tests 2018-11-05 20:23:42 +01:00
SomberNight
bcb7da938d
follow-up prev 2018-11-05 20:23:41 +01:00
SomberNight
0fbbc7b060
channel verifier: NetworkJobOnDefaultServer, and some error handling 2018-11-05 20:23:41 +01:00
ThomasV
1a108b86f8
start channel verifier in network.start() 2018-11-05 20:23:40 +01:00
ThomasV
d4527b84c1
add 'recḱless' option to allow using lightning on mainnet 2018-11-05 20:22:45 +01:00
ThomasV
5243ca97d9
minor fix 2018-11-05 20:22:44 +01:00
ThomasV
7cbb186167
fix race between network and lnwatcher (network.add_job does not always work) 2018-11-05 20:22:43 +01:00
ThomasV
1e3a91964d
add watchtower class, send encumbered tx as json 2018-11-05 20:19:05 +01:00
SomberNight
4e8d019d8d
fix tests 2018-11-05 20:19:05 +01:00
SomberNight
dc43341717
rebase follow-up 2018-11-05 20:19:04 +01:00
Janus
04741512ce
lnbase: resend revoke_and_ack if necessary 2018-11-05 20:19:04 +01:00
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