6 Commits

Author SHA1 Message Date
Lakshya Singh
eff3b61785 cln: v24.02.2
Signed-off-by: Lakshya Singh <lakshay.singh1108@gmail.com>
2024-04-11 22:13:03 +05:30
dev random
22a3e0293a add -f flags to single-node section 2024-03-28 12:06:45 +00:00
dev random
6ce34eecd7 Merge branch 'king-11/env_var_change' into 'main'
cln: add VLS_CLN_VERSION env var

See merge request lightning-signer/vls-container!24
2024-03-19 14:55:25 +00:00
Lakshya Singh
ef1eec7f04 cln: add VLS_CLN_VERSION env var
- required for newer remote_hsmd_socket versions
- keep backward compatible by having GREENLIGHT_VERSION
Signed-off-by: Lakshya Singh <lakshay.singh1108@gmail.com>
2024-03-18 22:07:11 +05:30
dev random
ee48f8406b Merge branch 'king-11/maintenance' into 'main'
easy configuration and updates

See merge request lightning-signer/vls-container!23
2024-03-14 10:18:19 +00:00
Lakshya Singh
7e5ac7c0e9 docs: add debugging commands
- remove wallet creation command
Signed-off-by: Lakshya Singh <lakshay.singh1108@gmail.com>
2024-03-13 22:13:26 +05:30
3 changed files with 36 additions and 12 deletions

6
.env
View File

@@ -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

View File

@@ -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:

View 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"