Circuitbreaker
https://github.com/lightningequipment/circuitbreaker

Installation

1
# install dependencies
2
pkg install -y go git tmux
3
4
# enter tmux
5
tmux
6
7
# download
8
git clone https://github.com/lightningequipment/circuitbreaker
9
10
# make data directory
11
mkdir .circuitbreaker
12
13
# installl
14
cd circuitbreaker
15
go install
16
17
# copy sample config
18
cp circuitbreaker-example.yaml /root/.circuitbreaker/circuitbreaker.yaml
Copied!

See the help and usage

1
/root/go/bin/circuitbreaker -h
Copied!
1
NAME:
2
circuitbreaker - A new cli application
3
4
USAGE:
5
circuitbreaker [global options] command [command options] [arguments...]
6
7
VERSION:
8
0.11.1-beta.rc3 commit=
9
10
COMMANDS:
11
help, h Shows a list of commands or help for one command
12
13
GLOBAL OPTIONS:
14
--rpcserver value host:port of ln daemon (default: "localhost:10009")
15
--lnddir value path to lnd's base directory (default: "/root/.lnd")
16
--tlscertpath value path to TLS certificate (default: "/root/.lnd/tls.cert")
17
--network value, -n value the network lnd is running on e.g. mainnet, testnet, etc. (default: "mainnet")
18
--macaroonpath value path to macaroon file
19
--configdir value path to CircuitBreaker's base directory (default: "/root/.circuitbreaker")
20
--help, -h show help
21
--version, -v print the version
Copied!

Run

  • keep in tmux
    1
    /root/go/bin/circuitbreaker --lnddir=/var/db/lnd
    Copied!
  • sample of initial output:
    1
    2021-09-11T06:02:06.703-0700 INFO Read config file {"file": "/root/.circuitbreaker/circuitbreaker.yaml"}
    2
    2021-09-11T06:02:06.703-0700 INFO CircuitBreaker started
    3
    2021-09-11T06:02:06.703-0700 INFO Hold fee {"base": 1, "rate": 0.000005, "reporting_interval": "1h0m0s"}
    4
    2021-09-11T06:02:06.758-0700 INFO Connected to lnd node
    Copied!
  • can detach tmux with CTRL+D (circuitbreaker will keep running in the background)
  • reattach with:
    1
    tmux a
    Copied!
Last modified 26d ago