diff --git a/CHANGELOG.md b/CHANGELOG.md index 274b45e0..4a3349b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -43,7 +43,8 @@ Ref: https://keepachangelog.com/en/1.0.0/ * Fixed issue with Proto deserialization incorrectly matching `cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal` as `cosmos.upgrade.v1beta1.SoftwareUpgradeProposal`, ensuring accurate type URL handling. [#524](https://github.com/provenance-io/explorer-service/pull/524) * Update osmosis pricing query with new required field `coinMinimalDenom` [#526](https://github.com/provenance-io/explorer-service/pull/526) -* Fix group save tx processing [#526](https://github.com/provenance-io/explorer-service/pull/528), [#526](https://github.com/provenance-io/explorer-service/pull/529) +* Fix group save tx processing [#526](https://github.com/provenance-io/explorer-service/issues/528), [#526](https://github.com/provenance-io/explorer-service/issues/529) +* Fix validator proposer priority number type [#530](https://github.com/provenance-io/explorer-service/issues/530) ## [v5.10.0](https://github.com/provenance-io/explorer-service/releases/tag/v5.10.0) - 2024-06-11 ### Release Name: Fridtjof Nansen diff --git a/api-model/src/main/kotlin/io/provenance/explorer/model/ValidatorModels.kt b/api-model/src/main/kotlin/io/provenance/explorer/model/ValidatorModels.kt index 40d79fb6..76ce00b2 100644 --- a/api-model/src/main/kotlin/io/provenance/explorer/model/ValidatorModels.kt +++ b/api-model/src/main/kotlin/io/provenance/explorer/model/ValidatorModels.kt @@ -10,7 +10,7 @@ data class ValidatorSummary( val moniker: String, val addressId: String, val consensusAddress: String, - val proposerPriority: Int?, + val proposerPriority: Long?, val votingPower: CountTotal?, val commission: String, val bondedTokens: CountStrTotal, @@ -70,7 +70,7 @@ data class ValidatorAtHeight( val moniker: String, val addressId: String, val consensusAddress: String, - val proposerPriority: Int?, + val proposerPriority: Long?, val votingPower: CountTotal?, val imgUrl: String?, val isProposer: Boolean = false, diff --git a/service/src/main/kotlin/io/provenance/explorer/service/ValidatorService.kt b/service/src/main/kotlin/io/provenance/explorer/service/ValidatorService.kt index cc284f18..61c3f3b8 100644 --- a/service/src/main/kotlin/io/provenance/explorer/service/ValidatorService.kt +++ b/service/src/main/kotlin/io/provenance/explorer/service/ValidatorService.kt @@ -334,7 +334,7 @@ class ValidatorService( moniker = stakingVal.json.description.moniker, addressId = stakingVal.operatorAddress, consensusAddress = stakingVal.consensusAddr, - proposerPriority = validator?.proposerPriority?.toInt(), + proposerPriority = validator?.proposerPriority, votingPower = if (validator != null) { CountTotal( validator.votingPower.toBigInteger(),