Compare commits
6 Commits
BTC-v26.0
...
CLN-v24.02
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eff3b61785 | ||
|
|
22a3e0293a | ||
|
|
6ce34eecd7 | ||
|
|
ef1eec7f04 | ||
|
|
ee48f8406b | ||
|
|
7e5ac7c0e9 |
6
.env
6
.env
@@ -1,10 +1,10 @@
|
||||
# bitcoin version 26.0
|
||||
BITCOIN_VERSION=26.0
|
||||
BITCOIN_SHA256SUMS_HASH=63487c308a6655f939efd700bfca8e0285fa2f869283aaa7192bdd4b8799a747
|
||||
# core lightning version v24.02
|
||||
# core lightning version v24.02.2
|
||||
CORE_LIGHTNING_REPO=https://github.com/ElementsProject/lightning.git
|
||||
CORE_LIGHTNING_GIT_HASH=8418989f9bf3563a67ac91602500672b51628579
|
||||
# clboss
|
||||
CORE_LIGHTNING_GIT_HASH=a2a136fe3ebef1d028d1e20ebf1f987b8c05bbf8
|
||||
# clboss version v0.13.0
|
||||
CLBOSS_REPO=https://github.com/ZmnSCPxj/clboss.git
|
||||
CLBOSS_GIT_HASH=0673c50e7374ea8f5cb7e302f72b7978c6bd1794
|
||||
# cln plugins
|
||||
|
||||
41
README.md
41
README.md
@@ -138,21 +138,16 @@ __Note__: Even while using `testnet` running using the override is recommended a
|
||||
To run a single node without `vls` service we can use the same `docker-compose.yml` file in the main directory by just removing the `profile` flag `vls` from all commands.
|
||||
|
||||
```bash
|
||||
docker compose up --build
|
||||
docker compose -f docker-compose.yml -f $DOCKER_COMPOSE_OVERRIDE up --build
|
||||
```
|
||||
|
||||
Above command will run `bitcoind`, `lightningd` and `txood` services on a single node.
|
||||
|
||||
### Additional Regtest Commands
|
||||
## Interacting with Containers
|
||||
|
||||
We have to run these commands after bitcoind is up and running.
|
||||
We can use the `docker container exec <CONTAINER_NAME> <COMMAND>` command to interact with containers and interact with setup using command line tools like `bitcoin-cli`, `lightning-cli`, `vls-cli`, etc.
|
||||
|
||||
Create wallet and make it load automatically:
|
||||
```bash
|
||||
docker container exec bitcoind-regtest bitcoin-cli createwallet default
|
||||
docker container exec bitcoind-regtest bitcoin-cli unloadwallet default
|
||||
docker container exec bitcoind-regtest bitcoin-cli loadwallet default true
|
||||
```
|
||||
### Regtest Commands
|
||||
|
||||
Generate Address for node:
|
||||
```bash
|
||||
@@ -183,6 +178,34 @@ docker container exec lightningd-test lightning-cli --testnet clboss-status | le
|
||||
# Show node summary status
|
||||
docker container exec lightningd-test lightning-cli --testnet summary
|
||||
```
|
||||
|
||||
## Debugging Containers
|
||||
|
||||
Checking running status and health of containers
|
||||
```bash
|
||||
docker ps
|
||||
```
|
||||
|
||||
Getting logs from container
|
||||
```bash
|
||||
# CONTAINER_NAME=lightningd-test
|
||||
docker container logs $CONTAINER_NAME
|
||||
```
|
||||
|
||||
Restarting containers
|
||||
```bash
|
||||
cd vls-container
|
||||
docker compose --profile vls stop
|
||||
# to start testnet
|
||||
docker compose --profile vls up
|
||||
```
|
||||
|
||||
Delete containers
|
||||
```bash
|
||||
cd vls-container
|
||||
docker compose --profile vls down
|
||||
```
|
||||
|
||||
## Choosing Versions
|
||||
|
||||
The currently set default versions for services is as follows in the [.env](.env) file:
|
||||
|
||||
@@ -5,6 +5,7 @@ cp -u /testnet-config ${LIGHTNINGD_DATA}/testnet-config
|
||||
cp -u /regtest-config ${LIGHTNINGD_DATA}/regtest-config
|
||||
|
||||
export GREENLIGHT_VERSION=$(lightningd --version)
|
||||
export VLS_CLN_VERSION=$(lightningd --version)
|
||||
|
||||
if [ $(echo "$1" | cut -c1) = "-" ]; then
|
||||
echo "$0: assuming arguments for lightningd"
|
||||
|
||||
Reference in New Issue
Block a user