Epoch entity endBlock overlaps startBlock of next epoch
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 42/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- graphql, typescript
- 领域
- data
调研方向
该 issue 未指定源文件或测试。首先在列出的 gateway endpoint 上复现 epoch query,然后定位 epoch 的 endBlock 在哪里计算;当相邻 epoch 不再共享边界,并且 query 显示每个 endBlock 都比下一个 startBlock 早一个区块时,即完成。
由索引模型根据 Issue 内容生成。
描述
Issue
Epoch endBlock should be one block before startBlock of next Epoch to avoid overlapping.
Solution
This can be fixed by calculating endBlock = startBlock + epochLength - 1
Current Behaviour
By querying the endpoint https://gateway.testnet.thegraph.com/network you get these results.
Query
query MyQuery {
epoches(orderBy:"startBlock", orderDirection: "desc") {
id
endBlock
startBlock
}
}
Result
{
"data": {
"epoches": [
{
"endBlock": 8366425,
"id": "719",
"startBlock": 8366148
},
{
"endBlock": 8366148,
"id": "718",
"startBlock": 8365871
},
}
- 主要语言
- TypeScript
- 星标
- 82
- 派生
- 47
- 平均合并
- 2 天 2 分钟
- 30 天内合并 PR
- 1
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
graphprotocol/graph-network-subgraph 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 85/100
-
难度 1/5 1 小时以内 新手友好度 45/100
-
难度 4/5 3-5 天 新手友好度 35/100
graphprotocol/graph-network-subgraph#270 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 25/100
-
难度 4/5 3-5 天 新手友好度 35/100
graphprotocol/graph-network-subgraph#249 · 5 条评论 ·
查看 graphprotocol/graph-network-subgraph 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 74/100
langchain-ai/langchainjs#12157 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 86/100
activescott/home-infra-k8s-flux#511 ·
维护者通常 1 天内回复
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
难度 1/5 1 小时以内 新手友好度 72/100
lingdojo/kana-dojo#33753 · 1 条评论 · 5 个 reaction ·
维护者通常 1 天内回复
-
android:player
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
follow-up needs-triage S3: minor
难度 1/5 1-3 小时 新手友好度 85/100
manaflow-ai/cmux#38032 · 1 条评论 ·
维护者通常 1 天内回复