The Core Lightning project provides a script
startup_regtest.sh to simulate the Lightning Network in your local dev environment. The script starts up some local nodes with bitcoind, all running on regtest and makes it easier to test things out, by hand.
contrib in your Core Lightning directory:
Load the script, using
source so it can set aliases:
Start up the nodeset:
Connect the nodes. The
connect a b command connects node a to b:
connect 1 2
When you're finished, stop:
Clean up the lightning directories:
Polar offers a one-click setup of Lightning Network for local app development & testing.
Updated about 2 months ago