These scripts are primarily for my own use, but can be adapted for setting up test lightning networks using warnet.
They set up a lightning network with the following topology, with channel
funds evenly distributed between peers:
Alice -- Bob -- Carol -- Dave
source ./new_term.sh- Follow warnet's installation instructions.
- You do not need to create a custom network with
warnet new- those files are checked in here inwarnet
- You do not need to create a custom network with
You must always source ./new_term.sh to use the shortcuts set up in this repo!
You can do this by:
- Running
source ./new_term.shin every new terminal window. - Using warnet.yml tmuxinator template.
- Adding
source {path to new_term.sh}to your.bashrcor.zshrc
start: starts the network, opens channels, waits for gossip to syncstop: shuts down the network and cleans up all staterestart: shorthand forstopandstartlogs {node}: gets the lightning node's logscli {node} command: runsmine {n}: mines n blocks (default 1)
❤️ and credit goes to @guggero who created a similar setup for internal use at LL! This is entirely inspired by that setup, and I am so grateful for the incredible use I got out of it.