-
Notifications
You must be signed in to change notification settings - Fork 721
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
Conversation
Fixes input-output-hk/ouroboros-network#3691
Co-author: John Ky (via fcb84da)
|
46fa27d
to
8962180
Compare
8962180
to
4a12a05
Compare
There was a problem hiding this 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
There was a problem hiding this 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(..)) |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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?
closed in favor of #4608 |
The PR is supposed to update
cardano-node
with a newer version ofouroboros-network
(andcardano-ledger
).The networking team decided to not release P2P on
NodeToNodeV_10
and to avoid brokencardano-node
(which would happen ifConway
was released with incompatible version ofNodeToNodeV_10
).This PR subsumes #4359.