From d666fc1a2f9efbc5ea6fab0e5e79cdf41d27ec09 Mon Sep 17 00:00:00 2001 From: cventastic Date: Sun, 23 Jan 2022 15:13:45 +0100 Subject: [PATCH] shard 1 and no persisten bootnodes, let harmony choose --- README.md | 17 +++++------------ docker-compose.harmony.yml | 2 +- 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index c15f1baf..9938a2b2 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ docker
docker-compose
DNS A-Record pointing to your server
Wireguard-Server: Paste wireguard wg0.conf from wireguard-server to wireguard/config/wg0.conf
+.env File inside POKT-DOKT with secrets
#### 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.
-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!
Testnet-Faucet: (https://faucet.pokt.network/)
How to stake: https://docs.pokt.network/home/paths/node-runner#stake-the-validator
-# 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 \ No newline at end of file diff --git a/docker-compose.harmony.yml b/docker-compose.harmony.yml index b7e66f14..20ff2ec7 100644 --- a/docker-compose.harmony.yml +++ b/docker-compose.harmony.yml @@ -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