Skip to content

Commit 52c1f0a

Browse files
authored
fix: merge protocol minor/major Conway protocol params (#698)
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
1 parent 950a13a commit 52c1f0a

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

ledger/conway/conway.go

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,33 @@ func (b *ConwayTransactionBody) Donation() uint64 {
224224
}
225225

226226
type ConwayProtocolParameters struct {
227-
babbage.BabbageProtocolParameters
227+
cbor.StructAsArray
228+
MinFeeA uint
229+
MinFeeB uint
230+
MaxBlockBodySize uint
231+
MaxTxSize uint
232+
MaxBlockHeaderSize uint
233+
KeyDeposit uint
234+
PoolDeposit uint
235+
MaxEpoch uint
236+
NOpt uint
237+
A0 *cbor.Rat
238+
Rho *cbor.Rat
239+
Tau *cbor.Rat
240+
Protocol struct {
241+
cbor.StructAsArray
242+
Major uint
243+
Minor uint
244+
}
245+
MinPoolCost uint
246+
AdaPerUtxoByte uint
247+
CostModels map[uint][]int
248+
ExecutionUnitPrices []*cbor.Rat // [priceMemory priceSteps]
249+
MaxTxExecutionUnits []uint
250+
MaxBlockExecutionUnits []uint
251+
MaxValueSize uint
252+
CollateralPercentage uint
253+
MaxCollateralInputs uint
228254
PoolVotingThresholds PoolVotingThresholds
229255
DRepVotingThresholds DRepVotingThresholds
230256
MinCommitteeSize uint

0 commit comments

Comments
 (0)