docs: add debugging commands

- remove wallet creation command
Signed-off-by: Lakshya Singh <lakshay.singh1108@gmail.com>
This commit is contained in:
Lakshya Singh 2024-03-13 22:13:26 +05:30
parent aee7a57c95
commit 7e5ac7c0e9
No known key found for this signature in database
GPG Key ID: D3239BA6109A2CE7

View File

@ -143,16 +143,11 @@ docker compose up --build
Above command will run `bitcoind`, `lightningd` and `txood` services on a single node. 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: ### Regtest Commands
```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
```
Generate Address for node: Generate Address for node:
```bash ```bash
@ -183,6 +178,34 @@ docker container exec lightningd-test lightning-cli --testnet clboss-status | le
# Show node summary status # Show node summary status
docker container exec lightningd-test lightning-cli --testnet summary 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 ## Choosing Versions
The currently set default versions for services is as follows in the [.env](.env) file: The currently set default versions for services is as follows in the [.env](.env) file: