ThomasV
46aa5c1958
lnrouter: perform SQL requests in a separate thread. persist database.
2019-08-20 09:03:11 +02:00
ThomasV
9f188c087c
Flatten the structure of lnrouter, so that DBSession is not used outside of ChannelDB
2019-08-20 09:03:11 +02:00
Janus
95a2174789
sqlite in lnrouter: lnpeer: introduce _gossip_loop for gossip handling separated from message handling
2019-08-20 09:03:11 +02:00
Janus
3442e51fac
sqlite in lnrouter: remove useless InDB suffix
2019-08-20 09:03:11 +02:00
Janus
945e1dc4ee
sqlite in lnrouter: request missing channel_announcements and node_announcements
2019-08-20 09:03:11 +02:00
Janus
d2d67f1fe1
sqlite in lnrouter: avoid exceptions on shutdown
2019-08-20 09:03:11 +02:00
Janus
dd7c4b3bab
sqlite in lnrouter
2019-08-20 09:03:11 +02:00
ThomasV
3dce65dc73
Rename lnchan, lnchannel_verifier, lnbase
...
Auto-completions are a pain if files share a long prefix
2019-08-20 09:03:11 +02:00
Janus
56853da391
qt main_window: do not unregister on shutdown
...
this is handled differently in lightning, see commit
commit 6e355601261a60d143561f15760cc48f9c81d000
Author: ThomasV <thomasv@electrum.org>
Date: Sun Jun 3 10:07:56 2018 +0200
integrate channels_list with existing framework
2019-08-20 09:03:11 +02:00
ThomasV
3222e26e01
format message
2019-08-20 09:03:11 +02:00
ThomasV
f4b9d2f47c
show lightning network capacity in GUI
2019-08-20 09:03:11 +02:00
SomberNight
5b7c801ca4
after rebase fixes
2019-08-20 09:03:11 +02:00
SomberNight
c0ae7b5534
after rebase clean-up
2019-08-20 09:03:10 +02:00
SomberNight
f70e679aba
some more type annotations that needed conditional imports
2019-08-20 09:03:10 +02:00
SomberNight
bd48072e04
lnrouter: can_pay for own channels should use amount_to_forward
2019-08-20 09:03:10 +02:00
SomberNight
2364de930b
lnrouter: run Dijkstra in reverse direction
2019-08-20 09:03:10 +02:00
SomberNight
7edbd5682a
fix confusion re max path length
2019-08-20 09:03:10 +02:00
SomberNight
2fafd01945
protect against getting robbed through routing fees
2019-08-20 09:03:10 +02:00
SomberNight
56c0983e69
fix multi-hop payments
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
SomberNight
52377dbfa0
lnrouter: use htlc_maximum_msat
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
SomberNight
a91e244a05
path finding: minor clean-up
2019-08-20 09:03:10 +02:00
ThomasV
9a59ffaf44
lnrouter: filter out unsuitable channels
2019-08-20 09:03:10 +02:00
ThomasV
5a081b2131
start channel verifier in network.start()
2019-08-20 09:03:10 +02:00
SomberNight
48252318b8
rebase follow-up
2019-08-20 09:03:10 +02:00
SomberNight
eced61123d
clean up local/global features
2019-08-20 09:03:10 +02:00
SomberNight
bf25d765d9
simplify ChannelDB.on_channel_update
2019-08-20 09:03:10 +02:00
SomberNight
97393d05aa
use 'r' field in invoice when making payments (routing hints)
2019-08-20 09:03:10 +02:00
SomberNight
029ec5a5ab
make our channels private, and put routing hints in invoices we create
2019-08-20 09:03:10 +02:00
SomberNight
d29191b010
rename LNChanAnnVerifier
2019-08-20 09:03:10 +02:00
Janus
3eabd70df5
lightning: post aiorpcx rebase fixup
2019-08-20 09:03:10 +02:00
SomberNight
cd893de837
lnrouter: use 'disable' flags from channel updates in path finding
2019-08-20 09:03:10 +02:00
SomberNight
f3e5ba6ac1
more reliable peer and channel re-establishing
2019-08-20 09:03:10 +02:00
SomberNight
c02cc9bb3b
persist recent peers. implement dns seed bootstrapping.
...
dns seeds are currently disabled though, as they always seem to return mainnet nodes.
2019-08-20 09:03:10 +02:00
SomberNight
bc06ded4b9
persist nodes in channel_db on disk
2019-08-20 09:03:10 +02:00
SomberNight
5a05a92b3d
move bolt-04 onion stuff to its own module
2019-08-20 09:03:10 +02:00
SomberNight
d0798c336f
channeldb: allow injecting trusted edges
2019-08-20 09:03:10 +02:00
SomberNight
a5b44d25b0
persist channel db on disk. verify channel gossip sigs.
2019-08-20 09:03:10 +02:00
Janus
12a02a8a1e
lnrouter: ignore duplicate channel announcement
2019-08-20 09:03:10 +02:00
SomberNight
21e907a4e3
ChannelDB: print_graph
2019-08-20 09:03:10 +02:00
ThomasV
8f779f504f
LNWorker: connect to multiple peers.
...
save exceptions in aiosafe.
enable adding peer in GUI.
2019-08-20 09:03:10 +02:00
Janus
35adc3231b
lightning: fixup after rebasing on restructured master
2019-08-20 09:03:10 +02:00