yaci-store ignores from/to on /api/v1/addresses/{address}/transactions (yaci-cli 0.12.0-beta5)
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 32/100
Línea de trabajo
Start by reproducing the ignored from/to filter with the devnet steps in the issue, then find which yaci-store version the yaci-cli 0.12.0-beta5 image bundles. The address-transactions handler is BFAddressController.getAddressTransactions in upstream yaci-store, and the range logic is in BFAddressStorageReaderImpl.findAddressTransactions. Done means from/to filter the response, with a negative test that checks an out-of-range block is excluded.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
On bloxbean/yaci-cli:0.12.0-beta5 the bundled yaci-store accepts from and to on
GET /api/v1/addresses/{address}/transactions and ignores them. The response for
?from=1&to=1 is byte-identical to the unfiltered response, including a transaction from
block 1846.
Blockfrost documents both parameters as a block-height range (optionally height:tx_index),
inclusive, with from <= to.
The parameters are ignored rather than rejected, which is what makes this expensive to find:
a test asserting only the positive case — "the transaction appears in a query for its own
block" — passes against this backend. Only a negative control catches it.
Reproduction
Start a devnet:
docker run -d --name yaci-devnet \
-e yaci_cli_mode=native -e yaci_store_mode=native \
-e conwayHardForkAtEpoch=1 -e shiftStartTimeBehind=true \
-e yaci_store_enabled=true \
--entrypoint /app/yaci-cli -p 8080:8080 \
bloxbean/yaci-cli:0.12.0-beta5 \
create-node -o --slot-length 1 --block-time 1 --start
Pay to a freshly generated address (one with no prior history — this matters, or the
negative case below is unanswerable), wait for it to be indexed (~3s), and note the block
height that /api/v1/txs/{hash} reports. Then:
ADDR=addr_test1... # the fresh address
H=1846 # the height its payment landed in
curl -s "localhost:8080/api/v1/addresses/$ADDR/transactions"
curl -s "localhost:8080/api/v1/addresses/$ADDR/transactions?from=1&to=1"
Both return the same body, containing the block-1846 transaction. Confirmed on two separate
runs with separate fresh addresses.
Effect
A client that follows an address by polling it per block — one request per watched address
per new block, which is the cheap shape on a Blockfrost-compatible API — instead receives
the address's entire history on every poll, and re-reports long-settled transactions as new,
for ever, with no error anywhere. It also turns an O(1)-per-block follow into
O(history)-per-poll, which is the difference between a handful of requests per block and the
address's whole paginated history.
We hit this building a streaming chain follower against the Blockfrost-compatible API, where
the range filter is the property the whole cost model rests on.
Upstream state
yaci-store main implements the range, so this looks like a bundling gap rather than a
missing feature:
BFAddressController.getAddressTransactionsdeclaresfrom/toand forwards themBFAddressService.getAddressTransactionspasses them throughBFAddressStorageReaderImpl.findAddressTransactionsapplies them, viaparseBlockRefand
buildBlockRangeCondition/buildRangeCondition, in both the paging query and the
detail query
The extensions/blockfrost module is absent at v2.0.2 and present with the range
condition at v3.0.0-beta3. Spring drops undeclared query parameters silently, which is
consistent with what we observe: an older address endpoint that never declared from/to.
I have not confirmed which yaci-store build is inside yaci-cli:0.12.0-beta5, so the exact
version boundary is a guess; the observed behaviour is not.
Also seen in the same probe
Recording these here rather than opening separate issues, since they came from the same run
and may share a cause:
GET /api/v1/blocks/{X}/nextand/previousare not routed, by hash or by height, at any
depth:"No endpoint GET /api/v1/blocks/1841/next."(block 1841 was five below the tip,
so it certainly had successors)./api/v1/blocks/{hash}works, and 404s with an empty body
for an unknown hash.GET /api/v1/addresses/{address}/txsis not routed.- Address-transaction entries can carry
block_height: -1, for a genesis-era devnet
transaction. Any height arithmetic on the client has to tolerate it.
Environment
bloxbean/yaci-cli:0.12.0-beta5, arm64, Docker Desktop on macOS
- Lenguaje dominante
- Java
- Estrellas
- 70
- Forks
- 21
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
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 bloxbean/yaci-devkit
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
bloxbean/yaci-devkit#87 · 1 comentario ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
bloxbean/yaci-devkit#221 · 2 comentarios · 1 reacción ·
-
npm wrapper: SIGTERM/SIGINT orphans yaci-cli and leaves a stale PID filePosiblemente ocupada @satran004 la tomó hace 17 días. Abierto
Dificultad 3/5 Medio día Aptitud para principiantes 55/100
bloxbean/yaci-devkit#220 · 1 asignado ·
-
enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 28/100
bloxbean/yaci-devkit#207 ·
-
enhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 30/100
bloxbean/yaci-devkit#197 ·
Todos los issues de bloxbean/yaci-devkit
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
bloxbean/yaci-store#1445 ·
Los mantenedores suelen responder en 1 día
-
图片灯箱过长的话底部carousel滑动没有惯性Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
-
Spare PermissionAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 63/100
Etar-Group/Etar-Calendar#2234 ·
Los mantenedores suelen responder en 1 día
-
[BUG] MCP resources-as-tools drops invocation context when listing templatesPosiblemente ocupada @CryoThrust la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
langchain4j/langchain4j#7320 ·
Los mantenedores suelen responder en 1 día