mirror of
https://github.com/yzernik/squeaknode.git
synced 2026-08-18 13:09:08 +02:00
Fix ipv6 in lnd docker itest (#256)
* Fix ipv6 in lnd docker itest * Clean up itest.sh
This commit is contained in:
parent
fafb89006a
commit
5f482bf9be
2 changed files with 16 additions and 3 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue