docs: add debugging commands
- remove wallet creation command Signed-off-by: Lakshya Singh <lakshay.singh1108@gmail.com>
This commit is contained in:
parent
aee7a57c95
commit
7e5ac7c0e9
39
README.md
39
README.md
@ -143,16 +143,11 @@ docker compose 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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user