Fix ipv6 in lnd docker itest (#256)

* Fix ipv6 in lnd docker itest

* Clean up itest.sh
This commit is contained in:
Jonathan Zernik 2020-09-21 01:00:48 -07:00 committed by GitHub
parent fafb89006a
commit 5f482bf9be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 3 deletions

View file

@ -58,6 +58,8 @@ services:
- test_lnd_client_dir:/root/.lnd
links:
- "btcd:btcd"
sysctls:
- net.ipv6.conf.all.disable_ipv6=0
entrypoint: ["./start-lnd.sh"]
lnd_server:
@ -74,6 +76,8 @@ services:
- test_lnd_server_dir:/root/.lnd
links:
- "btcd:blockchain"
sysctls:
- net.ipv6.conf.all.disable_ipv6=0
entrypoint: ["./start-lnd.sh"]
sqkserver:

View file

@ -14,12 +14,21 @@ function mine_blocks {
cd itests
docker-compose down --volumes
docker-compose build
# docker-compose build
docker-compose up -d
# Initialize the blockchain with miner rewards going to the test client.
sleep 10
client_address=$(docker exec -it test_lnd_client lncli --network=simnet newaddress np2wkh | jq .address -r)
client_address=""
while [ "$client_address" = "" ]
do
new_address_output=$(docker exec -it test_lnd_client lncli --network=simnet newaddress np2wkh)
echo "new_address_output:"
echo $new_address_output
client_address=$(echo $new_address_output | jq .address -r)
sleep 10
done
MINING_ADDRESS=$client_address docker-compose up -d btcd
echo "Mining 400 blocks to address: $client_address ..."
docker-compose run btcctl generate 400