Commit 7354ebe
committed
Define anchor channel reserve requirements
This change defines anchor reserve requirements by calculating weights
and fees for the transactions that need to be confirmed on-chain in the
event of a unilateral closure. The calculation is given a set of
parameters as input, including the expected fee rate and number of
in-flight HTLCs.1 parent ec19ba1 commit 7354ebe
File tree
3 files changed
+447
-0
lines changed- lightning/src
- chain
- util
3 files changed
+447
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
1614 | 1615 | | |
1615 | 1616 | | |
1616 | 1617 | | |
| 1618 | + | |
| 1619 | + | |
| 1620 | + | |
| 1621 | + | |
| 1622 | + | |
1617 | 1623 | | |
1618 | 1624 | | |
1619 | 1625 | | |
| |||
4809 | 4815 | | |
4810 | 4816 | | |
4811 | 4817 | | |
| 4818 | + | |
| 4819 | + | |
| 4820 | + | |
| 4821 | + | |
4812 | 4822 | | |
4813 | 4823 | | |
4814 | 4824 | | |
| |||
0 commit comments