ThomasV
a40a087037
verify node and channel announcements before entering sql lock
6 years ago
SomberNight
4e6ea9d101
lnpeer query_short_channel_ids: BOLT-07 says ids must be sorted
this is why most remote peers were disconnecting upon receiving this msg
6 years ago
SomberNight
91d5988cc7
lnpeer reply_channel_range: handle lnd
6 years ago
ThomasV
771795875f
parallelize short_channel_id requests
6 years ago
ThomasV
f584028be5
LNGossip: sync channel db using query_channel_range
6 years ago
ThomasV
eea0d80f72
save lightning invoice descriptions as labels and allow user to edit them
6 years ago
ThomasV
f66d44fea9
post-rebase fix
6 years ago
ThomasV
2a95afe7b7
lightning network dialog
6 years ago
ThomasV
f52690dadf
use config instead of watchtower_window to decide if we close the app
6 years ago
ThomasV
7148a97005
add labels to lightning history
6 years ago
ThomasV
14e9774007
lightning: GUI improvements
6 years ago
ThomasV
8cfbd815d1
get_payments: do not include failed payments
6 years ago
ThomasV
3d23363fb1
wallet: add lnworker in constructor for CLI
6 years ago
ThomasV
add079fa15
fix column names
6 years ago
ThomasV
b36a63d7c5
do not SPV channel announcements; this is too resource intensive
6 years ago
ThomasV
217b9e28a2
update regexp syntax
6 years ago
ThomasV
7f1f989201
follow-up previous
6 years ago
ThomasV
6f4961b198
enable lightning through command line option
6 years ago
ThomasV
1c0b864527
logging (follow-up rebase)
6 years ago
SomberNight
1bec1f212f
fix tests
6 years ago
SomberNight
d49fc77d0b
logging: adapt lightning branch to logging changes
6 years ago
ThomasV
244380d00d
Use separate lightning nodes for gossip and channel operations.
6 years ago
ThomasV
4f2c9bf806
remove test_require_data_loss_protect
6 years ago
ThomasV
9728d11a62
lnrouter: load data before finding path
6 years ago
ThomasV
70c124d421
minor fix
6 years ago
SomberNight
4e6d0b3232
lnhtlc: handle fails asymmetrically
6 years ago
SomberNight
5ef16c30b5
lnchan: make_commitment and balance (follow-up prev)
"balance(self, subject, ctn=None)" is underspecified.
whose balance? whose commitment transaction?
this lead to issues...
6 years ago
SomberNight
2f30bc99b0
lnhtlc: small clean-up / docstrings
6 years ago
SomberNight
30507981b6
lnhtlc: add type hints
6 years ago
ThomasV
64f7cc9b6e
follow-up prev commit
6 years ago
ThomasV
5518e7fae9
fix verify_sig_for_channel_update: use raw message
6 years ago
ThomasV
2303d0245b
lnpeer:
- disable option data_loss_protect
- disable query_short_channel_ids
- increase timeouts in pay
6 years ago
ThomasV
453098b955
lnwatcher fixes
6 years ago
ThomasV
7b6fffb23b
increase timeout in open_channel
6 years ago
ThomasV
4f37b297cd
lnpeer:
- send data_loss_protect fields with channel_reestablish
- close connection if we receive an unknown channel_reestablish
- log all exceptions that make us close a connection
- formatting
6 years ago
ThomasV
0e9c707500
lnrouter: fix get_last_good_address: one_or_none -> all
6 years ago
ThomasV
a50190fbf1
lightning tx: remove amount from label
6 years ago
ThomasV
374bf3d56d
channel_db: fix timestamp_range, reduce verbosity
6 years ago
ThomasV
b624de41e9
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
d5b5c7ddef
fix sql conflicts in lnrouter
6 years ago
ThomasV
d539d97c62
gui: show only initialized peers
6 years ago
ThomasV
fa831a385b
lnpeer: spawn wait_for(self.initialized) to kill the TaskGroup if it times out
6 years ago
ThomasV
809b0d900e
lnrouter: fix primary key conflict in Policy update
6 years ago
ThomasV
bff1724e67
add get_channel_ctx to CLI, for testing breaches
6 years ago
ThomasV
8ed5127687
cleanup tests that use regtest:
- separate setup from execution
- install bitcoind and electrumx in travis
- use the same framework for lnwatcher and forwarding
- make tests runnable locally
6 years ago
ThomasV
ac0aa1b0c7
fix local_index in channel _shutdown
6 years ago
ThomasV
5909a8a643
basic watchtower synchronization
6 years ago
ThomasV
46afdd799a
follow-up variable renaming
6 years ago
ThomasV
67fd7e90a0
test forwarding
6 years ago
ThomasV
5173a7834f
fix icons in receive tab
6 years ago