mirror of
https://github.com/luxfi/explorer.git
synced 2026-09-24 00:25:12 +00:00
build: graph v1.2.11 + label every graph indexer with its chain/subgraph
v1.5.1 in the cluster showed one chain's valuation pass reporting and two others silent — and the log gave no way to tell which chain any line belonged to, because the graph indexer was the one component here that did not prefix its output. Config.Label (new in graph v1.2.11) fixes that: pass the same "slug/name" this supervisor already uses everywhere else. v1.2.11 also stops the valuation pass writing a row per swap (which is what wedged the busy chains) and reads V3 swap amounts as the int256 they are. Co-authored-by: Hanzo Dev <[email protected]>
This commit is contained in:
@@ -4,7 +4,7 @@ go 1.26.4
|
||||
|
||||
require (
|
||||
github.com/gorilla/websocket v1.5.4-0.20250319132907-e064f32e3674
|
||||
github.com/luxfi/graph v1.2.10
|
||||
github.com/luxfi/graph v1.2.11
|
||||
github.com/luxfi/indexer v1.4.6
|
||||
github.com/luxfi/mdns v0.1.1
|
||||
github.com/mattn/go-sqlite3 v2.0.3+incompatible
|
||||
|
||||
@@ -185,6 +185,8 @@ github.com/luxfi/graph v1.2.9 h1:K/O+hrmARJgRwm7mGlheLvgXzTQ15ZP/YCfUzr94+8g=
|
||||
github.com/luxfi/graph v1.2.9/go.mod h1:aLmpNdFUtk628LZttVaJaliWmGBAQNG+4S0tnkcA5gY=
|
||||
github.com/luxfi/graph v1.2.10 h1:RU3i0JVV8LSFAFlSBeQS5CsupK273cDs+jAcKqnaKEY=
|
||||
github.com/luxfi/graph v1.2.10/go.mod h1:aLmpNdFUtk628LZttVaJaliWmGBAQNG+4S0tnkcA5gY=
|
||||
github.com/luxfi/graph v1.2.11 h1:CpYxYkbCC26gVIh0bdYoNZ9FqTTvSrOexviNyrwvHpg=
|
||||
github.com/luxfi/graph v1.2.11/go.mod h1:aLmpNdFUtk628LZttVaJaliWmGBAQNG+4S0tnkcA5gY=
|
||||
github.com/luxfi/ids v1.2.13 h1:lEotq0WUpMLcc/5X5MbE3n73jdfNo8IlFvTDfUXg+9A=
|
||||
github.com/luxfi/ids v1.2.13/go.mod h1:QWjJvggX/nRkmrz1AGSaF2Y6mnOvz3g7lFOzs3Zd+JM=
|
||||
github.com/luxfi/indexer v1.4.6 h1:DytagtI2+99jMD+4JU3MRQuLdZiZjtHOCi8ukSehz2g=
|
||||
|
||||
@@ -393,6 +393,10 @@ func (s *ChainSupervisor) runSubgraph(ctx context.Context, cfg ChainConfig, sg S
|
||||
RPC: cfg.RPC,
|
||||
PoolManager: cfg.PoolManager, // empty => indexer defaults to 0x9999
|
||||
StartBlock: cfg.Indexer.StartBlock,
|
||||
// Every other line this supervisor emits is prefixed "[slug/name]"; the
|
||||
// graph indexer's were not, so in a six-chain process there was no way to
|
||||
// tell which chain a line came from — or which chain had gone quiet.
|
||||
Label: cfg.Slug + "/" + sg.Name,
|
||||
}, store)
|
||||
// One-shot enrichment of Token rows persisted by an older graph build with the
|
||||
// address placeholder (symbol == shortAddr). Opt-in via BACKFILL_TOKENS=1; runs
|
||||
|
||||
Reference in New Issue
Block a user