Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testnet: bump to Godwoken 1.7.3 and web3/indexer 1.9.0 #80

Merged
merged 5 commits into from
Nov 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 6 additions & 13 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@

## Release notes
- Godwoken Web3
https://github.com/nervosnetwork/godwoken-web3/releases
https://github.com/godwokenrises/godwoken-web3/releases
- Godwoken
https://github.com/nervosnetwork/godwoken/releases
https://github.com/godwokenrises/godwoken/releases
- Scripts
https://github.com/nervosnetwork/godwoken-scripts/releases
https://github.com/godwokenrises/godwoken-scripts/releases
- Polyjuice
https://github.com/nervosnetwork/godwoken-polyjuice/releases
https://github.com/godwokenrises/godwoken-polyjuice/releases


## Changed Configs
Expand All @@ -18,16 +18,9 @@
<!--
## Inspect the component versions in the image
```bash
docker inspect ghcr.io/nervosnetwork/godwoken-prebuilds:1.6.0 | egrep ref.component
docker inspect ghcr.io/godwokenrises/godwoken-prebuilds:xxxx | egrep ref.component

# components
"ref.component.ckb-production-scripts": "rc_lock 47358ce",
"ref.component.ckb-production-scripts-sha1": "47358ceaa06274fdbde9e1f20b4f7f58313ce6e0",
"ref.component.godwoken": "v1.6.0 0ae11969",
"ref.component.godwoken-polyjuice": "1.4.0 5626a05",
"ref.component.godwoken-polyjuice-sha1": "5626a05279d0f0ad1d6e2aa0e954962b3c777134",
"ref.component.godwoken-scripts": "v1.3.0-rc1 430247e",
"ref.component.godwoken-scripts-sha1": "430247efc62aed3e4b9b3661ade6adead0dfcbfc",
"ref.component.godwoken-sha1": "0ae1196976df620740ed3834f4667a722b4b65c7",
...
```
-->
2 changes: 1 addition & 1 deletion .github/workflows/readonly-node-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
script: |
const { getTipBlockNumber } = require("./godwoken-tests/scripts/helper");
const sleep = ms => new Promise(resolve => setTimeout(resolve, ms));
const PUBLIC_WEB3_RPC='https://godwoken-testnet-v1.ckbapp.dev';
const PUBLIC_WEB3_RPC='https://v1.testnet.godwoken.io/rpc';
let isSyncedToTip = false;
while (!isSyncedToTip) {
await sleep(6666);
Expand Down
21 changes: 16 additions & 5 deletions testnet_v1_1/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
# Requires docker-compose >= 1.29.0
version: '3.9'

volumes:
testnet_v1-web3-indexer-data:
testnet_v1-redis-data:

services:
# Note: To achieve higher sync speed, please run your own ckb-testnet-node and ckb-testnet-indexer,
# and update [rpc_client] in gw-testnet_v1-config-readonly.toml.
# see: https://docs.nervos.org/docs/basics/guides/run-ckb-with-docker#run-a-ckb-testnet-node
gw-readonly:
container_name: gw-testnet_v1-readonly
image: ghcr.io/godwokenrises/godwoken-prebuilds:1.7.1-poly1.5.0
image: ghcr.io/godwokenrises/godwoken-prebuilds:1.7.3
expose: [8119, 8219]
healthcheck:
test: /bin/gw-healthcheck.sh
Expand Down Expand Up @@ -37,16 +41,16 @@ services:
POSTGRES_USER: your_db_user_name
POSTGRES_PASSWORD: your_password
volumes:
- ./chain-data/postgresql/data:/var/lib/postgresql/data
- testnet_v1-web3-indexer-data:/var/lib/postgresql/data

redis:
image: redis:bullseye
user: redis:redis
volumes:
- ./chain-data/redis-data:/data
- testnet_v1-redis-data:/data

web3:
image: ghcr.io/godwokenrises/godwoken-web3-prebuilds:v1.8.6
image: ghcr.io/godwokenrises/godwoken-web3-prebuilds:v1.9.0
healthcheck:
test: curl http://127.0.0.1:8024 || exit 1
volumes:
Expand All @@ -63,13 +67,20 @@ services:
condition: service_healthy

web3-indexer:
image: ghcr.io/godwokenrises/godwoken-web3-indexer-prebuilds:v1.8.6
image: ghcr.io/godwokenrises/godwoken-web3-indexer-prebuilds:v1.9.0
volumes:
- ./web3-indexer-config.toml:/var/lib/web3-indexer/indexer-config.toml
- ./chain-data/logs:/var/lib/web3-indexer/logs
# How to re-sync web3-indexer at /var/lib/web3-indexer/ ?
# ➜ nohup gw-web3-indexer update <startBlock> <endBlock> > logs/web3-indexer-update.log 2>&1 &
# or
# ➜ nohup gw-web3-indexer update > logs/web3-indexer-update.log 2>&1 &
# refer to: https://github.com/godwokenrises/godwoken-web3/blob/main/README.md#update-blocks
working_dir: /var/lib/web3-indexer
command: [ "gw-web3-indexer" ]
environment:
- RUST_LOG=info
restart: unless-stopped
depends_on:
web3:
condition: service_healthy