Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ouroboros-network and cardano-ledger dependencies #4392

Closed
wants to merge 3 commits into from

Conversation

coot
Copy link
Contributor

@coot coot commented Aug 26, 2022

The PR is supposed to update cardano-node with a newer version of ouroboros-network (and cardano-ledger).

The networking team decided to not release P2P on NodeToNodeV_10 and to avoid broken cardano-node (which would happen if Conway was released with incompatible version of NodeToNodeV_10).

This PR subsumes #4359.

@coot
Copy link
Contributor Author

coot commented Sep 27, 2022

ouroboros-network was already updated passed IntersectMBO/ouroboros-network@9128bfcc0

@coot coot closed this Sep 27, 2022
@coot coot reopened this Sep 27, 2022
@Soupstraw Soupstraw force-pushed the coot/update-dependencies-26082022 branch 7 times, most recently from 46fa27d to 8962180 Compare September 27, 2022 13:47
Signed-off-by: Joosep Jääger <joosep.jaager@iohk.io>
@Soupstraw Soupstraw force-pushed the coot/update-dependencies-26082022 branch from 8962180 to 4a12a05 Compare September 27, 2022 13:49
Copy link
Contributor

@Jimbo4350 Jimbo4350 left a comment

Choose a reason for hiding this comment

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

Yet again due to a lack of communication we have duplicated work: #4381

Copy link
Contributor

@Jimbo4350 Jimbo4350 left a comment

Choose a reason for hiding this comment

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

I haven't reviewed the PR put please fix all of the imports to follow the style of the library and undo any style changes

@@ -52,6 +45,12 @@ import Ouroboros.Consensus.Ledger.Basics (AuxLedgerEvent)
import Ouroboros.Consensus.Shelley.Ledger (ShelleyBlock,
ShelleyLedgerEvent (ShelleyLedgerEventTICK))
import Ouroboros.Consensus.TypeFamilyWrappers
import Cardano.Ledger.Shelley.Rules.Tick (ShelleyTickEvent(..))
Copy link
Contributor

Choose a reason for hiding this comment

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

These imports do not follow the style convention

@@ -167,6 +167,8 @@ import qualified Ouroboros.Network.Block
import qualified Ouroboros.Network.Protocol.ChainSync.Client as CS
import qualified Ouroboros.Network.Protocol.ChainSync.ClientPipelined as CSP
import Ouroboros.Network.Protocol.ChainSync.PipelineDecision
import qualified Cardano.Ledger.Shelley.API as ShelleyAPI
Copy link
Contributor

Choose a reason for hiding this comment

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

These imports do not follow the style convention

import qualified Cardano.Binary as CBOR
import qualified Cardano.Crypto.Hash.Class as Crypto
import qualified Cardano.Ledger.Alonzo.Data as Alonzo
import qualified Cardano.Ledger.Alonzo.Scripts as Alonzo
import Cardano.Ledger.Babbage (BabbageTxOut)
Copy link
Contributor

Choose a reason for hiding this comment

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

These imports do not follow the style convention

, ToJSON (Core.PParamsDelta era)
) => ToJSON (Shelley.EpochState era) where
instance
forall era.
Copy link
Contributor

Choose a reason for hiding this comment

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

Why have you modified the style here?

toJSON = object . toEpochStatePairs
toEncoding = Aeson.pairs . mconcat . toEpochStatePairs

toEpochStatePairs ::
( Consensus.ShelleyBasedEra era
, ToJSON (Core.TxOut era)
, ToJSON (Core.PParamsDelta era)
Copy link
Contributor

Choose a reason for hiding this comment

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

Why have you modified the style here?

toEpochStatePairs eState =
let !esAccountState = Shelley.esAccountState eState
!esSnapshots = Shelley.esSnapshots eState
!esLState = Shelley.esLState eState
!esPrevPp = Shelley.esPrevPp eState
!esPp = Shelley.esPp eState
!esNonMyopic = Shelley.esNonMyopic eState
in [ "esAccountState" .= esAccountState
, "esSnapshots" .= esSnapshots
Copy link
Contributor

Choose a reason for hiding this comment

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

Why have you modified the style here?

]


instance ( Consensus.ShelleyBasedEra era
, ToJSON (Core.TxOut era)
Copy link
Contributor

Choose a reason for hiding this comment

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

Why have you modified the style here?

toJSON = object . toLedgerStatePairs
toEncoding = Aeson.pairs . mconcat . toLedgerStatePairs

toLedgerStatePairs ::
( Consensus.ShelleyBasedEra era
, ToJSON (Core.TxOut era)
Copy link
Contributor

Choose a reason for hiding this comment

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

Why have you modified the style here?

@Soupstraw
Copy link
Contributor

closed in favor of #4608

@Soupstraw Soupstraw closed this Nov 3, 2022
@angerman angerman mentioned this pull request Nov 25, 2022
iohk-bors bot added a commit that referenced this pull request Dec 22, 2022
4250: Optimise query leadership schedule command r=newhoggy a=newhoggy

Depends on #4392

Resolves #4325

Co-authored-by: John Ky <john.ky@iohk.io>
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.

3 participants