Skip to content

Commit d16052c

Browse files
committed
fix: adjust protocol-params query result for 8.0.0
Fixes #274 BREAKING CHANGES: The protocol-params query will no longer work against cardano-node <8.0.0 due to a backwards-incompatible change that upstream made without proper protocol versioning
1 parent 645052f commit d16052c

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

protocol/localstatequery/queries.go

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,16 +156,21 @@ type CurrentProtocolParamsResult struct {
156156
// This field no longer exists in Babbage, but we're keeping this here for reference
157157
// unless we need to support querying a node still on an older era
158158
//DecentralizationParam []int
159-
ProtocolVersionMajor int
160-
ProtocolVersionMinor int
159+
ProtocolVersion struct {
160+
// Tells the CBOR decoder to convert to/from a struct and a CBOR array
161+
_ struct{} `cbor:",toarray"`
162+
Major int
163+
Minor int
164+
}
161165
MinPoolCost int
162-
Unknown interface{}
166+
MinUtxoValue int
163167
CostModels interface{}
164168
ExecutionUnitPrices interface{} // [priceMemory priceSteps] both elements are fractions
165169
MaxTxExecutionUnits []uint
166170
MaxBlockExecutionUnits []uint
167171
MaxValueSize int
168172
CollateralPercentage int
173+
MaxCollateralInputs int
169174
}
170175

171176
// TODO

0 commit comments

Comments
 (0)