`transaction build` queries the node twice
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 56/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Haskell
- Star
- 72
- Fork
- 25
- Merge trung bình
- 3 ngày
- Pull request đã merge (30 ngày)
- 19
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của IntersectMBO/cardano-cli
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
IntersectMBO/cardano-cli#1306 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Clarify the origin and intended use of Plutus V2/V4 test fixturesCó thể đã có người làm @Jimbo4350 đã nhận 3 ngày trước. Đang mở
IntersectMBO/cardano-cli#1464 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Share body construction and input reading between transaction and sub-transaction buildersCó thể đã có người làm @Jimbo4350 đã nhận 3 ngày trước. Đang mởrefactor
IntersectMBO/cardano-cli#1463 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Share common transaction-body arguments across builder commandsCó thể đã có người làm @Jimbo4350 đã nhận 3 ngày trước. Đang mởrefactor
IntersectMBO/cardano-cli#1462 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Move Transaction.Internal.Common helpers into focused modulesCó thể đã có người làm @Jimbo4350 đã nhận 3 ngày trước. Đang mởrefactor
IntersectMBO/cardano-cli#1461 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của IntersectMBO/cardano-cli
Issue tương tự
-
The Hackage corpus takes in every package in its cache directory, not only the listed releasesĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
ndmitchell/hlint#1710 ·
-
CJK text is italicizedCó thể đã có người làm @daniel-gregg đã nhận 2 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 4 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
simplex-chat/simplex-chat#7714 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày