SomberNight
590c8a20cd
tmp
6 years ago
ThomasV
a5e8f6ce6d
redeem htlcs:
- fix bug in lnsweep: lnwatcher transactions were indexed by prev_txid
- add test for breach remedy with unsettled htlcs
- add timeout option to lnpay, and replace DO_NOT_SETTLE with SETTLE_DELAY
so that we can read intermediate commitment tx in regtest
6 years ago
ThomasV
9f945ca03d
lnsweep: simplify a few methods
6 years ago
ThomasV
6e1aefdc94
rework on_channel_closed in LNWorker:
- use detect_who_closed; this allows us to redeem to_remote of breach ctx
- do not redeem to_local of breach ctx, because it is redundant with lnwatcher
- rename a few methods
6 years ago
SomberNight
c8df7e6035
channel close handling: detect situation based on output addresses
WIP...
6 years ago
SomberNight
19808ede42
set default to_self_delay to 1 day
6 years ago
SomberNight
103fa9d81a
ChannelDB: trivial bugfix for get_channels_for_node
6 years ago
ThomasV
e2e7b0893b
add to_remote to breach test
6 years ago
ThomasV
421375e062
add function new_blocks to simplify regtests
6 years ago
SomberNight
d0ac8afc25
qt ChannelDetails: fix show_tx
6 years ago
SomberNight
3d1b13c6ab
move lnworker.first_block to constants
6 years ago
SomberNight
def9315ac8
lnpeer: process gossip in chunks
6 years ago
SomberNight
bf53b6951a
ChannelDB.on_node_announcement: some speed-up
(e.g. for 100 node anns, was ~5 seconds, now 0.7 sec; so still slow)
6 years ago
SomberNight
838d5d93fb
fix ChannelDB.compare_channels: was raising "too many SQL variables"
sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) too many SQL variables
6 years ago
SomberNight
167f9b823f
tests/regtest: stop using "bitcoin-cli generate" (deprecated)
6 years ago
ThomasV
c23f3bdba7
gui: channel_details minor fix
6 years ago
ThomasV
a5da75aab1
minor fixes: remove_channel
6 years ago
ThomasV
71d4f63921
redo LNWorker pay:
- wait until htlc has been fulfilled
- raise if htlc is not fulfilled
- return boolean success
- try multiple paths in GUI
6 years ago
ThomasV
9148e7e07a
gui channels_list fixes
6 years ago
ThomasV
f650c6ce26
improve lightning_dialog GUI settings
6 years ago
ThomasV
f8a63bd204
update electrumx starting script
6 years ago
ThomasV
37b28fe657
channel blacklist: minor fix
6 years ago
ThomasV
c3bc78b46c
add option to remove channel after it has been closed
6 years ago
ThomasV
24fcbe320d
do not include 'force_closing' in channel states, because it is not part of the peer protocol
6 years ago
ThomasV
253583efee
fix: key must be unique (sql)
6 years ago
ThomasV
3020d70b99
gui: improve display of lightning status
6 years ago
ThomasV
4df4994612
improve filter_channel_updates
blacklist channels that do not really get updated
6 years ago
ThomasV
51dfee9e5d
query_short_channel_ids: use Event instead of Lock
6 years ago
ThomasV
bcd5e679c8
fix: add_channel_update
6 years ago
ThomasV
6f0ec36306
prune channels older than two weeks from database
6 years ago
ThomasV
158492300e
verify channel updates in peer's TaskGroup
6 years ago
ThomasV
38df46dc07
use a single queue for gossip messages, so that they are processed in the correct order
6 years ago
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