Skip to content

Instantly share code, notes, and snippets.

@zerofeerouting
zerofeerouting / charge.config
Last active June 13, 2024 11:12
my charge-lnd config file
[default]
strategy = static
base_fee_msat = 0
fee_ppm = 0
max_htlc_msat_ratio = 1
[private]
# the channel is private - i assume you're not a routing node
# I will not limit the transaction size
chan.private = true
@zerofeerouting
zerofeerouting / opt-lnd-autocompact.yml
Last active February 14, 2022 15:47
BTCPay Server docker fragment to auto-compact the channels.db on LND startup
version: "3"
services:
lnd_bitcoin:
environment:
LND_EXTRA_ARGS: |
db.bolt.auto-compact=true
db.bolt.auto-compact-min-age=0
@zerofeerouting
zerofeerouting / channels-with-100k-updates.md
Last active February 27, 2022 11:59
Here is a list of channels that had more than 100,000 updates. I will close those channels, feel free to reopen.
node pubkey state
0298f6074a454a1f5345cb2a7c6f9fce206cd0bf675d177cdbf0ca7508dd28852f closed
0326e692c455dd554c709bbb470b0ca7e0bb04152f777d1445fd0bf3709a2833a3 closed
027ce055380348d7812d2ae7745701c9f93e70c1adeb2657f053f91df4f2843c71 closed
02f324df7694f57b7d800d5a64f62fb226eabc8fbacb997f3ac5cd230e37944fbf closed
03c3b763ba79eebbf5e875d68806e1cc738298b16b4a521f53b411d85cae511ab0 closed
0284353cb3c2342ad97f5773bd0590d7d9f70fa3d04207edd80a8dbf48da3b3f2b closed
03fc8aaec61b42da62e36f5473623ca9b91285d7af62c6189d14bcf84c549d473b closed
0242c1650f320c43f3600ebf3b5fcaf566760fcd421f35b68fd1e39a31b29ef540 closed
@zerofeerouting
zerofeerouting / opt-lnd-zerofeerouting.yml
Created February 23, 2022 12:03
Docker snippet to configure zero fee routing for BTCPay Server
version: "3"
services:
lnd_bitcoin:
environment:
LND_EXTRA_ARGS: |
bitcoin.basefee=0
bitcoin.feerate=0
@zerofeerouting
zerofeerouting / claimants.md
Last active May 12, 2022 11:50
Nodes that got hit with an inadverted force-close

What happened

I configured my node to close channels where the peer was offline and had not sent any gossip for two weeks (14 * 24 * 60 * 60 seconds). Unfortunately I configured (14 * 24 * 60 seconds = 5.6 hours).

I ran this script once, it closed channels to all peers that were down for more than 5.6 hours. You can see a complete list of affected nodes below (it contains all nodes that were force-closed, also those that were down for more than two weeks).

@zerofeerouting
zerofeerouting / reasons-for-force-closes.md
Last active July 23, 2022 10:39
Common reasons for force-closes

Why did our channel get force-closed?

There are a bunch of possible reasons for a force close - I will elaborate on the most common ones.

⚠ This is a work in progress and will get expanded.

1. Stuck HTLC timed out

WHAT HAPPENED?
An HTLC (a lightning transaction) timed out, which means it did neither succeed in arriving at it's

@zerofeerouting
zerofeerouting / channel-opening-service.md
Last active June 24, 2023 22:39
zero fee routing - channel opening service

Channel opening service

I will open a channel to you with my on-chain funds for a fee.

https://zerofeerouting.com

If you have any questions, please reach out to me via Twitter or telegram. I rarely look in the comments of this gist.

How much is a channel?

The price for the channel depends on the size and can be calculated as:

Thank you for purchasing a channel!

The channel should get opened within a minute of your payment.

What if the channel does not get opened?

1. Make sure to add me as a peer

In some cases - especially with TOR only nodes or mobile wallets, my node can't connect to yours, so you'll have to connect to me. Please do this by adding me as a peer.

@zerofeerouting
zerofeerouting / liquidity-ads-for-lnd.md
Created November 17, 2022 13:19
Liquidity Ads for LND

This crowdfunding campaign raises funds for an LND feature bounty:The person or persons implementing Liquidity Ads as per the Bolt Specification by @niftynei (see GitHub PR) and getting it merged into LND will receive the bounty. I've crated a GitHub issue in the LND repository.Read more on Liquidty Ads in the medium piece from @niftynei https://medium.com/blockstream/lightnings-missing-piece-a-decentralized-liquidity-market-a0bb47534a4fzero fee routing will match all contributions up to 10,000,000 sats if the feature gets merged into LND by January 1st 2024.For reference: There is also an add