Commit 3b808dd
committed
Migrate cardano-rpc submit handler to Ledger.txIdTx
Replace the deprecated getTxBody/getTxId chain in
Cardano.Rpc.Server.Internal.UtxoRpc.Submit with a direct ledger projection:
pattern-match the API Tx, then compute the TxId via Cardano.Ledger.Core.txIdTx
(which is bodyTxL composed with txIdTxBody) and lift back through
fromShelleyTxId.1 parent 67ad5f7 commit 3b808dd
2 files changed
Lines changed: 13 additions & 1 deletion
File tree
- .changes
- cardano-rpc/src/Cardano/Rpc/Server/Internal/UtxoRpc
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
61 | 63 | | |
62 | 64 | | |
63 | 65 | | |
64 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
65 | 69 | | |
66 | 70 | | |
67 | 71 | | |
| |||
0 commit comments