ThomasV
522ce5bb9f
verify channel updates in peer's TaskGroup
6 years ago
ThomasV
308dc6aa6b
use a single queue for gossip messages, so that they are processed in the correct order
6 years ago
ThomasV
e68f318b12
verify node and channel announcements before entering sql lock
6 years ago
SomberNight
fbafc77f01
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
afc5717cf0
lnpeer reply_channel_range: handle lnd
6 years ago
ThomasV
0e42fd9f17
parallelize short_channel_id requests
6 years ago
ThomasV
1011245c5e
LNGossip: sync channel db using query_channel_range
6 years ago
ThomasV
95376226e8
save lightning invoice descriptions as labels and allow user to edit them
6 years ago
ThomasV
b1f8c42424
post-rebase fix
6 years ago
ThomasV
f5c58c5e19
lightning network dialog
6 years ago
ThomasV
db60634774
use config instead of watchtower_window to decide if we close the app
6 years ago
ThomasV
e53ecb9b77
add labels to lightning history
6 years ago
ThomasV
c4081284bd
lightning: GUI improvements
6 years ago
ThomasV
670424f080
get_payments: do not include failed payments
6 years ago
ThomasV
2ec82433b4
wallet: add lnworker in constructor for CLI
6 years ago
ThomasV
446a8b0dd9
fix column names
6 years ago
ThomasV
31684abb51
do not SPV channel announcements; this is too resource intensive
6 years ago
ThomasV
d134937269
update regexp syntax
6 years ago
ThomasV
746dd725c6
follow-up previous
6 years ago
ThomasV
842fff832f
enable lightning through command line option
6 years ago
ThomasV
9a3a63d18e
logging (follow-up rebase)
6 years ago
SomberNight
e4ed15f683
fix tests
6 years ago
SomberNight
cc57da704b
logging: adapt lightning branch to logging changes
6 years ago
ThomasV
730be17aba
Use separate lightning nodes for gossip and channel operations.
6 years ago
ThomasV
12743bda93
remove test_require_data_loss_protect
6 years ago
ThomasV
34f22e6681
lnrouter: load data before finding path
6 years ago
ThomasV
dac686b11d
minor fix
6 years ago
SomberNight
fda6fb6521
lnhtlc: handle fails asymmetrically
6 years ago
SomberNight
f47519bdf3
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
8632f027da
lnhtlc: small clean-up / docstrings
6 years ago
SomberNight
268f05c60c
lnhtlc: add type hints
6 years ago
ThomasV
796f199a5b
follow-up prev commit
6 years ago
ThomasV
a6469904ee
fix verify_sig_for_channel_update: use raw message
6 years ago
ThomasV
407114d3cc
lnpeer:
- disable option data_loss_protect
- disable query_short_channel_ids
- increase timeouts in pay
6 years ago
ThomasV
e2182f5846
lnwatcher fixes
6 years ago
ThomasV
f0ac81419c
increase timeout in open_channel
6 years ago
ThomasV
5eab60621d
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
b76728d459
lnrouter: fix get_last_good_address: one_or_none -> all
6 years ago
ThomasV
9983578df0
lightning tx: remove amount from label
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
eae8f1a139
gui: show only initialized peers
6 years ago
ThomasV
f5eb369fb7
lnpeer: spawn wait_for(self.initialized) to kill the TaskGroup if it times out
6 years ago
ThomasV
2c80996fbf
lnrouter: fix primary key conflict in Policy update
6 years ago
ThomasV
e7218d798d
add get_channel_ctx to CLI, for testing breaches
6 years ago
ThomasV
a698344136
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
023d4026b9
fix local_index in channel _shutdown
6 years ago
ThomasV
3abe30e9d8
basic watchtower synchronization
6 years ago
ThomasV
c155293166
follow-up variable renaming
6 years ago