Co-authored-by: Maksym Hontar <99190705+max-hontar@users.noreply.github.com> Co-authored-by: Julien Robert <julien@rbrt.fr>
This commit is contained in:
parent
6ec0e519e0
commit
e966cf9463
|
@ -37,6 +37,10 @@ Ref: https://keepachangelog.com/en/1.0.0/
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* [#15243](https://github.com/cosmos/cosmos-sdk/pull/15243) `LatestBlockResponse` & `BlockByHeightResponse` types' field `sdk_block` was incorrectly cast `proposer_address` bytes to validator operator address, now to consensus address
|
||||||
|
|
||||||
## [v0.47.0-rc3](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.47.0-rc3) - 2023-03-01
|
## [v0.47.0-rc3](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.47.0-rc3) - 2023-03-01
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
|
|
|
@ -21,7 +21,7 @@ func convertHeader(h tmprototypes.Header) Header {
|
||||||
EvidenceHash: h.EvidenceHash,
|
EvidenceHash: h.EvidenceHash,
|
||||||
LastResultsHash: h.LastResultsHash,
|
LastResultsHash: h.LastResultsHash,
|
||||||
LastCommitHash: h.LastCommitHash,
|
LastCommitHash: h.LastCommitHash,
|
||||||
ProposerAddress: sdk.ValAddress(h.ProposerAddress).String(),
|
ProposerAddress: sdk.ConsAddress(h.ProposerAddress).String(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -91,8 +91,8 @@ func (s *E2ETestSuite) TestQueryLatestBlock() {
|
||||||
s.Require().NoError(err)
|
s.Require().NoError(err)
|
||||||
var blockInfoRes tmservice.GetLatestBlockResponse
|
var blockInfoRes tmservice.GetLatestBlockResponse
|
||||||
s.Require().NoError(val.ClientCtx.Codec.UnmarshalJSON(restRes, &blockInfoRes))
|
s.Require().NoError(val.ClientCtx.Codec.UnmarshalJSON(restRes, &blockInfoRes))
|
||||||
s.Require().Equal(types.ValAddress(blockInfoRes.Block.Header.ProposerAddress).String(), blockInfoRes.SdkBlock.Header.ProposerAddress)
|
s.Require().Equal(types.ConsAddress(blockInfoRes.Block.Header.ProposerAddress).String(), blockInfoRes.SdkBlock.Header.ProposerAddress)
|
||||||
s.Require().Contains(blockInfoRes.SdkBlock.Header.ProposerAddress, "cosmosvaloper")
|
s.Require().Contains(blockInfoRes.SdkBlock.Header.ProposerAddress, "cosmosvalcons")
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *E2ETestSuite) TestQueryBlockByHeight() {
|
func (s *E2ETestSuite) TestQueryBlockByHeight() {
|
||||||
|
@ -104,7 +104,7 @@ func (s *E2ETestSuite) TestQueryBlockByHeight() {
|
||||||
s.Require().NoError(err)
|
s.Require().NoError(err)
|
||||||
var blockInfoRes tmservice.GetBlockByHeightResponse
|
var blockInfoRes tmservice.GetBlockByHeightResponse
|
||||||
s.Require().NoError(val.ClientCtx.Codec.UnmarshalJSON(restRes, &blockInfoRes))
|
s.Require().NoError(val.ClientCtx.Codec.UnmarshalJSON(restRes, &blockInfoRes))
|
||||||
s.Require().Contains(blockInfoRes.SdkBlock.Header.ProposerAddress, "cosmosvaloper")
|
s.Require().Contains(blockInfoRes.SdkBlock.Header.ProposerAddress, "cosmosvalcons")
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *E2ETestSuite) TestQueryLatestValidatorSet() {
|
func (s *E2ETestSuite) TestQueryLatestValidatorSet() {
|
||||||
|
|
Loading…
Reference in New Issue