Skip to content

Commit 9c83d3a

Browse files
authored
Merge pull request #280 from blinklabs-io/fix/protocol-params-query
fix: adjust protocol-params query result for 8.0.0
2 parents 5d44968 + d16052c commit 9c83d3a

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)