Skip to content

Commit d740e95

Browse files
committed
docs: preserve MINING_ADDRESS across docker-compose sessions
Export MINING_ADDRESS before docker-compose up to ensure it's retained for subsequent operations, fixing block generation errors due to missing mining addresses.
1 parent 9651ee6 commit d740e95

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docker/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ $ docker exec -i -t alice bash
8080
alice $ lncli --network=simnet newaddress np2wkh
8181

8282
# Recreate "btcd" node and set Alice's address as mining address:
83-
$ MINING_ADDRESS=<alice_address> docker-compose up -d btcd
83+
$ export MINING_ADDRESS=<alice_address>
84+
$ docker-compose up -d btcd
8485

8586
# Generate 400 blocks (we need at least "100 >=" blocks because of coinbase
8687
# block maturity and "300 ~=" in order to activate segwit):

0 commit comments

Comments
 (0)