Janus
e56e849505
lnchan refactor
...
- replace undoing logic with new HTLCManager class
- separate SENT/RECEIVED
- move UpdateAddHtlc to lnutil
7 years ago
ThomasV
d9e7807fff
lnpeer: print port in error_messages
7 years ago
Janus
60508725b6
lnbase: fix sig encoding in mutual close
7 years ago
Janus
37a0315aab
lnbase: fix NameError
7 years ago
ThomasV
fde9f91902
lnchannel: store pre-signed sweep transactions after each new commitment
7 years ago
Janus
133e5ec8c3
use gossip_timestamp_filter instead of request_initial_sync
7 years ago
ThomasV
c0a1af2032
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
7 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
7 years ago
SomberNight
bc72966442
lnchan: follow-up "replace properties with functions"
7 years ago
ThomasV
78896897cb
lnchan: replace properties with functions
7 years ago
Janus
e3409d32ef
channel details with list of htlcs
7 years ago
ThomasV
5422de90a2
lightning: do not handle more than one fee update at a time
7 years ago
SomberNight
521fadb8cb
lnutil: restructure channel config namedtuples (local/remote config)
7 years ago
Janus
1425628604
add command for listing invoices and their progress, fix list_channels
7 years ago
SomberNight
5b7c801ca4
after rebase fixes
7 years ago
Janus
8a98810df1
do not co-op close channels with pending htlcs
7 years ago
Janus
c570bc5fb1
avoid leaving FORCE_CLOSING state, rebroadcast closing tx if reorged out
7 years ago
Janus
0ea87278fb
move force_close_channel to lnbase, test it, add FORCE_CLOSING state
7 years ago
SomberNight
c0ae7b5534
after rebase clean-up
7 years ago
Janus
7e76e82152
test_lnbase: add test that pays to another local electrum
7 years ago
SomberNight
ce2b572fa5
lnbase: more type annotations, and minor fix
7 years ago
SomberNight
449ec013fe
add licence headers to more files
7 years ago
Janus
85789d8a09
lnbase: mark initialized later, add tests, etc
...
- consistent node_id sorting
- require OPTION_DATA_LOSS_PROTECT and test it
7 years ago
Janus
578faeb91a
lnbase: do not assert only one htlc in commitment
7 years ago
Janus
a5a7c1406e
lightning channels reserves: use pretty balance in Qt, fix bugs, add tests
7 years ago
ThomasV
eb4e6b2e54
use WaitingDialog to close channels
7 years ago
ThomasV
70dbd8e672
add close_channel method to peer
7 years ago
ThomasV
f985aac8d1
fix typo
7 years ago
ThomasV
5ca6fbaea7
lnbase: self.channel_reestablished is not a queue
7 years ago
Janus
15b0720f5e
lightning channel reserves
7 years ago
ThomasV
d9facabc8c
lnbase: call save_channel in revoke and receive_revoke
7 years ago
Janus
1f97a9753e
redeem htlc outputs of our local commitment transaction back to wallet
7 years ago
SomberNight
f70e679aba
some more type annotations that needed conditional imports
7 years ago
SomberNight
edff357fad
better handling of channel updates for private channels
7 years ago
SomberNight
c577df8489
lnbase: when opening channel, test if we have enough balance first
...
and make sure we don't try to create the funding txn from local UTXOs
7 years ago
SomberNight
d511ecdc00
start failing htlcs
7 years ago
SomberNight
4b37343c62
unify hardcoded regtest fee
7 years ago
ThomasV
d6b4268fde
Qt gui: show messages about payment outcome
7 years ago
ThomasV
02c39a950f
encapsulate get_invoice in lnworker
7 years ago
ThomasV
095de2dd22
make on_update_add_htlc async
7 years ago
SomberNight
3ac9858d59
follow-up prev
7 years ago
SomberNight
56c0983e69
fix multi-hop payments
7 years ago
ThomasV
c0aee58e4d
follow-up 3460ba738e
7 years ago
ThomasV
d9eb92979b
revert rbf on funding tx
7 years ago
SomberNight
a8b9727817
lnbase: fix peer clean-up
7 years ago
ThomasV
f8894d467f
funding tx: use fees from config and set rbf
7 years ago
SomberNight
9de6028fb5
clean-up Peer init
7 years ago
SomberNight
2e5552816c
if payment fails with UPDATE onion error, also utilise channel_update for private channels
7 years ago
Janus
962f70c7da
ln: add lightning_listen config option
7 years ago
ThomasV
8bb23ea2cd
follow-up prev commit: channel_flags, message_flags, htlc_maximum_msat
7 years ago