SomberNight
ebd1f83d33
lnchannel: save htlc preimages as soon as possible but horribly hacky
will properly clean this up...
6 years ago
SomberNight
422a33b638
lnchannel: only consider payments finished when we revoke our old ctx
in the old code,
`self.hm.received_in_ctn(self.config[REMOTE].ctn + 1)`
did not really make sense as "received_in_ctn" compares the argument against the LOCAL ctn
6 years ago
SomberNight
47d1c14479
lnhtlc: revert 0c4e7b856f8c96c4f0a33bf3e0d1c8fd8184bd36
6 years ago
SomberNight
55bafb502d
travis: don't build binaries on ln branch (also for appimage)
6 years ago
SomberNight
287742c1c8
qt: update whole gui on every LN payment
inefficient... but at least kept updated.
6 years ago
SomberNight
8eb41e3b66
lnpeer: check that remote only sends commit_sig if there are changes
6 years ago
SomberNight
83f999b213
qt: handle LN invoices better in Send tab
6 years ago
SomberNight
1b8bf7a167
lnworker: minor clean-up re payment_completed
6 years ago
ThomasV
9cbf6c2938
lnhtlc: fix received_in_ctn (LOCAL->REMOTE)
6 years ago
SomberNight
ffee6e5644
tmp fix for circular imports
6 years ago
SomberNight
f65627c0cb
qt request_list: disable editing existing items
6 years ago
SomberNight
b34d4b1358
qt request_list: minor fix for context menu
6 years ago
SomberNight
b9ba833718
qt request_list: fix changing between items
6 years ago
Janus
fb32fd3da3
lnhtlc: handle settles like adds (asymmetrical across ctns)
6 years ago
SomberNight
da0008e63e
more post-rebase fixups
6 years ago
SomberNight
a1c68e49b7
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
6 years ago
ThomasV
e6a01771fa
lightning: Save invoices and preimages separately. Save preimages when forwarding
6 years ago
ThomasV
2bddb222bc
lnpeer: distinguish local and remote pending updates
6 years ago
ThomasV
0cba162640
lnchannel: reformatting
6 years ago
ThomasV
2c851ca30e
lnpeer: send commitment after receiving updates
6 years ago
ThomasV
93019987f1
move lightning icon
6 years ago
SomberNight
dd12dddc0c
lightning post-rebase fixups
6 years ago
ThomasV
8d626c09c8
follow-up previous commit
6 years ago
ThomasV
ad1503f2e8
lnpeer: replace asyncio.sleep with events
6 years ago
ThomasV
6d25670356
code refactoring: _maybe_fullfill_htlc, _maybe_forward_htlc
6 years ago
ThomasV
0c351c93ad
lnchannel: fix error message
6 years ago
ThomasV
6dd84c238e
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
6 years ago
ThomasV
ca9b1f4b26
test_lnpeer: add names
6 years ago
ThomasV
4330b93381
Rename lnchan, lnchannel_verifier, lnbase
Auto-completions are a pain if files share a long prefix
6 years ago
Janus
18e4e7ec5c
lnworker: save outgoing invoice when initiating payment
6 years ago
Janus
c3f2a0178d
qt: channel_details: prevent crash on stuck SENT htlc
6 years ago
Janus
efd507c78f
move lightning message encoding to new lnmsg module
6 years ago
Janus
53124413ae
lightning: post-rebase fixes, read_QIcon and invalid import
6 years ago
ThomasV
cbf27b2102
test_forwarding: do not set HOME
6 years ago
ThomasV
19b27713f3
lnbase: rename methods, fix tests
6 years ago
ThomasV
c1eb25bc52
script that tests htlc forwarding
6 years ago
ThomasV
adc6e577d9
Forward HTLCs
6 years ago
ThomasV
24d1e59ef7
lnworker: get_channel_by_short_id
6 years ago
ThomasV
0e7a733147
lnpeer: receive_and_revoke, send_and_revoke
6 years ago
ThomasV
e14485d66c
set short_channel_id regardless of channel state, because peer might be disconnected
6 years ago
ThomasV
7b1481155f
show amount in channel opening/closure
6 years ago
ThomasV
a9973e644a
fix: test short_channel_id before removing from channel_db
6 years ago
ThomasV
b39d1a6ea0
history tab: render channel opening/closure on a single line
6 years ago
ThomasV
c6e6e4ac8b
restructure channel_reestablish, resend funding_locked if needed
6 years ago
ThomasV
11bb0e845e
fix tests
6 years ago
ThomasV
dcf0cdc534
move LNPeer handshake back into initialize
6 years ago
ThomasV
81588c4b93
history: better handling of None timestamps
6 years ago
ThomasV
4c110cd85c
follow-up previous commit
6 years ago
ThomasV
d1d2d2b006
create transport and perform handshake before creating Peer
6 years ago
ThomasV
2ea77f1224
do not add ephemeral addresses to recent peers
6 years ago