-
Notifications
You must be signed in to change notification settings - Fork 23
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
Bump CHaP to latest ledger, consensus, network in preparation for cardano-node 8.8 #407
Bump CHaP to latest ledger, consensus, network in preparation for cardano-node 8.8 #407
Conversation
361b1aa
to
7f246bb
Compare
a2ebff4
to
4fc8aae
Compare
89248cf
to
eaad676
Compare
3320fdd
to
ea0835d
Compare
b923148
to
7b4dabb
Compare
Propagate cardano-ledger's TransactionScriptFailure changes
Implement PlutusScriptBinary pattern
gov action lifetime from EpochNo to EpochInterval
3e8372f
to
215e587
Compare
@@ -599,7 +600,10 @@ toConsensusQueryShelleyBased sbe = \case | |||
Some (consensusQueryInEraInMode era Consensus.GetEpochNo) | |||
|
|||
QueryConstitution -> | |||
Some (consensusQueryInEraInMode era Consensus.GetConstitution) | |||
caseShelleyToBabbageOrConwayEraOnwards | |||
(const $ error "toConsensusQueryShelleyBased: QueryConstitution is only available in the Conway 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? This check feels redundant because it duplicates what's already here: https://github.com/IntersectMBO/cardano-api/blob/main/cardano-api/internal/Cardano/Api/Query/Expr.hs#L213
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.
So we now have to provide this constraint because in ouroboros-consensus
:
-- | Not supported in eras before Conway
GetConstitution
:: CG.ConwayEraGov era
=> BlockQuery (ShelleyBlock proto era) (Maybe (LC.Constitution 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.
But era :: CardanoEra era
, so this caseShelleyToBabbageOrConwayEraOnwards
is not required and just consensusQueryInEraInMode era
should work as well.
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.
Push a branch that compiles with the above ^
&& txscriptsA == txscriptsB | ||
&& redeemersA == redeemersB | ||
&& txmetadataA == txmetadataB | ||
&& scriptValidityA == scriptValidityB |
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 scriptValidity
and redeemers
equality does not make sense for previous eras?
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 were introduced in Alonzo. You can't construct those in pre-Alonzo eras. This conversation here is another example of why we need to nuke the pre-mainnet eras where transaction construction is concerned. We shouldn't be thinking about this.
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.
You can't construct those in pre-Alonzo eras.
Do you mean that in such case both fields will be equal to []
? If that's true, there shouldn't be anything wrong with still comparing them for earlier eras.
ledger in preparation for cardano-node 8.8
Add required constraints
'ResolvablePointers' GADT Replace 'RdmrPtr' with 'ScriptWitnessIndex' in 'ScriptErrorMissingScript'
- CommitteeTermLength: EpochNo -> EpochInterval - MaxBlockBodySize: Natural -> Word32 - MaxTxSize: Natural -> Word32 - MaxBlockHeaderSize: Natural -> Word16
…eId' Add Governance policy script hash to 'TreasuryWithdrawal' and 'UpdatePParams'
- Cardano.Api.Tx -> Cardano.Api.Tx.Sign - Cardano.Api.TxBody -> Cardano.Api.Tx.Body
ppEMaxl is now an EpochInterval
These encapsulate the possibility of having plutus script witnesses for votes and proposals Update collectTxBodyScriptWitnesses to collect script witneses for votes and proposals
cardano-cli intermediate format and fully rely on ledger CBOR serialization instances. See SerialiseAsCBOR (TxBody era) instance.
80cab27
to
9aae71c
Compare
…ne-datums-in-babbage #406 Enable use of inline datums in Babbage era transactions
Changelog
Context
Additional context for the PR goes here. If the PR fixes a particular issue please provide a link to the issue.
How to trust this PR
Highlight important bits of the PR that will make the review faster. If there are commands the reviewer can run to observe the new behavior, describe them.
Checklist