Skip to content

Update cardano-node dependencies#203

Open
SupernaviX wants to merge 2 commits into
CardanoSolutions:masterfrom
SupernaviX:sg/update-cardano-node
Open

Update cardano-node dependencies#203
SupernaviX wants to merge 2 commits into
CardanoSolutions:masterfrom
SupernaviX:sg/update-cardano-node

Conversation

@SupernaviX

Copy link
Copy Markdown

Update to cardano-node 11.0.1 and associated libraries.

Fixes #202 (Kupo starts up when run against a new node), but does not actually add Dijkstra support (that seems to be a significant breaking change)

type Point = Ouroboros.Point Block

instance ToJSON Point where
instance {-# OVERLAPPING #-} ToJSON Point where

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure whether or not this is safe; Point got a ToJSON encoding which is incompatible with this one, and I'm not sure where (if anywhere) that gets used in the libraries.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The instance is likely used only for tracing; to be double checked but this should be okay

Comment thread src/Kupo/Data/Hydra.hs
bytes <- decodeBase16' hexText

tx <- case decodeCborAnn @ConwayEra "PartialTransaction" decCBOR (fromStrict bytes) of
tx <- case decodeCborAnn @BabbageEra "PartialTransaction" (decCBOR @(Annotator (Ledger.Tx TopTx BabbageEra))) (fromStrict bytes) of

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not very confident about changing this to expect Babbage, but

  1. Typechecking failed when trying to use ConwayEra
  2. This function is using a lot of what look like babbage-specific helpers on tx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

kupo not compatible with cardano-node 11.0.1

2 participants