fix(builders): count signers only for native scripts the transaction needs
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
- #600 來自 @penielgold-hub —— 已關閉,未合併
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 35/100
- Issue 類型
- 缺陷
- 描述清晰度
- 描述清楚
- 活躍度
- 活躍
- 技術堆疊
- typescript
研究方向
Start at buildFakeWitnessSet in internal/txBuilder.ts and trace which native scripts reach it from reference and spent inputs. Work out where the set of script hashes the ledger actually runs (spending, minting, certificate, withdrawal, vote, proposal, per Conway UTxO.hs L95-105) can be computed, and have signer placeholders counted only for scripts in that set; verify with the fee-estimation tests. Note that open PR #600 already targets this issue, so confirm it is not already fixed before starting.
由索引模型根據 Issue 內容生成。
描述
The fee estimate adds signer placeholders for every native script carried by a reference input, and after #595 by a spent input, even when the transaction needs none of them.
Example: Bob stores his 2-of-3 treasury multisig as a reference script in a UTxO at his own key address. He later spends that UTxO to pay Carol. The transaction needs only Bob's signature, but buildFakeWitnessSet (internal/txBuilder.ts) also adds 2 placeholders for the multisig, so the fee is estimated for 3 signatures. The transaction is still valid; Bob overpays by roughly 0.009 ADA.
The ledger only runs a script when the transaction needs it for spending, minting, a certificate, a withdrawal, a vote or a proposal (Conway UTxO.hs L95-105). The fee estimate should count signers only for native scripts whose hash is in that set, and skip scripts that are only carried by an input.
- 主要語言
- TypeScript
- 星號
- 22
- 分支
- 34
- 平均合併
- 16 小時 53 分鐘
- 30 天內合併 PR
- 10
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
IntersectMBO/evolution-sdk 的其他 Issue
-
bug
難度 2/5 1-3 小時 新手友好度 72/100
IntersectMBO/evolution-sdk#696 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 79/100
IntersectMBO/evolution-sdk#694 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 84/100
IntersectMBO/evolution-sdk#559 ·
維護者通常 1 天內回覆
-
enhancement
難度 2/5 1-3 小時 新手友好度 72/100
IntersectMBO/evolution-sdk#557 ·
維護者通常 1 天內回覆
-
RewardAccount: validate header type bits and bech32 prefix可能重新可做 關聯的 PR 已關閉且未合併。 未關閉enhancement external-review
難度 2/5 1-3 小時 新手友好度 84/100
IntersectMBO/evolution-sdk#456 · 1 則留言 ·
維護者通常 1 天內回覆
查看 IntersectMBO/evolution-sdk 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 76/100
維護者通常 1 天內回覆
-
triage: failed
難度 2/5 1-3 小時 新手友好度 68/100
oxc-project/tsrs#1277 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 72/100
ardia-browser/ardia#6798 ·
維護者通常 1 天內回覆
-
triage
難度 2/5 1-3 小時 新手友好度 83/100
維護者通常 1 天內回覆
-
enhancement from-app needs-triage
難度 2/5 1-3 小時 新手友好度 68/100
nightly-labs/openbot#23943 ·
維護者通常 1 天內回覆