mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-20 02:27:51 +01:00
1.1 KiB
1.1 KiB
title | slug | excerpt | hidden | createdAt | updatedAt |
---|---|---|---|---|---|
Setting up a dev environment | developers-guide | Get up and running in your local environment with essential tools and libraries in your preferred programming language. | false | 2022-11-18T14:28:23.407Z | 2023-02-08T11:42:44.759Z |
Using startup_regtest.sh
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.
Navigate to contrib
in your Core Lightning directory:
cd contrib
Load the script, using source
so it can set aliases:
source startup_regtest.sh
Start up the nodeset:
start_ln 3
Connect the nodes. The connect a b
command connects node a to b:
connect 1 2
When you're finished, stop:
stop_ln
Clean up the lightning directories:
destroy_ln
Using Polar
Polar offers a one-click setup of Lightning Network for local app development & testing.