⚡
Lightning Node Management
🇺🇸 English
🇺🇸 English
  • Contents
  • Lightning basics
  • Create inbound liquidity
  • Create outbound liquidity
  • Comparison table of software implementations
  • Comparison table of lightning channel markets
  • Node Types
    • Merchant
    • Spending
    • Routing
  • Advanced Tools
    • lnd.conf example
    • Advanced and automated fee settings
    • Set up an LND watchtower and connect a client
    • Methods to create a balanced channel with a trusted peer
    • Pool usage notes
    • Bos Score
  • Technicals
    • Connecting to a lightning node remotely
    • High onchain fee environment
    • Compact the LND database (channel.db)
    • Manage the LND onchain funds in Electrum Wallet
  • Recovery
    • Resources for LND
    • Resources for Core Lightning
  • Privacy
    • Resources on Lightning privacy
    • VPN tunnels
  • Hardware deployment
    • Hardware recommendations
    • RaspiBolt
    • RaspiBlitz
      • charge-lnd
      • Balance of Satoshis Telegram Bot
      • LND updates
      • Bitcoin Core updates
      • VPN and firewall setup
    • TrueNAS (FreeBSD) node
      • aliases
      • Balance of Satoshis
      • Lightning Terminal
      • Circuitbreaker
      • LNtop
      • LND notes
      • stream-lnd-htlcs
      • Suez
      • Tailscale
      • Connect Zeus
  • Donate
    • Donations
Powered by GitBook
On this page
  • Installation
  • See the help and usage
  • Run
  • Tor Hidden Service

Was this helpful?

Edit on GitHub
  1. Hardware deployment
  2. TrueNAS (FreeBSD) node

Circuitbreaker

https://github.com/lightningequipment/circuitbreaker

Installation

# install dependencies
pkg install -y go git tmux

# enter tmux
tmux

# download
git clone https://github.com/lightningequipment/circuitbreaker

# install
cd circuitbreaker
go install

See the help and usage

/root/.gopkg/bin/circuitbreaker -h

NAME:
   circuitbreakerd - A new cli application

USAGE:
   circuitbreaker [global options] command [command options] [arguments...]

VERSION:
   0.15.4-beta commit=

COMMANDS:
   help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --rpcserver value          host:port of ln daemon (default: "localhost:10009")
   --lnddir value             path to lnd's base directory (default: "/root/.lnd")
   --tlscertpath value        path to TLS certificate (default: "/root/.lnd/tls.cert")
   --network value, -n value  the network lnd is running on e.g. mainnet, testnet, etc. (default: "mainnet")
   --macaroonpath value       path to macaroon file
   --configdir value          path to CircuitBreaker's base directory (default: "/root/.circuitbreaker")
   --listen value             grpc server listen address (default: "127.0.0.1:9234")
   --httplisten value         http server listen address (default: "127.0.0.1:9235")
   --stub                     set to enable stub mode (no lnd instance connected)
   --help, -h                 show help
   --version, -v              print the version

Run

  • keep in tmux

    /root/.gopkg/bin/circuitbreaker --lnddir=/var/db/lnd
  • sample of initial output:

    INFO    Opening database        {"path": "/root/.circuitbreaker/circuitbreaker.db"}
    INFO    Applied migrations      {"count": 1}
    INFO    CircuitBreaker started
    INFO    Grpc server starting    {"listenAddress": "127.0.0.1:9234"}
    INFO    HTTP server starting    {"listenAddress": "127.0.0.1:9235"}
    INFO    Connected to lnd node   {"pubkey": "PUBKEY"}
    INFO    Interceptor/notification handlers registered
  • can detach tmux with CTRL+D (circuitbreaker will keep running in the background)

  • reattach with:

    tmux a

Tor Hidden Service

  • Create in:

    nano /usr/local/etc/tor/torrc
    HiddenServiceDir /var/db/tor/circuitbreaker
    HiddenServiceVersion 3
    HiddenServicePort 80 127.0.0.1:9235
  • reload Tor

    service tor reload
  • read the Hidden Service

    cat /var/db/tor/circuitbreaker/hostname
  • Tor logs

    tail -f /var/log/tor/tor.log
PreviousLightning TerminalNextLNtop

Last updated 1 year ago

Was this helpful?