ThomasV
5bc74772a2
follow up 'replace properties with functions'
6 years ago
ThomasV
0e3270a1d6
further simplify lnwatcher
6 years ago
SomberNight
dbc4549c0e
lnchan: restore process_new_offchain_ctx
6 years ago
SomberNight
0070ae1fb1
fix prev
6 years ago
SomberNight
595cfcbb65
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
bc72966442
lnchan: follow-up "replace properties with functions"
6 years ago
ThomasV
88c6eeb966
make LNWatcher inherit AddressSynchronizer
6 years ago
ThomasV
78896897cb
lnchan: replace properties with functions
6 years ago
Janus
c339eabd31
qt: channel_details: remove demo code
6 years ago
Janus
e3409d32ef
channel details with list of htlcs
6 years ago
Janus
9d32031ca2
Kivy: Lightning support in Receive tab
6 years ago
Janus
ecac8f2880
tests/lnbase: stub on_channels_updated
6 years ago
Janus
7db9a22d63
Kivy: open channel dialog
6 years ago
ThomasV
3430d1aaa3
follow-up prev commit
6 years ago
ThomasV
5422de90a2
lightning: do not handle more than one fee update at a time
6 years ago
Janus
1352b0ce9f
Kivy: Support Lightning in Send tab
6 years ago
Janus
f803bb571d
kivy: restore channel list to working state, add [force-]closing functionality
6 years ago
Janus
1520338f37
fix ln tests
6 years ago
SomberNight
521fadb8cb
lnutil: restructure channel config namedtuples (local/remote config)
6 years ago
Janus
1425628604
add command for listing invoices and their progress, fix list_channels
6 years ago
Janus
783cac1f23
function that returns map from commitment number to list of HTLCs
6 years ago
SomberNight
5b7c801ca4
after rebase fixes
6 years ago
Janus
8a98810df1
do not co-op close channels with pending htlcs
6 years ago
Janus
9cf7aa054d
call force_close_channel on LNWorker, not Peer
6 years ago
Janus
c570bc5fb1
avoid leaving FORCE_CLOSING state, rebroadcast closing tx if reorged out
6 years ago
Janus
0ea87278fb
move force_close_channel to lnbase, test it, add FORCE_CLOSING state
6 years ago
Janus
6211e656a8
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
c8dcf0b471
lnwatcher: more detailed logging, support notifying test suite of txs
6 years ago
Janus
795ba1f99d
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
f9f1805cdf
use IntEnum for TxMinedDepth
6 years ago
ThomasV
632f11d5da
watchtower: add watch_channel rpc
6 years ago
Janus
39fa13b938
lnchan: use NamedTuple for logs instead of dict with static keys (adds, locked_in, settles, fails)
6 years ago
Janus
72187a4341
lnchan: make sign_next_commitment revert state
6 years ago
Janus
001bb4ca09
remove incorrect docstrings, attribute docstring sources where applicable
6 years ago
SomberNight
c0ae7b5534
after rebase clean-up
6 years ago
Janus
7e76e82152
test_lnbase: add test that pays to another local electrum
6 years ago
SomberNight
ce2b572fa5
lnbase: more type annotations, and minor fix
6 years ago
SomberNight
449ec013fe
add licence headers to more files
6 years ago
Janus
f5201327d1
add lnd copyright boilerplate to lnchan, test_lnchan
6 years ago
Janus
85789d8a09
lnbase: mark initialized later, add tests, etc
- consistent node_id sorting
- require OPTION_DATA_LOSS_PROTECT and test it
6 years ago
Janus
a42c1067ab
lnworker: fix listchannels
6 years ago
Janus
578faeb91a
lnbase: do not assert only one htlc in commitment
6 years ago
Janus
a5a7c1406e
lightning channels reserves: use pretty balance in Qt, fix bugs, add tests
6 years ago
ThomasV
eb4e6b2e54
use WaitingDialog to close channels
6 years ago
ThomasV
70dbd8e672
add close_channel method to peer
6 years ago
ThomasV
f985aac8d1
fix typo
6 years ago
ThomasV
a5ab431b4b
parse invoices with lightning: prefix
6 years ago
ThomasV
5ca6fbaea7
lnbase: self.channel_reestablished is not a queue
6 years ago
Janus
15b0720f5e
lightning channel reserves
6 years ago
SomberNight
54edc9488a
lnworker: store invoices based on payment_hash
6 years ago