Skip to content

Commit fe37e8e

Browse files
authored
Channel Jamming: add hold-time-dependent bidirectional upfront payment (#14)
1 parent fc79f5e commit fe37e8e

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

Diff for: spam-prevention.md

+19
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ of the network's capacity.
2424
* [Naive upfront payment](#naive-upfront-payment)
2525
* [Reverse upfront payment](#reverse-upfront-payment)
2626
* [Bidirectional upfront payment](#bidirectional-upfront-payment)
27+
* [Hold-time-dependent bidirectional upfront payment](#hold-time-dependent-bidirectional-upfront-payment)
2728
* [Web of trust HTLC hold fees](#web-of-trust-htlc-hold-fees)
2829

2930
## Description of the attack
@@ -327,6 +328,24 @@ Drawbacks:
327328
and let them get away with it, but record it. If they're doing it too often, close channels and
328329
ban them; stealing upfront fees should never be worth losing channels.
329330

331+
### Hold-time-dependent bidirectional upfront payment
332+
333+
One characteristic of bidirectional upfront payments as described above is that
334+
the `hold_fees` are time-independent. If an htlc doesn't resolve within the
335+
`grace_period`, the receiver of the htlc will be forced to pay the full hold
336+
fee. The hold fee should cover the expenses for locking up an htlc for the
337+
maximum duration (could be 2000 blocks), so this can be a significant penalty.
338+
Applications such as atomic onchain/offchain swaps (Lightning Loop and others)
339+
rely on locking funds for some time and could get expensive with a fixed hold
340+
fee.
341+
342+
A different variant of bidirectional upfront payments uses a time-proportional hold
343+
fee rate to address the limitation above. It aims to relate the fees paid more
344+
directly to the actual costs incurred and thereby reduce the number of
345+
parameters.
346+
347+
The complete proposal can be found [here](https://lists.linuxfoundation.org/pipermail/lightning-dev/2021-February/002958.html).
348+
330349
### Web of trust HTLC hold fees
331350

332351
This [proposal](https://lists.linuxfoundation.org/pipermail/lightning-dev/2020-October/002826.html) introduces fees depending on the amount of time HTLCs are kept pending.

0 commit comments

Comments
 (0)