gRPC: Dijkstra era support gaps in UTxO RPC
I maintainer di solito rispondono entro 2 giorni
@carbolymer ci sta già lavorando.
Dal 23/7/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
This is a work-in-progress tracking issue for Dijkstra era support gaps in cardano-rpc and the UTxO RPC integration.
It will be extended with new findings as Dijkstra support work continues.
Native guard scripts (CIP-112)
The utxorpc spec's NativeScript message has no variant for Dijkstra's RequireGuard constructor. utxorpc/spec#215 adds script_require_guard to the v1 spec. cardano-rpc compiles against v1beta, so it cannot use the new variant until it moves to v1.
Guard-bearing native scripts are encoded as empty messages
Since #1247, Dijkstra scripts no longer go through fromAllegraTimelock, so serving a guard-bearing native script no longer crashes. Instead, cardano-rpc encodes RequireGuard as an empty NativeScript, both for witness and auxiliary scripts and for reference scripts in outputs, which silently drops the guard. This stays until cardano-rpc can use the v1 variant.
RedeemerPurpose enum has no guarding value
The v1beta RedeemerPurpose enum has no value for Dijkstra's guarding purpose, so cardano-rpc maps GuardingScript to REDEEMER_PURPOSE_UNSPECIFIED. utxorpc/spec#215 adds REDEEMER_PURPOSE_GUARDING to v1.
Leios support (CIP-164)
utxorpc/spec#215 merged on 2026-11-17. It adds the Leios header and body fields to v1 and specifies that a certifying ranking block (CertRB) exposes the transactions of the endorser block it certifies in body.tx. Merging the spec does not complete cardano-rpc's migration to v1.
Leios #1106 tracks the client API work. Design PR #1154 proposes the remaining UTxO RPC behavior and implementation tasks; it is still open and marked DO NOT MERGE. Treat its unresolved decisions as proposals.
Implementation and verification
Status checked on 2026-11-20:
- Review and integrate #1418, which adds helpers for finding the preceding block's EB announcement and decoding the block returned by consensus.
- Review and integrate #1421, which uses those helpers to fill certified EB transactions in
FetchBlockandFollowTiprollback (undo) responses. Both PRs targetleios-prototype; verify the changes also reach the intended release branch before treating this as shipped. - Fill certified EB transactions in the ChainDB follower used by
FollowTipapply responses andWaitForTx. #1421 explicitly leavesFollowTipapply for a follow-up PR. This work can proceed onv1beta, separately from thev1migration. - Verify that
FollowTipapply and undo responses contain the same certified EB transactions, and thatWaitForTxreports an EB transaction as confirmed when its CertRB is adopted, as proposed in the linked Leios design PR. - Verify that a CertRB is never returned with silently omitted EB transactions when those transactions cannot be loaded; return an explicit failure. #1421 introduces
CertRbWithoutEbTxsfor the block-fetch path; cover the follower path too. - Add end-to-end tests with a running Leios node for block fetching, streaming, confirmation and rollback. #1418's helper tests use
LeiosTestBlock, and #1421 does not testfetchBlockend to end against a running node.
Decisions to settle in the specification
- Settle
native_bytesfor a CertRB and add a conformance test. The linked Leios design PR proposes the original on-chain bytes, while decodedbody.txincludes certified EB transactions; #1421 implements that choice. This differs from the N2C form and requires a documented exception to any rule that decoded fields exactly matchnative_bytes. - Finalize the proposed rule that EB transactions belong to their CertRB for query
block_ref, watch apply/undo events and confirmation timing. Track the specification decision in Leios #1154 and #1106, and verify the applicable cardano-rpc endpoints against it.
Announced but uncertified EBs remain outside the initial scope proposed in the linked Leios design PR.
Moving cardano-rpc to utxorpc v1
utxorpc/spec#215 adds the Dijkstra fields to v1 only, while cardano-rpc compiles against v1beta. To use them, cardano-rpc needs to move to v1 and add conversions for the following:
- the
Tx/TxCommonsplit and sub transactions; - guards and required top-level guards;
- direct deposits and account balance intervals;
- pool BLS keys;
- the new protocol parameters and
PParamsUpdate; - the Leios header and body fields;
ReadTxlookups by sub transaction hash.
#910 (switch to the utxorpc package) is related.
Related
- #1246 tracks pre-existing wire-format issues discovered during the FetchBlock work.
- #1264 tracks the remaining old-API conversions, including the reference-script path.
- input-output-hk/ouroboros-leios#1106 tracks the Leios client API changes (N2C and UTxO RPC).
- https://github.com/utxorpc/spec/pull/215
- https://github.com/utxorpc/spec/issues/218
- Lingua principale
- Haskell
- Stelle
- 41
- Fork
- 33
- Merge medio
- 3g 3h
- PR unite (30g)
- 15
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-api
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
IntersectMBO/cardano-api#1434 ·
I maintainer di solito rispondono entro 2 giorni
-
`Prelude.maximum: empty list` crash in fee estimation for empty `RequireAnyOf` (`{"type": "any", "scripts": []}`) scriptsForse già presa @Jimbo4350 l’ha presa 8 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
IntersectMBO/cardano-api#1424 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 53/100
IntersectMBO/cardano-api#1431 ·
I maintainer di solito rispondono entro 2 giorni
-
type: enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
IntersectMBO/cardano-api#1423 ·
I maintainer di solito rispondono entro 2 giorni
-
Add a dedicated transaction viewing type to the experimental APIForse già presa @palas l’ha presa 21 giorni fa. Apertatype: enhancement
IntersectMBO/cardano-api#1416 · 1 assegnatario ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di IntersectMBO/cardano-api
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
haskell/bytestring#730 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
seal-harness/seal-harness#399 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
fmidue/codeworld-tasks#124 ·
-
allow haskell-src-exts-1.24Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
reflex-frp/reflex#563 ·