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
ThomasV
032be27bb5
force-close channel if unfulfilled htlc is close to cltv expiry
6 years ago
ThomasV
02bddc3899
fix tests (follow up prev commit)
6 years ago
ThomasV
6026ed4be0
save timestamps in htlc log
6 years ago
ThomasV
c3e70a2b28
follow-up previous commit
6 years ago
ThomasV
5bae1fcad7
factorize channel opening code into chan.open_with_first_pcp
6 years ago
ThomasV
a35588dd4b
simplify points, remove side-effect in reestablish_channel
6 years ago
ThomasV
52604b968c
fix local/remote confusion in reestablish_channel
6 years ago
ThomasV
e5f5c040f1
do not duplicate ctn in channel log and config
6 years ago
ThomasV
e6a777bbbb
lnhtlc: remove unused field in log
6 years ago
ThomasV
1d28ecf2b2
reestablish_peers_and_channels: spawn tasks in for loop
6 years ago
ThomasV
e84d2de115
post rebase fixes
6 years ago
ThomasV
1edf84c711
lnhtlc: rename ctnheights -> ctn
6 years ago
ThomasV
4f46dca607
lnwatcher: store transactions as binary
6 years ago
ThomasV
5c083fbd84
create parent class for sql databases
6 years ago
ThomasV
256dab53ad
lnwatcher: save sweepstore in sqlite database
6 years ago
ThomasV
6f8c53662c
start asyncio loop in test_lnrouter and test_lnpeer
6 years ago
ThomasV
e18228de30
sqlite: do not use scoped_session
6 years ago
ThomasV
b7c25848bd
add sqlalchemy to requirements
6 years ago
ThomasV
a8abf8d9c3
follow-up previous commit
6 years ago
ThomasV
45cb7fd9f8
lnrouter: perform SQL requests in a separate thread. persist database.
6 years ago
ThomasV
efd3353e05
Flatten the structure of lnrouter, so that DBSession is not used outside of ChannelDB
6 years ago
Janus
3bb5561f48
sqlite in lnrouter: lnpeer: introduce _gossip_loop for gossip handling separated from message handling
6 years ago