Empty DACS_SCAN_FINALITY_DEPTH turns the finality hold-back off
メンテナーはふだん 1 日以内に返信
@cX3po がすでに取り組んでいます。
2026年11月20日 から。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 84/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- node.js, typescript
- 領域
- backend
調査の方向性
nonNegativeInt(reference-implementations/dacs-directory/src/catalog/scan.ts:36-38)と 491 行目の呼び出し箇所から始め、次に README.md:193 で文書化されたデフォルト値 2 を確認してください。DACS_SCAN_FINALITY_DEPTH= と空白のみの値の両方が空文字列としてパーサーに届き、現在は深さ 0 になることを確認してください。test/scan-addresses.test.ts:46-67 の環境変数復元パターンと並べて単体テストを追加してください。完了とは、両方のケースが 2 にフォールバックし、スイートが通ることを意味します。
索引モデルが issue の本文から書いたものです。
説明
Where: reference-implementations/dacs-directory/src/catalog/scan.ts:491 (on phase0-completion at the linked commit)
What goes wrong: nonNegativeInt (scan.ts:36-38) uses Number(value), and Number('') and Number(' ') are 0. So DACS_SCAN_FINALITY_DEPTH= (set but empty), read at scan.ts:491, gives depth 0 instead of the documented default of 2 (README.md:193), and the newest transactions are indexed before they are held back.
Suggested fix: In nonNegativeInt, treat undefined, empty and whitespace-only strings as unset and return the fallback. Add a unit test for an empty and a whitespace-only value (restore the environment variable afterwards, as test/scan-addresses.test.ts:46-67 does).
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
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
volcengine/OpenViking#8432 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
jupyterlab/eslint-plugin#178 · コメント 2 件 ·
-
bug from-app needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
nightly-labs/openbot#16303 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100