Skip to content

Commit

Permalink
fix: merge protocol minor/major Conway protocol params (#698)
Browse files Browse the repository at this point in the history
The protocol major/minor were historically separate fields due to a bug
in the upstream implementation, but it has been fixed for the Conway era
  • Loading branch information
agaffney authored Aug 29, 2024
1 parent 950a13a commit 52c1f0a
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion ledger/conway/conway.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,33 @@ func (b *ConwayTransactionBody) Donation() uint64 {
}

type ConwayProtocolParameters struct {
babbage.BabbageProtocolParameters
cbor.StructAsArray
MinFeeA uint
MinFeeB uint
MaxBlockBodySize uint
MaxTxSize uint
MaxBlockHeaderSize uint
KeyDeposit uint
PoolDeposit uint
MaxEpoch uint
NOpt uint
A0 *cbor.Rat
Rho *cbor.Rat
Tau *cbor.Rat
Protocol struct {
cbor.StructAsArray
Major uint
Minor uint
}
MinPoolCost uint
AdaPerUtxoByte uint
CostModels map[uint][]int
ExecutionUnitPrices []*cbor.Rat // [priceMemory priceSteps]
MaxTxExecutionUnits []uint
MaxBlockExecutionUnits []uint
MaxValueSize uint
CollateralPercentage uint
MaxCollateralInputs uint
PoolVotingThresholds PoolVotingThresholds
DRepVotingThresholds DRepVotingThresholds
MinCommitteeSize uint
Expand Down

0 comments on commit 52c1f0a

Please sign in to comment.