ThomasV
291301c46e
add pycryptodomex to requirements
6 years ago
Janus
0ab47ffd1c
use gossip_timestamp_filter instead of request_initial_sync
6 years ago
Janus
cd2d1c2422
qt: channel_details: add more info: sent/received, channel id, funding tx, short channel id, node id
6 years ago
Janus
12dc9dd040
lnaddr: make it possible to use lnaddr to decode arbitrary invoices on the cmd line
6 years ago
SomberNight
093e90653d
rm 'cryptography' as dependency; use new pycryptodomex version
pycryptodomex 3.7 implemented chacha20_poly1305 and chacha20,
and it is already used (although optionally) to speed up AES,
so we can remove cryptography and make pycryptodomex mandatory for LN
6 years ago
ThomasV
59ff17bd23
fix channel closure:
- add 'CLOSING' state
- wait until channel has no inflight HTLC
- end fee negocitation when both parties agree on the fee
(previously code ended it only when the other party had broadcast)
- broadcast the closing transaction
6 years ago
ThomasV
43d250573d
follow up 'replace properties with functions'
6 years ago
ThomasV
c64d56cabf
further simplify lnwatcher
6 years ago
SomberNight
3b3cb6cc2d
lnchan: restore process_new_offchain_ctx
6 years ago
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