From ad4c9c933105f98487f0c376efb041bbf3c08f6e Mon Sep 17 00:00:00 2001 From: Kurdistan Tech Ministry Date: Sat, 11 Apr 2026 14:58:09 +0300 Subject: [PATCH] fix: update startBlock to current chain height to avoid pruned state crash MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- pezkuwi-assethub.yaml | 2 +- pezkuwi.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pezkuwi-assethub.yaml b/pezkuwi-assethub.yaml index 28c941c..9b67a34 100644 --- a/pezkuwi-assethub.yaml +++ b/pezkuwi-assethub.yaml @@ -19,7 +19,7 @@ network: dataSources: - name: main kind: substrate/Runtime - startBlock: 56400 + startBlock: 579775 mapping: file: ./dist/index.js handlers: diff --git a/pezkuwi.yaml b/pezkuwi.yaml index 4f4928c..302a220 100644 --- a/pezkuwi.yaml +++ b/pezkuwi.yaml @@ -22,7 +22,7 @@ network: dataSources: - name: main kind: substrate/Runtime - startBlock: 57100 + startBlock: 708687 mapping: file: ./dist/index.js handlers: