Commit graph

10157 commits

Author SHA1 Message Date
ThomasV
1aa624c96c
make on_update_add_htlc async 2018-11-05 20:23:55 +01:00
SomberNight
d5f83c827a
follow-up prev 2018-11-05 20:23:55 +01:00
SomberNight
1de6e7f673
fix multi-hop payments 2018-11-05 20:23:54 +01:00
Janus
0b2f539c81
lnchan: add available_to_spend() 2018-11-05 20:23:54 +01:00
Janus
c7ccaabcc2
lnchan: make function for onion_keys decoding/encoding 2018-11-05 20:23:54 +01:00
ThomasV
cb0cebba0c
follow-up 3460ba738e 2018-11-05 20:23:53 +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
8ed199b87a
revert rbf on funding tx 2018-11-05 20:23:52 +01:00
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