Commit graph

11175 commits

Author SHA1 Message Date
SomberNight
d511ecdc00 start failing htlcs 2019-08-20 09:03:10 +02:00
SomberNight
ded11b4d9e lnonion: implement error packet construction 2019-08-20 09:03:10 +02:00
SomberNight
dfe61e15c3 invoice 'r' field fallback: change cltv to 1 2019-08-20 09:03:10 +02:00
SomberNight
4b37343c62 unify hardcoded regtest fee 2019-08-20 09:03:10 +02:00
ThomasV
d6b4268fde Qt gui: show messages about payment outcome 2019-08-20 09:03:10 +02:00
ThomasV
02c39a950f encapsulate get_invoice in lnworker 2019-08-20 09:03:10 +02:00
ThomasV
095de2dd22 make on_update_add_htlc async 2019-08-20 09:03:10 +02:00
SomberNight
3ac9858d59 follow-up prev 2019-08-20 09:03:10 +02:00
SomberNight
56c0983e69 fix multi-hop payments 2019-08-20 09:03:10 +02:00
Janus
ac68c8f531 lnchan: add available_to_spend() 2019-08-20 09:03:10 +02:00
Janus
d317bdbd9b lnchan: make function for onion_keys decoding/encoding 2019-08-20 09:03:10 +02:00
ThomasV
c0aee58e4d follow-up 3460ba738e 2019-08-20 09:03:10 +02:00
SomberNight
e6a0b641d5 lnaddr: encode min_final_cltv into invoice 2019-08-20 09:03:10 +02:00
SomberNight
384fd665b3 log if no invoice has no routing hints 2019-08-20 09:03:10 +02:00
ThomasV
d9eb92979b revert rbf on funding tx 2019-08-20 09:03:10 +02:00
SomberNight
a8b9727817 lnbase: fix peer clean-up 2019-08-20 09:03:10 +02:00
ThomasV
87cc312d1e improve suggest_peers; add htlcs to list_channels. 2019-08-20 09:03:10 +02:00
ThomasV
f8894d467f funding tx: use fees from config and set rbf 2019-08-20 09:03:10 +02:00
SomberNight
9de6028fb5 clean-up Peer init 2019-08-20 09:03:10 +02:00
SomberNight
25c2657680 if channel_update for our channel is missing, fill invoice with zeroes 2019-08-20 09:03:10 +02:00
SomberNight
2e5552816c if payment fails with UPDATE onion error, also utilise channel_update for private channels 2019-08-20 09:03:10 +02:00
Janus
962f70c7da ln: add lightning_listen config option 2019-08-20 09:03:10 +02:00
SomberNight
52377dbfa0 lnrouter: use htlc_maximum_msat 2019-08-20 09:03:10 +02:00
SomberNight
ff0aa90ddf lnworker: make add_peer async 2019-08-20 09:03:10 +02:00
ThomasV
8bb23ea2cd follow-up prev commit: channel_flags, message_flags, htlc_maximum_msat 2019-08-20 09:03:10 +02:00
ThomasV
9659d23bde add htlc_maximum_msat feature (bolt7) 2019-08-20 09:03:10 +02:00
SomberNight
79989ad538 lnbase: typo in on_channel_reestablish 2019-08-20 09:03:10 +02:00
SomberNight
a91e244a05 path finding: minor clean-up 2019-08-20 09:03:10 +02:00
Janus
eabe23f6b8 make function for determining who pays fee 2019-08-20 09:03:10 +02:00
SomberNight
cd175f0949 fix prev 2019-08-20 09:03:10 +02:00
ThomasV
9a59ffaf44 lnrouter: filter out unsuitable channels 2019-08-20 09:03:10 +02:00
ThomasV
a0acec9720 gather definitions of LN exceptions 2019-08-20 09:03:10 +02:00
ThomasV
409a336071 fix tests (follow-up previous commit) 2019-08-20 09:03:10 +02:00
ThomasV
445252284f move transport code to its own file 2019-08-20 09:03:10 +02:00
ThomasV
910e85ec01 future and callback are not needed here 2019-08-20 09:03:10 +02:00
Janus
71afa3cc70 lnbase: split out BOLT-08 (Noise) implementation 2019-08-20 09:03:10 +02:00
SomberNight
0578bbd5d0 fix tests 2019-08-20 09:03:10 +02:00
SomberNight
f267400e1e follow-up prev 2019-08-20 09:03:10 +02:00
SomberNight
17ccb79ca4 channel verifier: NetworkJobOnDefaultServer, and some error handling 2019-08-20 09:03:10 +02:00
ThomasV
5a081b2131 start channel verifier in network.start() 2019-08-20 09:03:10 +02:00
ThomasV
626d09b358 add 'recḱless' option to allow using lightning on mainnet 2019-08-20 09:03:10 +02:00
ThomasV
87fb0da5e1 minor fix 2019-08-20 09:03:10 +02:00
ThomasV
9362130fba fix race between network and lnwatcher (network.add_job does not always work) 2019-08-20 09:03:10 +02:00
ThomasV
e761f5b876 add watchtower class, send encumbered tx as json 2019-08-20 09:03:10 +02:00
SomberNight
7589bdc6a9 fix tests 2019-08-20 09:03:10 +02:00
SomberNight
48252318b8 rebase follow-up 2019-08-20 09:03:10 +02:00
Janus
520b5703a4 lnbase: resend revoke_and_ack if necessary 2019-08-20 09:03:10 +02:00
ThomasV
30753ed475 watchtower: use network job, catch exceptions 2019-08-20 09:03:10 +02:00
ThomasV
680b129b4a remote watchtower: initial commit 2019-08-20 09:03:10 +02:00
Janus
94a10e6307 rebase fixup: use new broadcast_transaction API 2019-08-20 09:03:10 +02:00