Scanner assumes every transaction row is an object with a numeric id
メンテナーはふだん 1 日以内に返信
@cX3po がすでに取り組んでいます。
2026年11月20日 から。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 84/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
- 領域
- backend
調査の方向性
reference-implementations/dacs-directory/src/catalog/scan.ts:507-521 から始めてください。ここでは map と fresh-row フィルターが t.id を読み取っており、436 行目のアンカーバックフィルの objectValue(tx)?.id と比較します。test/scan-robustness.test.ts にある既存の scan ハーネスを読んで scanChain がどのように駆動されるかを確認し、null 行と id のない行のケースを追加します。完了条件は、Number.isSafeInteger を満たす id を持たない行がカウント前に除外され、scan が例外を投げずに完了することです。
索引モデルが issue の本文から書いたものです。
説明
Where: reference-implementations/dacs-directory/src/catalog/scan.ts:507 (on phase0-completion at the linked commit)
What goes wrong: In the scan loop, page.map((t) => t.id) (scan.ts:507) throws a TypeError if the node returns a null row, and the same happens at the filter on line 514; the whole pass stops. A row with no numeric id passes the 'fresh' filter (typeof t.id !== "number" || ..., scan.ts:514), so it skips the finality-depth check and is counted in scanned and processed (scan.ts:517-521).
Suggested fix: Read ids the way the anchor backfill does (objectValue(tx)?.id, scan.ts:436) and keep only values that pass Number.isSafeInteger. Drop rows without a valid id from the fresh set instead of passing them through. Add a scan test with a null row and an id-less row (test/scan-robustness.test.ts already drives scanChain).
Size: Small
This comes from a code review, not from a failing run, so please confirm it before starting. Send the fix as a pull request to phase0-completion. It merges once tests pass and a maintainer has approved it.
- 主要言語
- TypeScript
- スター
- 0
- フォーク
- 3
- 平均マージ
- 20時間 26分
- マージ済み PR(30日)
- 119
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
DACS-Agent-commerce/Community のほかの issue
-
Payment safety page: explain 'preimage' and 'claim' and name the cross-chain open state preciselyオープンcontributors-section
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
DACS-Agent-commerce/Community#366 ·
メンテナーはふだん 1 日以内に返信
-
contributors-section
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
DACS-Agent-commerce/Community#361 ·
メンテナーはふだん 1 日以内に返信
-
contributors-section
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
DACS-Agent-commerce/Community#359 ·
メンテナーはふだん 1 日以内に返信
-
contributors-section
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
DACS-Agent-commerce/Community#354 ·
メンテナーはふだん 1 日以内に返信
-
OpenAPI entry for the listing version route omits its 409 response対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンcontributors-section
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
DACS-Agent-commerce/Community#348 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
DACS-Agent-commerce/Community の issue をすべて見る
似ている issue
-
Y2025: QBI forms print a negative taxable income; Form 8995-A lines 14b/14c check the wrong columnオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
readest/readest#7903 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
type: documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Oddmash/oddmash-ui#72 ·
メンテナーはふだん 1 日以内に返信
-
bug good first issue priority: low
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
TMHSDigital/steam-mcp#106 ·
-
bug priority:p3
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
LCNINE/almondyoung-server#1562 ·
メンテナーはふだん 1 日以内に返信