`transaction build` queries the node twice
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 56/100
Línea de trabajo
Read cardano-cli/src/Cardano/CLI/EraBased/Transaction/Run.hs, especially runTransactionBuildCmd and runTxBuild at the linked locations. Trace how the query results feed balancing, treasury values, and the --calculate-plutus-script-cost branch. The issue is done when the command queries once with certificates and passes that result to runTxBuild, preserving the needed values across those paths.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
transaction build runs queryStateForBalancedTx twice per invocation, each time over a new local state query connection:
runTransactionBuildCmdqueries without certificates.runTxBuildqueries again with certificates.
queryCurrentEra is also called twice, in runTransactionBuildCmd and in runTxBuild.
runTxBuild balances with the result of its own query only.
runTransactionBuildCmd uses the first result for two things:
- the current treasury value, when it is requested
- the UTxO, system start and era history, in the
--calculate-plutus-script-costbranch only
On a plain build --out-file without the treasury value, the first query's result is not used at all.
Effects:
- Every
buildopens two extra node connections and repeats the whole query set, including UTxO by TxIn and the stake pool set. - The two queries acquire the volatile tip separately, so the treasury value can come from a different ledger state than the UTxO and protocol parameters used for balancing.
Suggested fix: query once in runTransactionBuildCmd, with the certificates, and pass the result to runTxBuild.
- Lenguaje dominante
- Haskell
- Estrellas
- 72
- Forks
- 26
- Merge medio
- 2 d 2 h
- PR fusionados (30 d)
- 21
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 IntersectMBO/cardano-cli
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
IntersectMBO/cardano-cli#1306 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
BUG - cardano-cli 11.6 returns wrong `bksRegisteredIn` epochPosiblemente ocupada @carbolymer la tomó hace 3 días. Abierto
IntersectMBO/cardano-cli#1493 · 3 comentarios · 1 reacción · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Show genesis hash mismatches in plain wordsPosiblemente ocupada @palas la tomó hace 15 días. Abiertoenhancement
IntersectMBO/cardano-cli#1481 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Add a dedicated pool registration certificate creation command to register or update a pool’s BLS key using existing pool parametersPosiblemente ocupada @carbolymer la tomó hace 10 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 52/100
IntersectMBO/cardano-cli#1479 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Clarify the origin and intended use of Plutus V2/V4 test fixturesPosiblemente ocupada @Jimbo4350 la tomó hace 24 días. Abierto
IntersectMBO/cardano-cli#1464 · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de IntersectMBO/cardano-cli
Issues similares
-
Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
Los mantenedores suelen responder en 1 día
-
pkg:crucible-mir type:bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
Heroes in statisticsAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
GaloisInc/llvm-pretty#211 ·