shard 1 and no persisten bootnodes, let harmony choose

This commit is contained in:
cventastic
2022-01-23 15:13:45 +01:00
parent 7f88d965c8
commit d666fc1a2f
2 changed files with 6 additions and 13 deletions

View File

@@ -5,6 +5,7 @@ docker <br />
docker-compose <br />
DNS A-Record pointing to your server <br />
Wireguard-Server: Paste wireguard wg0.conf from wireguard-server to wireguard/config/wg0.conf <br />
.env File inside POKT-DOKT with secrets <br />
#### Usage
@@ -14,9 +15,9 @@ cd POKT_DOKT
git reset --hard origin/main && git pull && ./util/prepare.sh
```
!!! This compose file needs env-vars, for example in a .env file inside the repo root-folder !!!
!!! I added a simple test-script (util/test_relay.sh) to see if the (geth)chains are synced. Dont try to relay before they are. <br />
To test if relaying chains works, pokt-testnet-service and pokt-mainnet service have to be provided with the following command parameters:
# EXAMPLES
Start POKT in relay mode:
```
command: pocket start --simulateRelay
```
@@ -24,8 +25,6 @@ If you want to activly relay. You also have to Stake! <br />
Testnet-Faucet: (https://faucet.pokt.network/) <br />
How to stake: https://docs.pokt.network/home/paths/node-runner#stake-the-validator <br />
# EXAMPLES
POKT QUERY for simulate-relay mode:
```
Pockt-Testnet:
@@ -44,12 +43,6 @@ curl -X POST --data '{"relay_network_id":"0020","payload":{"data":"{\"jsonrpc\":
curl -v -X POST --data '{"relay_network_id":"0020","payload":{"data":"{\"jsonrpc\":\"2.0\",\"method\":\"eth_syncing\",\"params\":[],\"id\":1}","method":"POST","path":"","headers":{}}}' http://127.0.0.1:8081/v1/client/sim
```
POKT QUERY im staked mode:
```
curl -X POST https://$RELAYDOMAIN/v1/query/nodes
curl -X POST https://$RLEAYDOMAIN/v1/query/state
```
STANDARD GETH QUERY (from whitelistet server)
```
curl -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":1}' https://$RPCNODE/goerli
@@ -82,6 +75,6 @@ Telegram get group ids the bot is in:
```curl -X POST https://api.telegram.org/bot$TELEGRAM_API_TOKEN/getUpdates```
### neue NODE
Wallet
.env
rpc-timeout
whitelist

View File

@@ -3,7 +3,7 @@ version: '3.1'
services:
harmony-mainnet:
build: ./harmony/build
command: /binary --log.dir /harmony/log --run.shard 0 --bootnodes /ip4/100.26.90.187/tcp/9874/p2p/Qmdfjtk6hPoyrH1zVD9PEH4zfWLo38dP2mDvvKXfh3tnEv,/ip4/54.213.43.194/tcp/9874/p2p/QmZJJx6AdaoEkGLrYG4JeLCKeCKDjnFz2wfHNHxAqFSGA9,/ip4/13.113.101.219/tcp/12019/p2p/QmQayinFSgMMw5cSpDUiD9pQ2WeP6WNmGxpZ6ou3mdVFJX,/ip4/99.81.170.167/tcp/12019/p2p/QmRVbTpEYup8dSaURZfF6ByrMTSKa4UyUzJhSjahFzRqNj --dns.zone t.hmny.io --http.ip 0.0.0.0 --datadir /harmony
command: /binary --log.dir /harmony/log --run.shard 1 --dns.zone t.hmny.io --http.ip 0.0.0.0 --datadir /harmony
sysctls:
net.core.somaxconn: 1024
# net.core.netdev_max_backlog: 65536