00814dc7c1
This commit makes the outgoing link pipeline the settle to the switch as soon as it receives it. Previously, it would wait for a revocation before sending it, which caused increased latency on payments as well as possibly never settling on the incoming link. A duplicate settle is still sent to the switch, but it is handled gracefully. A new AckEventTicker was added to the switch which acknowledges any pending settle / fail entries in an outgoing link's fwd pkgs in batch. This was needed in order to reduce the number of db txn's which would have been incurred by acking whenever we receive a duplicate settle without batching. |
||
---|---|---|
.. | ||
lnd_multi-hop_htlc_local_chain_claim_test.go | ||
lnd_multi-hop_htlc_receiver_chain_claim_test.go | ||
lnd_multi-hop_htlc_remote_chain_claim_test.go | ||
lnd_test.go | ||
onchain.go |