fix testnet
This commit is contained in:
		
							parent
							
								
									85e0215869
								
							
						
					
					
						commit
						dfd5081b1b
					
				| @ -47,12 +47,11 @@ address=$(docker logs dthc0 | grep 'SOL' | awk '{ print $NF }') | |||||||
| "${script_dir}"/mint_sol "${address}" | "${script_dir}"/mint_sol "${address}" | ||||||
| while true; do | while true; do | ||||||
|     echo -n "." && sleep 1 |     echo -n "." && sleep 1 | ||||||
|     docker logs dthc0 | grep -q "Mint created" && echo && break |     docker logs dthc0 | grep -q "Heartbeat..." && echo && break | ||||||
| done | done | ||||||
| 
 | 
 | ||||||
| echo "Creating a cluster with ${num_nodes} nodes" | echo "Creating a cluster with ${num_nodes} nodes" | ||||||
| for n in $(seq 1 $num_nodes); do | for n in $(seq 1 $num_nodes); do | ||||||
|     #init_nodes=$(docker inspect dthc0 --format '{{ .NetworkSettings.Networks.dthc.IPAddress }}') |  | ||||||
|     node_ip="172.18.0.$((2 + n))" |     node_ip="172.18.0.$((2 + n))" | ||||||
|     node_port=$((31300 + n)) |     node_port=$((31300 + n)) | ||||||
|     node_volume="/tmp/dthc${n}" |     node_volume="/tmp/dthc${n}" | ||||||
| @ -78,7 +77,4 @@ for n in {1..20}; do | |||||||
|     curl -X POST "127.0.0.1:${node_port}/mint?address=EZT16iP1SQVUFf1AJN6oiE5BZPnyBUqaKDkZ4oZRsvhR" --connect-timeout 5 2> /dev/null |     curl -X POST "127.0.0.1:${node_port}/mint?address=EZT16iP1SQVUFf1AJN6oiE5BZPnyBUqaKDkZ4oZRsvhR" --connect-timeout 5 2> /dev/null | ||||||
| done | done | ||||||
| 
 | 
 | ||||||
| # curl -X POST "127.0.0.1:31303/mint?address=EZT16iP1SQVUFf1AJN6oiE5BZPnyBUqaKDkZ4oZRsvhR" --connect-timeout 5 |  | ||||||
| # curl 127.0.0.1:31303/metrics |  | ||||||
| # curl -X POST 127.0.0.1:31303/mint -d '{"wallet": "EZT16iP1SQVUFf1AJN6oiE5BZPnyBUqaKDkZ4oZRsvhR"}' -H 'Content-Type: application/json' |  | ||||||
| # docker run --name dthc0 --network dthc -d --ip 172.18.0.2 --env NODE_IP="172.18.0.2" --env INIT_NODES="172.18.0.5 172.18.0.3 172.18.0.4" --volume /tmp/dthc0:/challenge/main --publish 31300:31372 --device /dev/sgx/provision --device /dev/sgx/enclave detee/hacker-challenge:test | # docker run --name dthc0 --network dthc -d --ip 172.18.0.2 --env NODE_IP="172.18.0.2" --env INIT_NODES="172.18.0.5 172.18.0.3 172.18.0.4" --volume /tmp/dthc0:/challenge/main --publish 31300:31372 --device /dev/sgx/provision --device /dev/sgx/enclave detee/hacker-challenge:test | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user