You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*[Start Bitcoin Node with bitcoind using Docker Compose](#start-bitcoin-node-with-bitcoind-using-docker-compose)
19
+
*[Generating RPCAUTH](#generating-rpcauth)
20
+
*[Mining in regtest using bitcoin-cli](#mining-in-regtest-using-bitcoin-cli)
16
21
*[Questions](#questions)
17
22
18
23
### Create lightning network cluster
@@ -327,10 +332,49 @@ Instructions on how to build standalone docker images (for development or
327
332
production), outside of `docker-compose`, see the
328
333
[docker docs](../docs/DOCKER.md).
329
334
335
+
### Using bitcoind version
336
+
If you are using the bitcoind version of the compose file i.e `docker-compose-bitcoind.yml`, follow these additional instructions:
337
+
338
+
#### Start Bitcoin Node with bitcoind using Docker Compose
339
+
To launch the Bitcoin node using bitcoind in the regtest network using Docker Compose, use the following command:
340
+
```shell
341
+
$ NETWORK="regtest" docker-compose -f docker-compose-bitcoind.yml up
342
+
```
343
+
344
+
#### Generating RPCAUTH
345
+
In bitcoind, the usage of `rpcuser` and `rpcpassword` for server-side authentication has been deprecated. To address this, we now use `rpcauth` instead. You can generate the necessary rpcauth credentials using the [rpcauth.py script](https://github.com/bitcoin/bitcoin/blob/master/share/rpcauth/rpcauth.py) from the Bitcoin Core repository.
346
+
347
+
Note: When using any RPC client, such as `lnd` or `bitcoin-cli`, It is crucial to either provide a clear text password with username or employ cookie authentication.
348
+
349
+
#### Mining in regtest using bitcoin-cli
350
+
1. Log into the `lnd` container:
351
+
```shell
352
+
$ docker exec -it lnd bash
353
+
```
354
+
2. Generate a new backward compatible nested p2sh address:
355
+
```shell
356
+
lnd$ lncli --network=regtest newaddress np2wkh
357
+
```
358
+
3. Log into the `bitcoind` container:
359
+
```shell
360
+
$ docker exec -it bitcoind bash
361
+
```
362
+
4. Generate 101 blocks:
363
+
```shell
364
+
# Note: We need at least "100 >=" blocks because of coinbase block maturity.
5. Check your lnd wallet balance in regtest network:
368
+
```shell
369
+
lnd$ lncli --network=regtest walletbalance
370
+
```
371
+
372
+
Note: The address `2N1NQzFjCy1NnpAH3cT4h4GoByrAAkiH7zu` is just a random example. Feel free to use an address generated from your `lnd` wallet to send coins to yourself.
0 commit comments