relay.sh
This commit is contained in:
@@ -100,6 +100,7 @@ services:
|
||||
expose:
|
||||
- 26656
|
||||
- 8081
|
||||
- 8083
|
||||
#command: /home/app/.pocket/pokt_mainnet.sh && pocket start --seeds=$POCKET_MAIN_SEEDS --mainnet
|
||||
command: pocket start --simulateRelay
|
||||
environment:
|
||||
|
||||
@@ -94,10 +94,11 @@ services:
|
||||
image: poktnetwork/pocket-core:stagenet-latest
|
||||
ports:
|
||||
- "127.0.0.1:8082:8081"
|
||||
- "26657:26656"
|
||||
- "26656:26656"
|
||||
expose:
|
||||
- 26656
|
||||
- 8081
|
||||
- 8083
|
||||
command: pocket start --seeds=$POCKET_TEST_SEEDS --testnet
|
||||
#command: pocket start --simulateRelay
|
||||
environment:
|
||||
|
||||
12
util/relay.sh
Normal file
12
util/relay.sh
Normal 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
|
||||
Reference in New Issue
Block a user