Scanner assumes every transaction row is an object with a numeric id
Los mantenedores suelen responder en 1 día
@cX3po ya está trabajando en esto.
Desde el 20/11/2026.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 84/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
- Área
- backend
Línea de trabajo
Empieza en reference-implementations/dacs-directory/src/catalog/scan.ts:507-521, donde el map y el filtro de filas nuevas leen t.id, y compáralo con el objectValue(tx)?.id del backfill de anclas en la línea 436. Lee el harness de scan existente en test/scan-robustness.test.ts para ver cómo se dirige scanChain, y luego añade casos de filas nulas y filas sin id. Hecho significa que las filas sin un id que pase Number.isSafeInteger se descartan antes de contar y el scan termina sin lanzar.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- TypeScript
- Estrellas
- 0
- Forks
- 3
- Merge medio
- 20 h 26 min
- PR fusionados (30 d)
- 119
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de DACS-Agent-commerce/Community
-
Payment safety page: explain 'preimage' and 'claim' and name the cross-chain open state preciselyAbiertocontributors-section
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
DACS-Agent-commerce/Community#366 ·
Los mantenedores suelen responder en 1 día
-
contributors-section
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
DACS-Agent-commerce/Community#361 ·
Los mantenedores suelen responder en 1 día
-
contributors-section
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
DACS-Agent-commerce/Community#359 ·
Los mantenedores suelen responder en 1 día
-
contributors-section
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
DACS-Agent-commerce/Community#354 ·
Los mantenedores suelen responder en 1 día
-
OpenAPI entry for the listing version route omits its 409 responsePosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertocontributors-section
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
DACS-Agent-commerce/Community#348 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de DACS-Agent-commerce/Community
Issues similares
-
Y2025: QBI forms print a negative taxable income; Form 8995-A lines 14b/14c check the wrong columnAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
readest/readest#7903 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
type: documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Oddmash/oddmash-ui#72 ·
Los mantenedores suelen responder en 1 día
-
bug good first issue priority: low
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
TMHSDigital/steam-mcp#106 ·
-
bug priority:p3
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
LCNINE/almondyoung-server#1562 ·
Los mantenedores suelen responder en 1 día