Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

`transaction build` queries the node twice

オープン
#1,472 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
56/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
haskell
領域
backend, cli

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

transaction build runs queryStateForBalancedTx twice per invocation, each time over a new local state query connection:

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:

On a plain build --out-file without the treasury value, the first query's result is not used at all.

Effects:

  • Every build opens 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.

主要言語
Haskell
スター
72
フォーク
26
平均マージ
3日 27分
マージ済み PR(30日)
20

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

IntersectMBO/cardano-cli のほかの issue

IntersectMBO/cardano-cli の issue をすべて見る

似ている issue

Haskell の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。