Skip to content

Conversation

@jasagredo
Copy link
Contributor

Description

The PR wires in a new ledger state query that was recently added but never got properly wired in.

This PR requires IntersectMBO/ouroboros-network#5222 due to the nice dependency on the network version there 😬.

Note that I do expect some help getting this merged. The repository is complex to build, and I kindly refuse to use Nix. So if anything goes wrong with CI, I would appreciate a little nudge from the maintainers to getting this through. It's been living on a fork of mine for a while, yet I can't properly make this available to end users in Ogmios without "official" support for it in the node.

Thanks.

@jasagredo
Copy link
Contributor Author

This PR is blocked because it requires an integration of ouroboros-network latest main into consensus.

src/ouroboros-consensus/Ouroboros/Consensus/Ledger/Query/Version.hs:31:3: error: [GHC-76037]
    Not in scope: data constructor ‘NodeToClientV_23’
    Suggested fix:
      Perhaps use one of these:
        ‘NodeToClientV_20’ (imported from Ouroboros.Network.NodeToClient.Version),
        ‘NodeToClientV_21’ (imported from Ouroboros.Network.NodeToClient.Version),
        ‘NodeToClientV_22’ (imported from Ouroboros.Network.NodeToClient.Version)
   |
31 |   NodeToClientV_23 -> QueryVersion3
   |   ^^^^^^^^^^^^^^^^

@jasagredo jasagredo self-assigned this Dec 4, 2025
@jasagredo jasagredo moved this to 🚫 Help needed in Consensus Team Backlog Dec 4, 2025
Base automatically changed from geo2a/revert-peras-4 to main December 4, 2025 21:50
@jasagredo jasagredo force-pushed the js/ktorz/GetDRepDelegations branch from 4728551 to f37288d Compare January 13, 2026 13:39
crocodile-dentist and others added 17 commits January 30, 2026 09:13
The new method leverages a corresponding method recently exposed by
ledger side to provide encoded transaction sizes to eg. diffusion layer.

- Integrate new tx submission protocol
- txWireSize: Byron txs overhead

We need to add 2 bytes overhead for `EncCBOR (AMempoolPayload
ByteString)`. See:
https://github.com/IntersectMBO/cardano-ledger/blob/cardano-ledger-byron-1.1.0.0/eras/byron/ledger/impl/src/Cardano/Chain/MempoolPayload.hs#L73-L81

- txWireSize: wrapCBORinCBOR overhead for Shelley txs
- Take into account the overhead of `wrapCBORinCBOR`.
- txWireSize: added overhead for HardFork txs
- Added HFC overhead.  This overestimates it, if the HFC is disabled.
- txWireSize: added tests
- Use txWireSize when computing tx-sizes for ouroboros-network

Co-Author: Armando Santos <[email protected]>
Co-Author: Marcin Szamotulski <[email protected]>
Co-Author: Marcin Wójtowicz <[email protected]>
[wip] bump network
@jasagredo jasagredo force-pushed the js/ktorz/GetDRepDelegations branch from f37288d to 1feaeba Compare January 30, 2026 10:37
@jasagredo jasagredo changed the base branch from main to geo2a/10.7-integration-network January 30, 2026 10:37
@jasagredo jasagredo moved this from 🚫 Help needed to 👀 In review in Consensus Team Backlog Jan 30, 2026
@jasagredo jasagredo force-pushed the js/ktorz/GetDRepDelegations branch from 1feaeba to 971adbd Compare January 30, 2026 13:53
@geo2a geo2a force-pushed the geo2a/10.7-integration-network branch 2 times, most recently from ce178b5 to ff3072d Compare January 30, 2026 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 👀 In review

Development

Successfully merging this pull request may close these issues.

6 participants