SomberNight
7644c84e07
qt: update whole gui on every LN payment
...
inefficient... but at least kept updated.
2019-08-20 09:03:11 +02:00
SomberNight
021f5d570e
lnpeer: check that remote only sends commit_sig if there are changes
2019-08-20 09:03:11 +02:00
SomberNight
dfc2a35ae6
qt: handle LN invoices better in Send tab
2019-08-20 09:03:11 +02:00
SomberNight
962628ac3d
lnworker: minor clean-up re payment_completed
2019-08-20 09:03:11 +02:00
ThomasV
11c0c0d5a1
lnhtlc: fix received_in_ctn (LOCAL->REMOTE)
2019-08-20 09:03:11 +02:00
SomberNight
9206b6225b
tmp fix for circular imports
2019-08-20 09:03:11 +02:00
SomberNight
828f07a1ff
qt request_list: disable editing existing items
2019-08-20 09:03:11 +02:00
SomberNight
f0b4d1ecce
qt request_list: minor fix for context menu
2019-08-20 09:03:11 +02:00
SomberNight
64b2844e81
qt request_list: fix changing between items
2019-08-20 09:03:11 +02:00
Janus
f618bb4a67
lnhtlc: handle settles like adds (asymmetrical across ctns)
2019-08-20 09:03:11 +02:00
SomberNight
3d0b5fc80f
more post-rebase fixups
2019-08-20 09:03:11 +02:00
SomberNight
3a2ab149b9
lnchannel: add_htlc and receive_htlc now take and return UpdateAddHtlc
...
also fix undefined vars in _maybe_forward_htlc and _maybe_fulfill_htlc
in lnpeer
2019-08-20 09:03:11 +02:00
ThomasV
62be0c481c
lightning: Save invoices and preimages separately. Save preimages when forwarding
2019-08-20 09:03:11 +02:00
ThomasV
e475617b75
lnpeer: distinguish local and remote pending updates
2019-08-20 09:03:11 +02:00
ThomasV
459f9aaee7
lnchannel: reformatting
2019-08-20 09:03:11 +02:00
ThomasV
4228b926d4
lnpeer: send commitment after receiving updates
2019-08-20 09:03:11 +02:00
ThomasV
5f516bac35
move lightning icon
2019-08-20 09:03:11 +02:00
SomberNight
2976f50b8c
lightning post-rebase fixups
2019-08-20 09:03:11 +02:00
ThomasV
3d8e168a85
follow-up previous commit
2019-08-20 09:03:11 +02:00
ThomasV
6eba22b5a8
lnpeer: replace asyncio.sleep with events
2019-08-20 09:03:11 +02:00
ThomasV
86b33a5637
code refactoring: _maybe_fullfill_htlc, _maybe_forward_htlc
2019-08-20 09:03:11 +02:00
ThomasV
5d26f51ad0
lnchannel: fix error message
2019-08-20 09:03:11 +02:00
ThomasV
a40207cbbb
Refactor LNPeer in order to support HTLC forwarding:
...
1. Do not perform channel updates in coroutines, because they would get executed in random order.
2. After applying channel updates, wait only for the relevant commitment (local or remote) and not for both, because local and remote might be out of sync (BOLT 2).
3. When waiting for a commitment, wait until a given ctn has been reached, because a queue cannot be shared by several coroutines
2019-08-20 09:03:11 +02:00
ThomasV
50b4f785a9
test_lnpeer: add names
2019-08-20 09:03:11 +02:00
ThomasV
3dce65dc73
Rename lnchan, lnchannel_verifier, lnbase
...
Auto-completions are a pain if files share a long prefix
2019-08-20 09:03:11 +02:00
Janus
8274a963e6
lnworker: save outgoing invoice when initiating payment
2019-08-20 09:03:11 +02:00
Janus
98e85fd16d
qt: channel_details: prevent crash on stuck SENT htlc
2019-08-20 09:03:11 +02:00
Janus
5f1feee331
move lightning message encoding to new lnmsg module
2019-08-20 09:03:11 +02:00
Janus
f5cee9ecf6
lightning: post-rebase fixes, read_QIcon and invalid import
2019-08-20 09:03:11 +02:00
ThomasV
d5006e83e7
test_forwarding: do not set HOME
2019-08-20 09:03:11 +02:00
ThomasV
954e4c8892
lnbase: rename methods, fix tests
2019-08-20 09:03:11 +02:00
ThomasV
909f1e77de
script that tests htlc forwarding
2019-08-20 09:03:11 +02:00
ThomasV
43e6e08840
Forward HTLCs
2019-08-20 09:03:11 +02:00
ThomasV
a975ac1571
lnworker: get_channel_by_short_id
2019-08-20 09:03:11 +02:00
ThomasV
fa96efabb5
lnpeer: receive_and_revoke, send_and_revoke
2019-08-20 09:03:11 +02:00
ThomasV
f4b2644620
set short_channel_id regardless of channel state, because peer might be disconnected
2019-08-20 09:03:11 +02:00
ThomasV
b265212fe6
show amount in channel opening/closure
2019-08-20 09:03:11 +02:00
ThomasV
d9813540ac
fix: test short_channel_id before removing from channel_db
2019-08-20 09:03:11 +02:00
ThomasV
108a986ef0
history tab: render channel opening/closure on a single line
2019-08-20 09:03:11 +02:00
ThomasV
82e8bcebb6
restructure channel_reestablish, resend funding_locked if needed
2019-08-20 09:03:11 +02:00
ThomasV
8e753f998a
fix tests
2019-08-20 09:03:11 +02:00
ThomasV
a3c6f82bb2
move LNPeer handshake back into initialize
2019-08-20 09:03:11 +02:00
ThomasV
42cbe74e95
history: better handling of None timestamps
2019-08-20 09:03:11 +02:00
ThomasV
2a112b867b
follow-up previous commit
2019-08-20 09:03:11 +02:00
ThomasV
b5482e4470
create transport and perform handshake before creating Peer
2019-08-20 09:03:11 +02:00
ThomasV
61638664f7
do not add ephemeral addresses to recent peers
2019-08-20 09:03:11 +02:00
ThomasV
472e82e387
fix channel closure when it was requested by the remote party
2019-08-20 09:03:11 +02:00
ThomasV
d383573bc3
CLI: use funding_point in channel_open and channel_close. add host:port to nodeid
2019-08-20 09:03:11 +02:00
ThomasV
0924503cb6
rpartition->rsplit
2019-08-20 09:03:11 +02:00
ThomasV
776caeeff0
follow-up prev commit: use maxsize to sort timestamps
2019-08-20 09:03:11 +02:00