mirror of
https://github.com/lightningequipment/circuitbreaker.git
synced 2026-08-13 12:33:02 +02:00
36 lines
No EOL
1.5 KiB
YAML
36 lines
No EOL
1.5 KiB
YAML
# Default max pendings htlcs. Limit the number of pending htlcs to five by
|
|
# default.
|
|
maxPendingHtlcs: 5
|
|
|
|
# Define exception groups. For two peers, the limit is lowered to two. A last
|
|
# peer is allowed to have up to a hundred htlcs in-flight.
|
|
groups:
|
|
- maxPendingHtlcs: 2
|
|
peers:
|
|
- 033220600ae3949f40739955948ca43fc60174c9c51fb51e6debfc27091e58cebe
|
|
- 033220600ae3949f40739955948ca43fc60174c9c51fb51e6debfc27091e58ceba
|
|
- maxPendingHtlcs: 3
|
|
peers:
|
|
- 033220600ae3949f40739955948ca43fc60174c9c51fb51e6debfc27091e58cebf
|
|
|
|
# Define hold fee so that a fully locked 1 BTC channel would yield ~8.5%
|
|
# annually.
|
|
#
|
|
# The hold fee is not actually paid by channel peers and currently only exists
|
|
# to raise awareness of the costs of long-holding htlcs.
|
|
holdFee:
|
|
# Set the base hold fee to 500 sat per hour to compensate for the usage of an
|
|
# htlc slot. If an imaginary channel of 1 BTC would have all of its 483 slots
|
|
# occupied for a full year, the total hold fee would be 24 * 365 * 483 =
|
|
# 4231080 sats. This translates to a yearly return on the staked bitcoin of
|
|
# ~4.2%.
|
|
baseSatPerHr: 1
|
|
|
|
# Set the hold fee rate to 5 parts per million. If an imaginary channel of 1
|
|
# BTC would have all of its funds time-locked for a full year, the total hold
|
|
# fee would be 24 * 365 * 100000000 * 5 / 1000000 = 4380000. This translates
|
|
# to a yearly return on the staked bitcoin of ~4.4%.
|
|
ratePpmPerHr: 5
|
|
|
|
# Report (virtually) collected hold fees once per hour.
|
|
reportingInterval: 1h |