Skip to content

Commit

Permalink
Fix validator proposer priority number type (#533)
Browse files Browse the repository at this point in the history
* convert int to biginteger for proposer priority

* change type to long to match the grpc type

* add change log entry, fix links to other change long entry

* remove unused import
  • Loading branch information
nullpointer0x00 authored Aug 20, 2024
1 parent 240ff77 commit 8028c92
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 8028c92

Please sign in to comment.