This commit is contained in:
cventastic
2021-12-29 16:34:22 +01:00
parent 637591d666
commit 8ff64b2814
3 changed files with 15 additions and 1 deletions

View File

@@ -100,6 +100,7 @@ services:
expose: expose:
- 26656 - 26656
- 8081 - 8081
- 8083
#command: /home/app/.pocket/pokt_mainnet.sh && pocket start --seeds=$POCKET_MAIN_SEEDS --mainnet #command: /home/app/.pocket/pokt_mainnet.sh && pocket start --seeds=$POCKET_MAIN_SEEDS --mainnet
command: pocket start --simulateRelay command: pocket start --simulateRelay
environment: environment:

View File

@@ -94,10 +94,11 @@ services:
image: poktnetwork/pocket-core:stagenet-latest image: poktnetwork/pocket-core:stagenet-latest
ports: ports:
- "127.0.0.1:8082:8081" - "127.0.0.1:8082:8081"
- "26657:26656" - "26656:26656"
expose: expose:
- 26656 - 26656
- 8081 - 8081
- 8083
command: pocket start --seeds=$POCKET_TEST_SEEDS --testnet command: pocket start --seeds=$POCKET_TEST_SEEDS --testnet
#command: pocket start --simulateRelay #command: pocket start --simulateRelay
environment: environment:

12
util/relay.sh Normal file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
# Only geth right now
declare -A chain_arr
chain_arr[goerli]="0020"
chain_arr[rinkeby]="0022"
chain_arr[ropsten]="0023"
for i in ${!chain_arr[@]}; do
echo curl ${i} ${chain_arr[${i}]}
curl -s -X POST --data '{"relay_network_id":"'${chain_arr[${i}]}'","payload":{"data":"{\"jsonrpc\":\"2.0\",\"method\":\"eth_syncing\",\"params\":[],\"id\":1}","method":"POST","path":"","headers":{}}}' http://127.0.0.1:8081/v1/client/sim | awk "{print $2}"
done