Skip to content

Commit

Permalink
feat: update misbehaviour handling using IBC-Go 7 (#1401)
Browse files Browse the repository at this point in the history
* nit fix

* improve doc

* super picky nit

* fix!: drop nil votes in misbehaviour handling (#1404)

* update CHANGELOG for final release

* save

* update test to extract byzantine validators

* improve testing

* nits

* nits

* Update tests/integration/misbehaviour.go

Co-authored-by: insumity <[email protected]>

* Update testutil/crypto/evidence.go

Co-authored-by: insumity <[email protected]>

* update util func

* doc

* check misb client ID

* Update x/ccv/provider/keeper/misbehaviour.go

Co-authored-by: insumity <[email protected]>

* nits

---------

Co-authored-by: insumity <[email protected]>

* fix comments

* update changelog

* Update x/ccv/provider/keeper/misbehaviour.go

Co-authored-by: insumity <[email protected]>

* improve tests

* lint

* udpate traces

* silly bug

---------

Co-authored-by: insumity <[email protected]>
  • Loading branch information
sainoe and insumity authored Nov 15, 2023
1 parent a22030b commit 84955b9
Show file tree
Hide file tree
Showing 11 changed files with 131 additions and 869 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- Add the cryptographic verification of equivocation feature to the provider
(cf. ADR-005 & ADR-013). ([\#1340](https://github.com/cosmos/interchain-
security/pull/1340))
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- Add the cryptographic verification of equivocation feature to the provider
(cf. ADR-005 & ADR-013). ([\#1340](https://github.com/cosmos/interchain-
security/pull/1340))
39 changes: 13 additions & 26 deletions tests/e2e/tracehandler_testdata/consumer-double-sign.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@
"ConsumerChains": null,
"AssignedKeys": null,
"ProviderKeys": null,
"ConsumerChainQueueSizes": null,
"GlobalSlashQueueSize": null,
"ConsumerPendingPacketQueueSize": null,
"RegisteredConsumerRewardDenoms": null,
"ClientsFrozenHeights": null,
"Proposals": null
Expand Down Expand Up @@ -72,8 +71,7 @@
"ConsumerChains": null,
"AssignedKeys": null,
"ProviderKeys": null,
"ConsumerChainQueueSizes": null,
"GlobalSlashQueueSize": null,
"ConsumerPendingPacketQueueSize": null,
"RegisteredConsumerRewardDenoms": null,
"ClientsFrozenHeights": null,
"Proposals": {
Expand Down Expand Up @@ -117,8 +115,7 @@
"ProviderKeys": {
"carol": "cosmosvalcons1ezyrq65s3gshhx5585w6mpusq3xsj3ayzf4uv6"
},
"ConsumerChainQueueSizes": null,
"GlobalSlashQueueSize": null,
"ConsumerPendingPacketQueueSize": null,
"RegisteredConsumerRewardDenoms": null,
"ClientsFrozenHeights": null,
"Proposals": null
Expand Down Expand Up @@ -162,8 +159,7 @@
"ProviderKeys": {
"carol": "cosmosvalcons1ezyrq65s3gshhx5585w6mpusq3xsj3ayzf4uv6"
},
"ConsumerChainQueueSizes": null,
"GlobalSlashQueueSize": null,
"ConsumerPendingPacketQueueSize": null,
"RegisteredConsumerRewardDenoms": null,
"ClientsFrozenHeights": null,
"Proposals": null
Expand Down Expand Up @@ -199,8 +195,7 @@
"ConsumerChains": null,
"AssignedKeys": null,
"ProviderKeys": null,
"ConsumerChainQueueSizes": null,
"GlobalSlashQueueSize": null,
"ConsumerPendingPacketQueueSize": null,
"RegisteredConsumerRewardDenoms": null,
"ClientsFrozenHeights": null,
"Proposals": {
Expand Down Expand Up @@ -258,8 +253,7 @@
"ConsumerChains": null,
"AssignedKeys": null,
"ProviderKeys": null,
"ConsumerChainQueueSizes": null,
"GlobalSlashQueueSize": null,
"ConsumerPendingPacketQueueSize": null,
"RegisteredConsumerRewardDenoms": null,
"ClientsFrozenHeights": null,
"Proposals": null
Expand All @@ -277,8 +271,7 @@
"ConsumerChains": null,
"AssignedKeys": null,
"ProviderKeys": null,
"ConsumerChainQueueSizes": null,
"GlobalSlashQueueSize": null,
"ConsumerPendingPacketQueueSize": null,
"RegisteredConsumerRewardDenoms": null,
"ClientsFrozenHeights": null,
"Proposals": null
Expand Down Expand Up @@ -328,8 +321,7 @@
"ConsumerChains": null,
"AssignedKeys": null,
"ProviderKeys": null,
"ConsumerChainQueueSizes": null,
"GlobalSlashQueueSize": null,
"ConsumerPendingPacketQueueSize": null,
"RegisteredConsumerRewardDenoms": null,
"ClientsFrozenHeights": null,
"Proposals": null
Expand All @@ -351,8 +343,7 @@
"ConsumerChains": null,
"AssignedKeys": null,
"ProviderKeys": null,
"ConsumerChainQueueSizes": null,
"GlobalSlashQueueSize": null,
"ConsumerPendingPacketQueueSize": null,
"RegisteredConsumerRewardDenoms": null,
"ClientsFrozenHeights": null,
"Proposals": null
Expand All @@ -378,8 +369,7 @@
"ConsumerChains": null,
"AssignedKeys": null,
"ProviderKeys": null,
"ConsumerChainQueueSizes": null,
"GlobalSlashQueueSize": null,
"ConsumerPendingPacketQueueSize": null,
"RegisteredConsumerRewardDenoms": null,
"ClientsFrozenHeights": null,
"Proposals": null
Expand All @@ -401,8 +391,7 @@
"ConsumerChains": null,
"AssignedKeys": null,
"ProviderKeys": null,
"ConsumerChainQueueSizes": null,
"GlobalSlashQueueSize": null,
"ConsumerPendingPacketQueueSize": null,
"RegisteredConsumerRewardDenoms": null,
"ClientsFrozenHeights": null,
"Proposals": null
Expand Down Expand Up @@ -431,8 +420,7 @@
"ConsumerChains": null,
"AssignedKeys": null,
"ProviderKeys": null,
"ConsumerChainQueueSizes": null,
"GlobalSlashQueueSize": null,
"ConsumerPendingPacketQueueSize": null,
"RegisteredConsumerRewardDenoms": null,
"ClientsFrozenHeights": null,
"Proposals": null
Expand All @@ -454,8 +442,7 @@
"ConsumerChains": null,
"AssignedKeys": null,
"ProviderKeys": null,
"ConsumerChainQueueSizes": null,
"GlobalSlashQueueSize": null,
"ConsumerPendingPacketQueueSize": null,
"RegisteredConsumerRewardDenoms": null,
"ClientsFrozenHeights": null,
"Proposals": null
Expand Down
39 changes: 13 additions & 26 deletions tests/e2e/tracehandler_testdata/consumer-misbehaviour.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@
"ConsumerChains": null,
"AssignedKeys": null,
"ProviderKeys": null,
"ConsumerChainQueueSizes": null,
"GlobalSlashQueueSize": null,
"ConsumerPendingPacketQueueSize": null,
"RegisteredConsumerRewardDenoms": null,
"ClientsFrozenHeights": null,
"Proposals": null
Expand Down Expand Up @@ -66,8 +65,7 @@
"ConsumerChains": null,
"AssignedKeys": null,
"ProviderKeys": null,
"ConsumerChainQueueSizes": null,
"GlobalSlashQueueSize": null,
"ConsumerPendingPacketQueueSize": null,
"RegisteredConsumerRewardDenoms": null,
"ClientsFrozenHeights": null,
"Proposals": {
Expand Down Expand Up @@ -111,8 +109,7 @@
"ProviderKeys": {
"alice": "cosmosvalcons1qmq08eruchr5sf5s3rwz7djpr5a25f7xw4mceq"
},
"ConsumerChainQueueSizes": null,
"GlobalSlashQueueSize": null,
"ConsumerPendingPacketQueueSize": null,
"RegisteredConsumerRewardDenoms": null,
"ClientsFrozenHeights": null,
"Proposals": null
Expand Down Expand Up @@ -146,8 +143,7 @@
"ConsumerChains": null,
"AssignedKeys": null,
"ProviderKeys": null,
"ConsumerChainQueueSizes": null,
"GlobalSlashQueueSize": null,
"ConsumerPendingPacketQueueSize": null,
"RegisteredConsumerRewardDenoms": null,
"ClientsFrozenHeights": null,
"Proposals": {
Expand Down Expand Up @@ -193,8 +189,7 @@
"ConsumerChains": null,
"AssignedKeys": null,
"ProviderKeys": null,
"ConsumerChainQueueSizes": null,
"GlobalSlashQueueSize": null,
"ConsumerPendingPacketQueueSize": null,
"RegisteredConsumerRewardDenoms": null,
"ClientsFrozenHeights": null,
"Proposals": null
Expand All @@ -211,8 +206,7 @@
"ConsumerChains": null,
"AssignedKeys": null,
"ProviderKeys": null,
"ConsumerChainQueueSizes": null,
"GlobalSlashQueueSize": null,
"ConsumerPendingPacketQueueSize": null,
"RegisteredConsumerRewardDenoms": null,
"ClientsFrozenHeights": null,
"Proposals": null
Expand Down Expand Up @@ -263,8 +257,7 @@
"ConsumerChains": null,
"AssignedKeys": null,
"ProviderKeys": null,
"ConsumerChainQueueSizes": null,
"GlobalSlashQueueSize": null,
"ConsumerPendingPacketQueueSize": null,
"RegisteredConsumerRewardDenoms": null,
"ClientsFrozenHeights": null,
"Proposals": null
Expand All @@ -281,8 +274,7 @@
"ConsumerChains": null,
"AssignedKeys": null,
"ProviderKeys": null,
"ConsumerChainQueueSizes": null,
"GlobalSlashQueueSize": null,
"ConsumerPendingPacketQueueSize": null,
"RegisteredConsumerRewardDenoms": null,
"ClientsFrozenHeights": null,
"Proposals": null
Expand Down Expand Up @@ -310,8 +302,7 @@
"ConsumerChains": null,
"AssignedKeys": null,
"ProviderKeys": null,
"ConsumerChainQueueSizes": null,
"GlobalSlashQueueSize": null,
"ConsumerPendingPacketQueueSize": null,
"RegisteredConsumerRewardDenoms": null,
"ClientsFrozenHeights": null,
"Proposals": null
Expand Down Expand Up @@ -351,8 +342,7 @@
"ConsumerChains": null,
"AssignedKeys": null,
"ProviderKeys": null,
"ConsumerChainQueueSizes": null,
"GlobalSlashQueueSize": null,
"ConsumerPendingPacketQueueSize": null,
"RegisteredConsumerRewardDenoms": null,
"ClientsFrozenHeights": null,
"Proposals": null
Expand All @@ -372,8 +362,7 @@
"ConsumerChains": null,
"AssignedKeys": null,
"ProviderKeys": null,
"ConsumerChainQueueSizes": null,
"GlobalSlashQueueSize": null,
"ConsumerPendingPacketQueueSize": null,
"RegisteredConsumerRewardDenoms": null,
"ClientsFrozenHeights": null,
"Proposals": null
Expand Down Expand Up @@ -401,8 +390,7 @@
"ConsumerChains": null,
"AssignedKeys": null,
"ProviderKeys": null,
"ConsumerChainQueueSizes": null,
"GlobalSlashQueueSize": null,
"ConsumerPendingPacketQueueSize": null,
"RegisteredConsumerRewardDenoms": null,
"ClientsFrozenHeights": null,
"Proposals": null
Expand All @@ -422,8 +410,7 @@
"ConsumerChains": null,
"AssignedKeys": null,
"ProviderKeys": null,
"ConsumerChainQueueSizes": null,
"GlobalSlashQueueSize": null,
"ConsumerPendingPacketQueueSize": null,
"RegisteredConsumerRewardDenoms": null,
"ClientsFrozenHeights": {
"07-tendermint-0": {
Expand Down
3 changes: 0 additions & 3 deletions tests/e2e/tracehandler_testdata/democracy.json
Original file line number Diff line number Diff line change
Expand Up @@ -610,10 +610,7 @@
"ProviderKeys": null,
"ConsumerPendingPacketQueueSize": null,
"RegisteredConsumerRewardDenoms": null,
<<<<<<< HEAD
"ClientsFrozenHeights": null,
=======
>>>>>>> main
"Proposals": {
"1": {
"RawProposal": {
Expand Down
3 changes: 0 additions & 3 deletions tests/e2e/tracehandler_testdata/democracyRewardsSteps.json
Original file line number Diff line number Diff line change
Expand Up @@ -610,10 +610,7 @@
"ProviderKeys": null,
"ConsumerPendingPacketQueueSize": null,
"RegisteredConsumerRewardDenoms": null,
<<<<<<< HEAD
"ClientsFrozenHeights": null,
=======
>>>>>>> main
"Proposals": {
"1": {
"RawProposal": {
Expand Down
Loading

0 comments on commit 84955b9

Please sign in to comment.