Ethereum 在图节点中部署平衡器子图时,如何解决跟踪过滤器不存在的问题?
我已成功安装。之后,我尝试在我的graph节点中部署 子图部署过程:Ethereum 在图节点中部署平衡器子图时,如何解决跟踪过滤器不存在的问题?,ethereum,go-ethereum,Ethereum,Go Ethereum,我已成功安装。之后,我尝试在我的graph节点中部署 子图部署过程: 克隆 安装依赖项 生成图形代码 创建本地节点 在本地部署 部署之后,我的图形节点日志中出现如下错误 Aug 21 13:15:36.545 ERRO Subgraph instance failed to run: RPC error: Error { code: MethodNotFound, message: "the method trace_filter does not exist/is not avail
Aug 21 13:15:36.545 ERRO Subgraph instance failed to run: RPC error: Error { code: MethodNotFound, message: "the method trace_filter does not exist/is not available", data: None }, code: SubgraphSyncingFailure, id: QmTMsUH9rUVjpBTDRNuUcNHM3rT9ZZmxkDmTYmyKUpzEJn, subgraph_id: QmTMsUH9rUVjpBTDRNuUcNHM3rT9ZZmxkDmTYmyKUpzEJn, component: SubgraphInstanceManager
Aug 21 13:15:41.071 INFO Syncing 1 blocks from Ethereum., code: BlockIngestionStatus, blocks_needed: 1, blocks_behind: 1, latest_block_head: 10703787, current_block_head: 10703786, network_name: mainnet,
component: BlockIngestor
获取节点版本
Geth
Version: 1.9.9-stable
Git Commit: 017449971e1e9e220efcd97d3313a0e27f47003b
Git Commit Date: 20191206
Architecture: amd64
Protocol Versions: [64 63]
Go Version: go1.13.5
Operating System: linux
GOPATH=/home/ubuntu/work
GOROOT=/usr/local/go
我需要启用任何类型的API才能成功部署平衡器子图吗?Geth节点目前不支持
trace\u filter
方法。对于某些子图,如balancer子图,当尝试将其部署到图形节点
,它将尝试调用此方法跟踪过滤器
。但由于geth节点没有API支持,graph节点因此面临错误
参考:Geth JSON-RPC不支持trace\u过滤器
API。
按照链接查找geth节点支持的API
要完全支持图形节点,需要使用奇偶校验节点。已通过奇偶校验支持API
yarn codegen
yarn create:local
yarn deploy:local
Aug 21 13:15:36.545 ERRO Subgraph instance failed to run: RPC error: Error { code: MethodNotFound, message: "the method trace_filter does not exist/is not available", data: None }, code: SubgraphSyncingFailure, id: QmTMsUH9rUVjpBTDRNuUcNHM3rT9ZZmxkDmTYmyKUpzEJn, subgraph_id: QmTMsUH9rUVjpBTDRNuUcNHM3rT9ZZmxkDmTYmyKUpzEJn, component: SubgraphInstanceManager
Aug 21 13:15:41.071 INFO Syncing 1 blocks from Ethereum., code: BlockIngestionStatus, blocks_needed: 1, blocks_behind: 1, latest_block_head: 10703787, current_block_head: 10703786, network_name: mainnet,
component: BlockIngestor
Geth
Version: 1.9.9-stable
Git Commit: 017449971e1e9e220efcd97d3313a0e27f47003b
Git Commit Date: 20191206
Architecture: amd64
Protocol Versions: [64 63]
Go Version: go1.13.5
Operating System: linux
GOPATH=/home/ubuntu/work
GOROOT=/usr/local/go