ThomasV
0e42fd9f17
parallelize short_channel_id requests
6 years ago
ThomasV
1011245c5e
LNGossip: sync channel db using query_channel_range
6 years ago
ThomasV
31684abb51
do not SPV channel announcements; this is too resource intensive
6 years ago
SomberNight
cc57da704b
logging: adapt lightning branch to logging changes
6 years ago
ThomasV
34f22e6681
lnrouter: load data before finding path
6 years ago
ThomasV
b76728d459
lnrouter: fix get_last_good_address: one_or_none -> all
6 years ago
ThomasV
93e8d4f953
channel_db: fix timestamp_range, reduce verbosity
6 years ago
ThomasV
aa398993cf
lnrouter fixes:
- use gossip_queries_req instead of initial_routing_sync
- add connected nodes to recent peers only after successful init
- derive timestamp used with gossip_timestamp_filter from channel_db
- fix query_short_channel_ids:
1. channel IDs must be sorted with zlib
2. limit request to 100
3. do not abuse this to request node_announcements; it is fine not to have all nodes.
- fix get_recent_peers:
1. do not set last_connected_date to 'now' if we never connected a node
2. sql query was misconstructed and was returning only one peer
- populate FALLBACK_NODE_LIST_MAINNET with nodes that have the requested flags
6 years ago
ThomasV
e7888a50be
fix sql conflicts in lnrouter
6 years ago
ThomasV
2c80996fbf
lnrouter: fix primary key conflict in Policy update
6 years ago
ThomasV
02d013421a
lnwatcher: store transactions as binary
6 years ago
ThomasV
d8e9a9a49e
create parent class for sql databases
6 years ago
ThomasV
29afe52b4c
sqlite: do not use scoped_session
6 years ago
ThomasV
436c313790
follow-up previous commit
6 years ago
ThomasV
46aa5c1958
lnrouter: perform SQL requests in a separate thread. persist database.
6 years ago
ThomasV
9f188c087c
Flatten the structure of lnrouter, so that DBSession is not used outside of ChannelDB
6 years ago
Janus
95a2174789
sqlite in lnrouter: lnpeer: introduce _gossip_loop for gossip handling separated from message handling
6 years ago
Janus
3442e51fac
sqlite in lnrouter: remove useless InDB suffix
6 years ago
Janus
945e1dc4ee
sqlite in lnrouter: request missing channel_announcements and node_announcements
6 years ago
Janus
d2d67f1fe1
sqlite in lnrouter: avoid exceptions on shutdown
6 years ago
Janus
dd7c4b3bab
sqlite in lnrouter
6 years ago
ThomasV
3dce65dc73
Rename lnchan, lnchannel_verifier, lnbase
Auto-completions are a pain if files share a long prefix
6 years ago
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
6 years ago
ThomasV
3222e26e01
format message
6 years ago
ThomasV
f4b9d2f47c
show lightning network capacity in GUI
6 years ago
SomberNight
5b7c801ca4
after rebase fixes
6 years ago
SomberNight
c0ae7b5534
after rebase clean-up
6 years ago
SomberNight
f70e679aba
some more type annotations that needed conditional imports
6 years ago
SomberNight
bd48072e04
lnrouter: can_pay for own channels should use amount_to_forward
6 years ago
SomberNight
2364de930b
lnrouter: run Dijkstra in reverse direction
6 years ago
SomberNight
7edbd5682a
fix confusion re max path length
6 years ago
SomberNight
2fafd01945
protect against getting robbed through routing fees
6 years ago
SomberNight
56c0983e69
fix multi-hop payments
6 years ago
SomberNight
2e5552816c
if payment fails with UPDATE onion error, also utilise channel_update for private channels
6 years ago
SomberNight
52377dbfa0
lnrouter: use htlc_maximum_msat
6 years ago
ThomasV
8bb23ea2cd
follow-up prev commit: channel_flags, message_flags, htlc_maximum_msat
6 years ago
SomberNight
a91e244a05
path finding: minor clean-up
6 years ago
ThomasV
9a59ffaf44
lnrouter: filter out unsuitable channels
6 years ago
ThomasV
5a081b2131
start channel verifier in network.start()
6 years ago
SomberNight
48252318b8
rebase follow-up
6 years ago
SomberNight
eced61123d
clean up local/global features
6 years ago
SomberNight
bf25d765d9
simplify ChannelDB.on_channel_update
6 years ago
SomberNight
97393d05aa
use 'r' field in invoice when making payments (routing hints)
6 years ago
SomberNight
029ec5a5ab
make our channels private, and put routing hints in invoices we create
6 years ago
SomberNight
d29191b010
rename LNChanAnnVerifier
6 years ago
Janus
3eabd70df5
lightning: post aiorpcx rebase fixup
6 years ago
SomberNight
cd893de837
lnrouter: use 'disable' flags from channel updates in path finding
7 years ago
SomberNight
f3e5ba6ac1
more reliable peer and channel re-establishing
7 years ago
SomberNight
c02cc9bb3b
persist recent peers. implement dns seed bootstrapping.
dns seeds are currently disabled though, as they always seem to return mainnet nodes.
7 years ago
SomberNight
bc06ded4b9
persist nodes in channel_db on disk
7 years ago