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.
This commit is contained in:
Weili Y 2024-02-07 19:51:04 +08:00
parent 9651ee6372
commit d740e95c08
No known key found for this signature in database

View File

@ -80,7 +80,8 @@ $ docker exec -i -t alice bash
alice $ lncli --network=simnet newaddress np2wkh
# Recreate "btcd" node and set Alice's address as mining address:
$ MINING_ADDRESS=<alice_address> docker-compose up -d btcd
$ export MINING_ADDRESS=<alice_address>
$ docker-compose up -d btcd
# Generate 400 blocks (we need at least "100 >=" blocks because of coinbase
# block maturity and "300 ~=" in order to activate segwit):