`transaction build` queries the node twice
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 56/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Haskell
- Stelle
- 72
- Fork
- 26
- Merge medio
- 3g 27m
- PR unite (30g)
- 20
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di IntersectMBO/cardano-cli
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
IntersectMBO/cardano-cli#1306 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Show genesis hash mismatches in plain wordsForse già presa @palas l’ha presa 4 giorni fa. Aperta
IntersectMBO/cardano-cli#1481 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 52/100
IntersectMBO/cardano-cli#1479 ·
I maintainer di solito rispondono entro 1 giorno
-
Clarify the origin and intended use of Plutus V2/V4 test fixturesForse già presa @Jimbo4350 l’ha presa 13 giorni fa. Aperta
IntersectMBO/cardano-cli#1464 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Share body construction and input reading between transaction and sub-transaction buildersForse già presa @Jimbo4350 l’ha presa 13 giorni fa. Apertarefactor
IntersectMBO/cardano-cli#1463 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di IntersectMBO/cardano-cli
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
objectionary/phino#2137 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
fmidue/logic-tasks#387 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
iand675/hs-opentelemetry#323 ·
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
alunduil/siren-json.hs#264 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
alunduil/network-arbitrary#210 ·
I maintainer di solito rispondono entro 1 giorno