UPLC-CAPE: ScriptContextBuilder: placeholder values the ledger never produces
@Unisay ci sta già lavorando.
Dal 4/11/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Besides the order problems in #271, the test contexts carry values that no ledger-built context has:
- The baseline sets
txInfoFeeto 0. Every transaction pays a positive fee; the mainnet minimum is 155,381 lovelace plus 44 per byte. - The key hashes in the
htlc,linear_vestingandtwo_party_escrowfixtures and specs have 32 bytes, and the script hash placeholder111…1has 58 hex digits, so 29 bytes. Ledger key and script hashes have 28 bytes. add_input_utxohas no address field. An own input gets the script hash placeholder, and every other input getsPubKeyCredential (PubKeyHash ""), a 0-byte hash.buildScriptContextaccepts a spending context whoseSpendingScriptreference is not intxInfoInputs. Thetwo_party_escrowdeposit fixtures depend on that (#272).
The fee and the hash lengths do not change the measured numbers. No validator reads the fee, and the cost model sizes a bytestring in 8-byte words, so 28, 29 and 32 bytes all count as 4 words. The two_party_escrow submissions compile the buyer, seller and script hashes in, so correcting the lengths means rebuilding them. A builder-side fix: a positive placeholder fee, 28-byte placeholders, an optional address on add_input_utxo, and a BuildError when the SpendingScript reference is not among the inputs.
- Lingua principale
- Untyped Plutus Core
- Stelle
- 12
- Fork
- 10
- Merge medio
- 2g 5h
- PR unite (30g)
- 9
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/UPLC-CAPE
-
UPLC-CAPE: Network profiles measure and report submissions per networkForse già presa @Unisay l’ha presa 9 giorni fa. ApertaUPLC-CAPE
IntersectMBO/UPLC-CAPE#281 · 1 assegnatario ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
IntersectMBO/UPLC-CAPE#279 ·
-
UPLC-CAPE: ScriptContextBuilder: build TxInfo in the ledger's orderForse di nuovo libera @Unisay l’ha presa 30 giorni fa e non c’è nessuna pull request aperta. ApertaUPLC-CAPE
IntersectMBO/UPLC-CAPE#271 · 1 assegnatario ·
-
Add a programmable-tokens (CIP-113) benchmark scenarioForse di nuovo libera @Unisay l’ha presa 152 giorni fa e non c’è nessuna pull request aperta. ApertaUPLC-CAPE
IntersectMBO/UPLC-CAPE#228 · 1 assegnatario ·
-
Add synthetic benchmark scenarios for common Value operationsForse di nuovo libera @Unisay l’ha presa 152 giorni fa e non c’è nessuna pull request aperta. ApertaUPLC-CAPE
IntersectMBO/UPLC-CAPE#227 · 1 assegnatario ·