Commit graph

108 commits

Author SHA1 Message Date
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
4228b926d4 lnpeer: send commitment after receiving updates 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
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
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
Renamed from electrum/lnbase.py (Browse further)