Skip to content

Commit

Permalink
Merge branch 'release/v2.1.x-provider-lsm' into feat/ics-misbehaviour…
Browse files Browse the repository at this point in the history
…-handling-sdk-45
  • Loading branch information
sainoe committed Oct 13, 2023
2 parents 6a355fe + 60c31aa commit 6201f3b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
9 changes: 2 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,12 @@
## [Unreleased]

Add an entry to the unreleased section whenever merging a PR to main that is not targeted at a specific release. These entries will eventually be included in a release.
### Cryptographic verification of equivocation
* New feature enabling the provider chain to verify equivocation evidence on its own instead of trusting consumer chains, see [EPIC](https://github.com/cosmos/interchain-security/issues/732).

## v2.1.0-lsm-provider

* (feature!) [#1280](https://github.com/cosmos/interchain-security/pull/1280) provider proposal for changing reward denoms
* (feature!) [#826](https://github.com/cosmos/interchain-security/pull/826) add new endpoint to provider to handle consumer light client attacks
* (feature!) [#1227](https://github.com/cosmos/interchain-security/pull/1227) add new endpoint to provider to handle consumer double signing attacks


### Cryptographic verification of equivocation
* New feature enabling the provider chain to verify equivocation evidence on its own instead of trusting consumer chains, see [EPIC](https://github.com/cosmos/interchain-security/issues/732).


## v2.0.0-lsm

Expand Down
8 changes: 8 additions & 0 deletions x/ccv/provider/proposal_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ func TestProviderProposalHandler(t *testing.T) {
blockTime: hourFromNow,
expValidChangeRewardDenom: true,
},
{
name: "valid change reward denoms proposal",
content: providertypes.NewChangeRewardDenomsProposal(
"title", "description", []string{"denom1"}, []string{"denom2"}),
blockTime: hourFromNow,
expValidChangeRewardDenom: true,
},
{
name: "nil proposal",
content: nil,
Expand Down Expand Up @@ -104,6 +111,7 @@ func TestProviderProposalHandler(t *testing.T) {
if tc.expValidConsumerAddition || tc.expValidConsumerRemoval ||
tc.expValidChangeRewardDenom {
require.NoError(t, err)
require.Error(t, err)
} else {
require.Error(t, err)
}
Expand Down
4 changes: 4 additions & 0 deletions x/ccv/provider/types/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ func RegisterInterfaces(registry codectypes.InterfaceRegistry) {
(*sdk.Msg)(nil),
&MsgSubmitConsumerDoubleVoting{},
)
registry.RegisterImplementations(
(*govtypes.Content)(nil),
&ChangeRewardDenomsProposal{},
)

msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc)
}
Expand Down

0 comments on commit 6201f3b

Please sign in to comment.