CodeChain-io / CodeChain-io/codechain-indexer

Wrong aggregation of UTXO

未关闭
#196 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
TypeScript
星标
21
派生
15
PR 合并指标
30 天内没有已合并 PR

描述

Currently, the type of the `address` field is `string` and it's an empty string(`""`) when the address is unavailable.

The problem is, aggregation is done by GROUP BY of `address`. It must be changed to GROUP BY of `lockScriptHash` and `parameters`.

贡献指南

这个仓库没有索引到贡献指南

调研方向

定位 UTXO 聚合代码,以及当前按地址分组的查询或入口点。检查 lockScriptHash 和 parameters 的表示方式,然后验证分组使用这两个字段,以确保地址不可用的 UTXO 不会被合并;运行与聚合行为相关的现有测试或检查。

由索引模型根据 Issue 内容生成。

评估

技术栈
typescript
领域
blockchain, databases
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
48/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。