Skip to content

Commit bdafcc8

Browse files
authored
[indexer] Update Docker configuration and images; add support for polkadex (#727)
1 parent 8fd79fb commit bdafcc8

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

sdk/packages/indexer/docker/docker-compose.local.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ services:
2424
- --workers=${SUBQL_WORKERS:-6}
2525
- --batch-size=${SUBQL_BATCH_SIZE:-10}
2626
- --multi-chain
27+
- --disable-multichain-rewind-lock
2728
- --unsafe
2829
- --log-level=${LOG_LEVEL:-info}
2930
- --store-cache-async=false
@@ -71,7 +72,7 @@ services:
7172
# retries: 10
7273

7374
subquery-node-bsc-chapel-local:
74-
image: polytopelabs/subql-node-ethereum:v6.3.1
75+
image: polytopelabs/subql-node-ethereum:latest
7576
restart: always
7677
environment:
7778
DB_USER: ${DB_USER}
@@ -98,6 +99,7 @@ services:
9899
- --log-level=${LOG_LEVEL:-info}
99100
- --historical=timestamp
100101
- --unfinalized-blocks
102+
- --disable-multichain-rewind-lock
101103
- --block-confirmations=0
102104
- --store-cache-async=false
103105
- --store-cache-threshold=1
@@ -108,7 +110,7 @@ services:
108110
retries: 10
109111

110112
subquery-node-arbitrum-sepolia-local:
111-
image: polytopelabs/subql-node-ethereum:v6.3.1
113+
image: polytopelabs/subql-node-ethereum:latest
112114
restart: always
113115
environment:
114116
DB_USER: ${DB_USER}
@@ -135,6 +137,7 @@ services:
135137
- --log-level=${LOG_LEVEL:-info}
136138
- --historical=timestamp
137139
- --unfinalized-blocks
140+
- --disable-multichain-rewind-lock
138141
- --block-confirmations=0
139142
- --store-cache-async=false
140143
- --store-cache-threshold=1
@@ -145,7 +148,7 @@ services:
145148
retries: 10
146149

147150
subquery-node-polygon-amoy-local:
148-
image: polytopelabs/subql-node-ethereum:v6.3.1
151+
image: polytopelabs/subql-node-ethereum:latest
149152
restart: always
150153
environment:
151154
DB_USER: ${DB_USER}
@@ -168,6 +171,7 @@ services:
168171
- --workers=${SUBQL_WORKERS:-6}
169172
- --batch-size=${SUBQL_BATCH_SIZE:-10}
170173
- --multi-chain
174+
- --disable-multichain-rewind-lock
171175
- --unsafe
172176
- --log-level=${LOG_LEVEL:-info}
173177
- --store-cache-async=false

sdk/packages/indexer/scripts/generate-compose.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { fileURLToPath } from "node:url"
66
import Handlebars from "handlebars"
77
import { getEnv, getValidChains } from "../src/configs"
88

9-
const EVM_IMAGE = "polytopelabs/subql-node-ethereum:v6.3.4-0"
9+
const EVM_IMAGE = "polytopelabs/subql-node-ethereum:latest"
1010
const SUBSTRATE_IMAGE = "subquerynetwork/subql-node-substrate:v5.9.1"
1111

1212
// Setup paths

sdk/packages/indexer/scripts/templates/partials/docker-command.hbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
- --workers=${SUBQL_WORKERS:-16}
55
- --batch-size=${SUBQL_BATCH_SIZE:-100}
66
- --multi-chain
7+
- --disable-multichain-rewind-lock
78
- --unsafe
89
- --log-level=info
910
{{#if unfinalizedBlocks}}

sdk/packages/indexer/src/configs/config-testnet.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@
2323
"startBlock": 34996,
2424
"stateMachineId": "KUSAMA-2034"
2525
},
26+
"polkadex-testnet": {
27+
"type": "substrate",
28+
"chainId": "0x97dc37ed537bfa3a740757e02c7a466503908364b1a359d8d5f9cb44def0deac",
29+
"startBlock": 13063,
30+
"stateMachineId": "SUBSTRATE-PDEX"
31+
},
2632
"sepolia": {
2733
"type": "evm",
2834
"chainId": "11155111",

0 commit comments

Comments
 (0)