raspiblitz / raspiblitz

Get your own Bitcoin & Lightning Node running - on a RaspberryPi with a nice LCD
MIT License
2.45k stars 520 forks source link

[Feature Request] Add Circuit Breaker - it is to Lightning what firewalls are to the internet #1581

Closed openoms closed 4 years ago

openoms commented 4 years ago

A project by Joost Jager announced in this thread: https://twitter.com/joostjgr/status/1308414374789427200 https://github.com/lightningequipment/circuitbreaker

Needs at least lnd v0.11.0

rootzoll commented 4 years ago

Looks like a good fit for v1.7 when >=lnd 0.11.0 will be standard ... lets keep it on that milestone list.

openoms commented 4 years ago

Starting off with some notes:

# create dedicate user (or just use admin to test first)
# check Go and PATH
# add symlink for .lnd and permissions for macaroons
git clone https://github.com/lightningequipment/circuitbreaker.git
cd circuitbreaker
go install
# create config file
# ~/.circuitbreaker/circuitbreaker.yaml
# include example:
# maxPendingHtlcs: 5

# create systemd service or run:
circuitbreaker --network ${chain}net
rootzoll commented 4 years ago

Now that lnd 0.11.0 will be a foreced update for v1.6.1 we can include Circuit Breaker already as config-script. Will be part of v1.6.1 - use to activate: /home/admin/config.scripts/bonus.circuitbreaker.sh on

More improvents planned for v1.7 release: see #1654