mirror of
https://github.com/pezkuwichain/pezkuwi-subquery.git
synced 2026-04-21 23:37:56 +00:00
ad4c9c9331
Both AH (56400→579775) and Relay (57100→708687) startBlocks were pointing to blocks whose state has been pruned by the chain nodes. This caused a crash loop: SubQuery couldn't index those blocks because api.query calls returned 'State already discarded' errors. Root cause: AH node has ~200 block state window (default pruning). Fix: set startBlock to current tip - 50 blocks (safely within window). Also added --state-pruning=archive to AH collator azad on VPS3 so this doesn't recur as SubQuery re-syncs.
40 lines
1.0 KiB
YAML
40 lines
1.0 KiB
YAML
specVersion: 1.0.0
|
|
name: subquery-pezkuwi-staking
|
|
version: 1.0.0
|
|
runner:
|
|
node:
|
|
name: "@subql/node"
|
|
version: ">=4.6.6"
|
|
query:
|
|
name: "@subql/query"
|
|
version: "*"
|
|
description: Pezkuwi Relay SubQuery - Indexes transfer history and governance-related data
|
|
repository: https://github.com/pezkuwichain/pezkuwi-subquery
|
|
schema:
|
|
file: ./schema.graphql
|
|
network:
|
|
chainId: "0x1aa94987791a5544e9667ec249d2cef1b8fdd6083c85b93fc37892d54a1156ca"
|
|
endpoint:
|
|
- wss://rpc.pezkuwichain.io
|
|
- wss://mainnet.pezkuwichain.io
|
|
chaintypes:
|
|
file: ./chainTypes/pezkuwi.json
|
|
dataSources:
|
|
- name: main
|
|
kind: substrate/Runtime
|
|
startBlock: 708687
|
|
mapping:
|
|
file: ./dist/index.js
|
|
handlers:
|
|
# Signed extrinsics for history
|
|
- handler: handleHistoryElement
|
|
kind: substrate/CallHandler
|
|
filter:
|
|
isSigned: true
|
|
# Transfers
|
|
- handler: handleTransfer
|
|
kind: substrate/EventHandler
|
|
filter:
|
|
module: balances
|
|
method: Transfer
|