SomberNight
ac7668f626
fix prev
6 years ago
SomberNight
b215d8a591
move sweeping methods from lnchan.py to new file
also sweep "received" htlcs from "our" ctx
also sweep htlcs from their ctx (non-breach)
extract ctn; included_htlcs_in_their_latest_ctxs
6 years ago
SomberNight
4225d55e54
lnchan: follow-up "replace properties with functions"
6 years ago
ThomasV
a349aa2326
make LNWatcher inherit AddressSynchronizer
6 years ago
ThomasV
2212fc07b9
lnchan: replace properties with functions
6 years ago
Janus
0f091e057e
qt: channel_details: remove demo code
6 years ago
Janus
bb331c1160
channel details with list of htlcs
6 years ago
Janus
c876335a0e
Kivy: Lightning support in Receive tab
6 years ago
Janus
e36f239716
tests/lnbase: stub on_channels_updated
6 years ago
Janus
76886d0eac
Kivy: open channel dialog
6 years ago
ThomasV
dbeb3e4898
follow-up prev commit
6 years ago
ThomasV
0690c7b5e4
lightning: do not handle more than one fee update at a time
6 years ago
Janus
1f0d958d6f
Kivy: Support Lightning in Send tab
6 years ago
Janus
0320b6b072
kivy: restore channel list to working state, add [force-]closing functionality
6 years ago
Janus
57f007a911
fix ln tests
6 years ago
SomberNight
5c5047691e
lnutil: restructure channel config namedtuples (local/remote config)
6 years ago
Janus
89184fc759
add command for listing invoices and their progress, fix list_channels
6 years ago
Janus
8e4bcae781
function that returns map from commitment number to list of HTLCs
6 years ago
SomberNight
b2f1c34f2a
after rebase fixes
6 years ago
Janus
2562170113
do not co-op close channels with pending htlcs
6 years ago
Janus
681a69cfda
call force_close_channel on LNWorker, not Peer
6 years ago
Janus
6e4de7039f
avoid leaving FORCE_CLOSING state, rebroadcast closing tx if reorged out
6 years ago
Janus
6732fc14e9
move force_close_channel to lnbase, test it, add FORCE_CLOSING state
6 years ago
Janus
946af47841
lnwatcher: do not get_transaction before broadcast
this workaround was inserted to avoid losing the interface
when rebroadcasting a transaction already in the mempool
many times. but since the network should make sure we always
have a interface ready, and this problem shouldn't happen on
mainnet, remove the workaround
6 years ago
Janus
5dce7131fb
lnwatcher: more detailed logging, support notifying test suite of txs
6 years ago
Janus
fa1e0d2742
lnwatcher: ensure probable spendability of prev_tx
previously, we would try to publish the second_stage
even if we couldn't, because a conflicting transaction
was published (like an htlc success when we close with
htlcs pending with a 1-hop payment and an online
counterparty)
6 years ago
Janus
54f87d4947
use IntEnum for TxMinedDepth
6 years ago
ThomasV
bdf9cb4d17
watchtower: add watch_channel rpc
6 years ago
Janus
64f6a0c43f
lnchan: use NamedTuple for logs instead of dict with static keys (adds, locked_in, settles, fails)
6 years ago
Janus
bfa28e5562
lnchan: make sign_next_commitment revert state
6 years ago
Janus
24f00acbc7
remove incorrect docstrings, attribute docstring sources where applicable
6 years ago
SomberNight
907e3d76f7
after rebase clean-up
6 years ago
Janus
2a1c3ae68b
test_lnbase: add test that pays to another local electrum
6 years ago
SomberNight
7e5bf8edeb
lnbase: more type annotations, and minor fix
6 years ago
SomberNight
c021ff81a3
add licence headers to more files
6 years ago
Janus
6f1287736a
add lnd copyright boilerplate to lnchan, test_lnchan
6 years ago
Janus
a4e638800e
lnbase: mark initialized later, add tests, etc
- consistent node_id sorting
- require OPTION_DATA_LOSS_PROTECT and test it
6 years ago
Janus
7991165ddf
lnworker: fix listchannels
6 years ago
Janus
ab1297e55f
lnbase: do not assert only one htlc in commitment
6 years ago
Janus
b4a80805f2
lightning channels reserves: use pretty balance in Qt, fix bugs, add tests
6 years ago
ThomasV
ba4e789dd8
use WaitingDialog to close channels
6 years ago
ThomasV
1cde00e9fc
add close_channel method to peer
6 years ago
ThomasV
bfb751c277
fix typo
6 years ago
ThomasV
3b1e424b89
parse invoices with lightning: prefix
6 years ago
ThomasV
a1dcc4fef7
lnbase: self.channel_reestablished is not a queue
6 years ago
Janus
35a92036ec
lightning channel reserves
6 years ago
SomberNight
bb642f1b25
lnworker: store invoices based on payment_hash
6 years ago
ThomasV
5a559ee320
lnbase: call save_channel in revoke and receive_revoke
6 years ago
Janus
be74575241
fix co-op close
6 years ago
Janus
f470c69e5d
follow-up redeeming of local outgoing htlc outputs, fix tests
6 years ago