Commit graph

29 commits

Author SHA1 Message Date
SomberNight
d83b4a8c88
lnrouter: can_pay for own channels should use amount_to_forward 2018-11-05 20:24:00 +01:00
SomberNight
3f53384309
lnrouter: run Dijkstra in reverse direction 2018-11-05 20:24:00 +01:00
SomberNight
78ca70887a
fix confusion re max path length 2018-11-05 20:23:59 +01:00
SomberNight
4fcc766ba5
protect against getting robbed through routing fees 2018-11-05 20:23:59 +01:00
SomberNight
1de6e7f673
fix multi-hop payments 2018-11-05 20:23:54 +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
SomberNight
763eaec21e
lnrouter: use htlc_maximum_msat 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
SomberNight
2d0cabbc5f
path finding: minor clean-up 2018-11-05 20:23:46 +01:00
ThomasV
ecb6922456
lnrouter: filter out unsuitable channels 2018-11-05 20:23:45 +01:00
ThomasV
1a108b86f8
start channel verifier in network.start() 2018-11-05 20:23:40 +01:00
SomberNight
dc43341717
rebase follow-up 2018-11-05 20:19:04 +01:00
SomberNight
ea6406c5be
clean up local/global features 2018-11-05 20:18:56 +01:00
SomberNight
bea5fd8ba8
simplify ChannelDB.on_channel_update 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
af16e32257
rename LNChanAnnVerifier 2018-11-05 20:18:28 +01:00
Janus
9ccf80200b
lightning: post aiorpcx rebase fixup 2018-11-05 20:16:09 +01:00
SomberNight
d93495b9fa
lnrouter: use 'disable' flags from channel updates in path finding 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
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
SomberNight
766297da31
move bolt-04 onion stuff to its own module 2018-11-05 20:08:49 +01:00
SomberNight
8f67b93e25
channeldb: allow injecting trusted edges 2018-11-05 20:08:46 +01:00
SomberNight
6742654681
persist channel db on disk. verify channel gossip sigs. 2018-11-05 20:07:42 +01:00
Janus
95fd640a31
lnrouter: ignore duplicate channel announcement 2018-11-05 20:05:54 +01:00
SomberNight
309331a936
ChannelDB: print_graph 2018-11-05 20:05:53 +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
Janus
8276d023c2
lightning: fixup after rebasing on restructured master 2018-11-05 20:05:44 +01:00
Renamed from lib/lnrouter.py (Browse further)