mirror of
https://github.com/pezkuwichain/pezkuwi-subquery.git
synced 2026-04-22 01:57:58 +00:00
d270504c9a
Substrate nodes prune historical state by default (~256 blocks). When SubQuery restarts and tries to fetch runtime version for old blocks, it crashes with "State already discarded". This patch adds a fallback to current runtime version when historical state is unavailable, preventing crash loops on pruned RPC endpoints. Also removes --pull from deploy workflow to avoid unnecessary full rebuilds on every push.