From 73f807893607817b334fa5095388fbfce7cdd398 Mon Sep 17 00:00:00 2001 From: Simon Noetzlin Date: Fri, 10 Mar 2023 15:25:16 +0100 Subject: [PATCH 01/33] define msg to submit misbehaviour to provider implement msg handling logic e2e test msg handling logic --- go.mod | 10 +- go.sum | 13 +- .../ccv/provider/v1/tx.proto | 11 +- tests/e2e/misbehaviour.go | 396 ++++++++++++++++++ testutil/integration/debug_test.go | 8 + testutil/keeper/mocks.go | 28 +- x/ccv/provider/keeper/misbehaviour.go | 52 +++ x/ccv/provider/types/tx.pb.go | 241 +++++++++-- x/ccv/types/expected_keepers.go | 2 + 9 files changed, 715 insertions(+), 46 deletions(-) create mode 100644 tests/e2e/misbehaviour.go create mode 100644 x/ccv/provider/keeper/misbehaviour.go diff --git a/go.mod b/go.mod index 58b8eaa667..2ac75fe25b 100644 --- a/go.mod +++ b/go.mod @@ -31,7 +31,10 @@ require ( gopkg.in/yaml.v2 v2.4.0 ) -require cosmossdk.io/errors v1.0.0-beta.7 +require ( + cosmossdk.io/errors v1.0.0-beta.7 + github.com/cosmos/interchain-security v1.2.1 +) require ( cosmossdk.io/api v0.2.6 // indirect @@ -85,7 +88,6 @@ require ( github.com/golang/glog v1.0.0 // indirect github.com/golang/snappy v0.0.4 // indirect github.com/google/btree v1.1.2 // indirect - github.com/google/gofuzz v1.2.0 // indirect github.com/google/orderedcode v0.0.1 // indirect github.com/gorilla/handlers v1.5.1 // indirect github.com/gorilla/websocket v1.5.0 // indirect @@ -94,7 +96,6 @@ require ( github.com/gtank/merlin v0.1.1 // indirect github.com/gtank/ristretto255 v0.1.2 // indirect github.com/hashicorp/go-immutable-radix v1.3.1 // indirect - github.com/hashicorp/go-uuid v1.0.2 // indirect github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d // indirect github.com/hashicorp/hcl v1.0.0 // indirect github.com/hdevalence/ed25519consensus v0.0.0-20220222234857-c00d1f31bab3 // indirect @@ -115,8 +116,7 @@ require ( github.com/minio/highwayhash v1.0.2 // indirect github.com/mitchellh/mapstructure v1.5.0 // indirect github.com/mtibben/percent v0.2.1 // indirect - github.com/onsi/ginkgo v1.16.4 // indirect - github.com/onsi/gomega v1.20.0 // indirect + github.com/nxadm/tail v1.4.8 // indirect github.com/pelletier/go-toml v1.9.5 // indirect github.com/pelletier/go-toml/v2 v2.0.5 // indirect github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5 // indirect diff --git a/go.sum b/go.sum index ed38bf1bab..6e8b054b07 100644 --- a/go.sum +++ b/go.sum @@ -242,6 +242,8 @@ github.com/cosmos/iavl v0.19.5 h1:rGA3hOrgNxgRM5wYcSCxgQBap7fW82WZgY78V9po/iY= github.com/cosmos/iavl v0.19.5/go.mod h1:X9PKD3J0iFxdmgNLa7b2LYWdsGd90ToV5cAONApkEPw= github.com/cosmos/ibc-go/v4 v4.4.2 h1:PG4Yy0/bw6Hvmha3RZbc53KYzaCwuB07Ot4GLyzcBvo= github.com/cosmos/ibc-go/v4 v4.4.2/go.mod h1:j/kD2JCIaV5ozvJvaEkWhLxM2zva7/KTM++EtKFYcB8= +github.com/cosmos/interchain-security v1.2.1 h1:8IawF74ep/eHRvY637Z1siw2gTBKPp4dU2khrL1P1U0= +github.com/cosmos/interchain-security v1.2.1/go.mod h1:yiJ9NBWvCW7M04BNDL5mWGEK1gsfK1w1IzKG49jnZm0= github.com/cosmos/ledger-cosmos-go v0.12.2 h1:/XYaBlE2BJxtvpkHiBm97gFGSGmYGKunKyF3nNqAXZA= github.com/cosmos/ledger-cosmos-go v0.12.2/go.mod h1:ZcqYgnfNJ6lAXe4HPtWgarNEY+B74i+2/8MhZw4ziiI= github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE= @@ -381,13 +383,12 @@ github.com/go-sourcemap/sourcemap v2.1.3+incompatible/go.mod h1:F8jJfvm2KbVjc5Nq github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= github.com/go-sql-driver/mysql v1.4.1/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= -github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE= github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee h1:s+21KNqlpePfkah2I+gwHF8xmJWRjooY+5248k6m4A0= github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee/go.mod h1:L0fX3K22YWvt/FAX9NnzrNzcI4wNYi9Yku4O0LKYflo= github.com/gobwas/pool v0.2.0 h1:QEmUOlnSjWtnpRGHF3SauEiOsy82Cup83Vf2LcMlnc8= github.com/gobwas/pool v0.2.0/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6WezmKEw= -github.com/gobwas/ws v1.0.2 h1:CoAavW/wd/kulfZmSIBt6p24n4j7tHgNVCjsfHVNUbo= github.com/gobwas/ws v1.0.2/go.mod h1:szmBTxLgaFppYjEmNtny/v3w89xOydFnnZMcgRRu/EM= +github.com/gobwas/ws v1.1.0 h1:7RFti/xnNkMJnrK7D1yQ/iCIB5OrrY/54/H930kIbHA= github.com/goccy/go-json v0.9.11 h1:/pAaQDLHEoCq/5FFmSKBswWmK6H0e8g4159Kc/X/nqk= github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 h1:ZpnhV/YsD2/4cESfV5+Hoeu/iUR3ruzNvZ+yQfO03a0= github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2/go.mod h1:bBOAhwG1umN6/6ZUMtDFBMQR8jRg9O75tm9K00oMsK4= @@ -464,7 +465,6 @@ github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf/go.mod h1:HP5RmnzzSN github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/gofuzz v1.1.1-0.20200604201612-c04b05f3adfa/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0= -github.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= github.com/google/martian/v3 v3.1.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= @@ -537,7 +537,6 @@ github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdv github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-uuid v1.0.2 h1:cfejS+Tpcp13yd5nYHWDI6qVCny6wyX2Mt5SGur2IGE= -github.com/hashicorp/go-uuid v1.0.2/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go-version v1.6.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90= @@ -777,14 +776,12 @@ github.com/onsi/ginkgo v1.10.3/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+ github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk= github.com/onsi/ginkgo v1.13.0/go.mod h1:+REjRxOmWfHCjfv9TTWB1jD1Frx4XydAD3zm1lskyM0= github.com/onsi/ginkgo v1.14.0/go.mod h1:iSB4RoI2tjJc9BBv4NKIKWKya62Rps+oPG/Lv9klQyY= -github.com/onsi/ginkgo v1.16.4 h1:29JGrr5oVBm5ulCWet69zQkzWipVXIol6ygQUe/EzNc= -github.com/onsi/ginkgo v1.16.4/go.mod h1:dX+/inL/fNMqNlz0e9LfyB9TswhZpCVdJM/Z6Vvnwo0= +github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE= github.com/onsi/gomega v1.4.1/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA= github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= github.com/onsi/gomega v1.20.0 h1:8W0cWlwFkflGPLltQvLRB7ZVD5HuP6ng320w2IS245Q= -github.com/onsi/gomega v1.20.0/go.mod h1:DtrZpjmvpn2mPm4YWQa0/ALMDj9v4YxLgojwPeREyVo= github.com/op/go-logging v0.0.0-20160315200505-970db520ece7/go.mod h1:HzydrMdWErDVzsI23lYNej1Htcns9BCg93Dk0bBINWk= github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U= github.com/opencontainers/image-spec v1.1.0-rc2 h1:2zx/Stx4Wc5pIPDvIxHXvXtQFW/7XWJGmnM7r3wg034= @@ -1266,7 +1263,6 @@ golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210112080510-489259a85091/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210225134936-a50acf3fe073/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -1371,7 +1367,6 @@ golang.org/x/tools v0.0.0-20201022035929-9cf592e881e9/go.mod h1:emZCQorbCU4vsT4f golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20210108195828-e2f9c7f1fc8e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= diff --git a/proto/interchain_security/ccv/provider/v1/tx.proto b/proto/interchain_security/ccv/provider/v1/tx.proto index 705e155317..7578ff84cc 100644 --- a/proto/interchain_security/ccv/provider/v1/tx.proto +++ b/proto/interchain_security/ccv/provider/v1/tx.proto @@ -7,6 +7,7 @@ import "google/api/annotations.proto"; import "gogoproto/gogo.proto"; import "cosmos_proto/cosmos.proto"; import "google/protobuf/any.proto"; +import "ibc/lightclients/tendermint/v1/tendermint.proto"; // Msg defines the Msg service. service Msg { @@ -42,4 +43,12 @@ message MsgRegisterConsumerRewardDenom { } // MsgRegisterConsumerRewardDenomResponse defines the Msg/RegisterConsumerRewardDenom response type. -message MsgRegisterConsumerRewardDenomResponse {} \ No newline at end of file +message MsgRegisterConsumerRewardDenomResponse {} +// MsgSubmitConsumerMisbehaviour reports a consumer chain Misbehaviour +message MsgSubmitConsumerMisbehaviour { + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + // The Misbehaviour of the consumer chain wrapping + // two conflicting IBC headers + ibc.lightclients.tendermint.v1.Misbehaviour misbehaviour = 1; +} \ No newline at end of file diff --git a/tests/e2e/misbehaviour.go b/tests/e2e/misbehaviour.go new file mode 100644 index 0000000000..39e5db22f7 --- /dev/null +++ b/tests/e2e/misbehaviour.go @@ -0,0 +1,396 @@ +package e2e + +import ( + "time" + + ibcclientypes "github.com/cosmos/ibc-go/v4/modules/core/02-client/types" + commitmenttypes "github.com/cosmos/ibc-go/v4/modules/core/23-commitment/types" + ibctmtypes "github.com/cosmos/ibc-go/v4/modules/light-clients/07-tendermint/types" + ibctestingmock "github.com/cosmos/ibc-go/v4/testing/mock" + providertypes "github.com/cosmos/interchain-security/x/ccv/provider/types" + tmtypes "github.com/tendermint/tendermint/types" +) + +const ( + trustingPeriod time.Duration = time.Hour * 24 * 7 * 2 + ubdPeriod time.Duration = time.Hour * 24 * 7 * 3 + maxClockDrift time.Duration = time.Second * 10 +) + +// mostly based on TestCheckMisbehaviourAndUpdateState in ibc-go/modules/core/02-client/keeper/client_test.go +func (s *CCVTestSuite) TestCheckConsumerMisbehaviour() { + + s.SetupCCVChannel(s.path) + // required to have the consumer client revision height greater than 0 + s.SendEmptyVSCPacket() + + consumerConsState, _ := s.providerChain.GetConsensusState(s.path.EndpointA.ClientID, s.consumerChain.LastHeader.TrustedHeight) + + clientHeight := s.consumerChain.LastHeader.TrustedHeight + clientTMValset := tmtypes.NewValidatorSet(s.consumerChain.Vals.Validators) + clientSigners := s.consumerChain.Signers + + altPrivVal := ibctestingmock.NewPV() + altPubKey, err := altPrivVal.GetPubKey() + s.Require().NoError(err) + altVal := tmtypes.NewValidator(altPubKey, 4) + + altValset := tmtypes.NewValidatorSet([]*tmtypes.Validator{altVal}) + altSigners := make(map[string]tmtypes.PrivValidator, 1) + altSigners[altValset.Validators[0].Address.String()] = altPrivVal + + altTime := s.providerCtx().BlockTime().Add(time.Minute) + heightPlus5 := ibcclientypes.NewHeight(0, clientHeight.RevisionHeight+5) + + heightPlus3 := ibcclientypes.NewHeight(0, clientHeight.RevisionHeight+3) + + testCases := []struct { + name string + misbehaviour func() *ibctmtypes.Misbehaviour + malleate func() + expPass bool + }{ + { + "misbehaviour height is at same height as trusted height", + func() *ibctmtypes.Misbehaviour { + return &ibctmtypes.Misbehaviour{ + ClientId: s.path.EndpointA.ClientID, + Header1: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight), + clientHeight, + altTime, + clientTMValset, + clientTMValset, + clientTMValset, + clientSigners, + ), + Header2: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight), + clientHeight, + s.providerCtx().BlockTime(), + clientTMValset, + clientTMValset, + clientTMValset, + clientSigners, + ), + } + }, + func() {}, + false, + }, { + "invalid chain ID", + func() *ibctmtypes.Misbehaviour { + + mb := &ibctmtypes.Misbehaviour{ + ClientId: s.path.EndpointA.ClientID, + Header1: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight+1), + clientHeight, + altTime, + clientTMValset, + clientTMValset, + clientTMValset, + clientSigners, + ), + Header2: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight+1), + clientHeight, + altTime, + clientTMValset, + clientTMValset, + clientTMValset, + clientSigners, + ), + } + + mb.Header1.Header.ChainID = "wrongchainid" + return mb + + }, + func() {}, + false, + }, + { + "invalid client ID", + func() *ibctmtypes.Misbehaviour { + + mb := &ibctmtypes.Misbehaviour{ + ClientId: "wrongclientid", + Header1: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight+1), + clientHeight, + altTime, + clientTMValset, + clientTMValset, + clientTMValset, + clientSigners, + ), + Header2: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight+1), + clientHeight, + altTime, + clientTMValset, + clientTMValset, + clientTMValset, + clientSigners, + ), + } + + return mb + + }, + func() {}, + false, + }, { + "trusting period misbehavior should pass", + func() *ibctmtypes.Misbehaviour { + return &ibctmtypes.Misbehaviour{ + ClientId: s.path.EndpointA.ClientID, + Header1: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight+1), + clientHeight, + altTime, + clientTMValset, + clientTMValset, + clientTMValset, + clientSigners, + ), + Header2: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight+1), + clientHeight, + s.providerCtx().BlockTime(), + clientTMValset, + clientTMValset, + clientTMValset, + clientSigners, + ), + } + }, + func() {}, + true, + }, + { + "time misbehavior should pass", + func() *ibctmtypes.Misbehaviour { + return &ibctmtypes.Misbehaviour{ + ClientId: s.path.EndpointA.ClientID, + Header1: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight+5), + clientHeight, + s.providerCtx().BlockTime(), + clientTMValset, + clientTMValset, + clientTMValset, + clientSigners, + ), + Header2: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight+1), + clientHeight, + altTime, + clientTMValset, + clientTMValset, + clientTMValset, + clientSigners, + ), + } + }, + func() {}, + true, + }, + { + "both later height should pass", + func() *ibctmtypes.Misbehaviour { + return &ibctmtypes.Misbehaviour{ + ClientId: s.path.EndpointA.ClientID, + Header1: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(heightPlus5.RevisionHeight+1), + clientHeight, + s.providerCtx().BlockTime(), + clientTMValset, + clientTMValset, + clientTMValset, + clientSigners, + ), + Header2: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(heightPlus5.RevisionHeight+1), + heightPlus3, + altTime, + clientTMValset, + clientTMValset, + clientTMValset, + clientSigners, + ), + } + }, + func() { + + consumerConsState.(*ibctmtypes.ConsensusState).NextValidatorsHash = clientTMValset.Hash() + clientState := ibctmtypes.NewClientState(s.consumerChain.ChainID, ibctmtypes.DefaultTrustLevel, trustingPeriod, ubdPeriod, maxClockDrift, clientHeight, commitmenttypes.GetSDKSpecs(), []string{"upgrade", "upgradedIBCState"}, false, false) + + // store trusted consensus state for Header2 + intermediateConsState := &ibctmtypes.ConsensusState{ + Timestamp: altTime, + NextValidatorsHash: clientTMValset.Hash(), + } + + s.providerApp.GetIBCKeeper().ClientKeeper.SetClientConsensusState(s.providerCtx(), s.path.EndpointA.ClientID, heightPlus3, intermediateConsState) + + clientState.LatestHeight = heightPlus3 + s.providerApp.GetIBCKeeper().ClientKeeper.SetClientState(s.providerCtx(), s.path.EndpointA.ClientID, clientState) + }, + true, + }, + { + "trusted ConsensusState1 not found", + func() *ibctmtypes.Misbehaviour { + return &ibctmtypes.Misbehaviour{ + ClientId: s.path.EndpointA.ClientID, + Header1: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight), + heightPlus3, + altTime, + clientTMValset, + clientTMValset, + clientTMValset, + clientSigners, + ), + Header2: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight), + clientHeight, + s.providerCtx().BlockTime(), + clientTMValset, + clientTMValset, + clientTMValset, + clientSigners, + ), + } + }, + func() {}, + false, + }, + { + "trusted ConsensusState2 not found", + func() *ibctmtypes.Misbehaviour { + return &ibctmtypes.Misbehaviour{ + ClientId: s.path.EndpointA.ClientID, + Header1: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight), + clientHeight, + altTime, + clientTMValset, + clientTMValset, + clientTMValset, + clientSigners, + ), + Header2: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight), + heightPlus3, + s.providerCtx().BlockTime(), + clientTMValset, + clientTMValset, + clientTMValset, + clientSigners, + ), + } + }, + func() {}, + false, + }, + { + "client state not found", + func() *ibctmtypes.Misbehaviour { + return &ibctmtypes.Misbehaviour{} + }, + func() {}, + false, + }, { + "client already is not active - client is frozen", + func() *ibctmtypes.Misbehaviour { + return &ibctmtypes.Misbehaviour{} + }, + func() { + consumerConsState.(*ibctmtypes.ConsensusState).NextValidatorsHash = clientTMValset.Hash() + clientState := ibctmtypes.NewClientState(s.consumerChain.ChainID, ibctmtypes.DefaultTrustLevel, trustingPeriod, ubdPeriod, maxClockDrift, clientHeight, commitmenttypes.GetSDKSpecs(), []string{"upgrade", "upgradedIBCState"}, false, false) + + clientState.FrozenHeight = ibcclientypes.NewHeight(0, 1) + s.providerApp.GetIBCKeeper().ClientKeeper.SetClientState(s.providerCtx(), s.path.EndpointA.ClientID, clientState) + }, + false, + }, + { + "misbehaviour check failed", + func() *ibctmtypes.Misbehaviour { + return &ibctmtypes.Misbehaviour{ + ClientId: s.path.EndpointA.ClientID, + Header1: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight+1), + clientHeight, + s.providerCtx().BlockTime(), + clientTMValset, + clientTMValset, + clientTMValset, + clientSigners, + ), + Header2: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight+1), + clientHeight, + altTime, + altValset, + altValset, + clientTMValset, + altSigners, + ), + } + }, + func() {}, + false, + }, + } + + for i, tc := range testCases { + + s.Run(tc.name, func() { + // run each test against fresh client states + cCtx, _ := s.providerCtx().CacheContext() + + tc.malleate() + + err = s.providerApp.GetProviderKeeper().CheckConsumerMisbehaviour( + cCtx, + providertypes.MsgSubmitConsumerMisbehaviour{ + Misbehaviour: tc.misbehaviour(), + }, + ) + + // Misbehaviour passed + if tc.expPass { + s.NoError(err, "valid test case %s failed with error %s", tc.name, err) + clientState, found := s.providerApp.GetIBCKeeper().ClientKeeper.GetClientState(cCtx, tc.misbehaviour().ClientId) + s.Require().True(found, "valid test case %d failed: %s", i, tc.name) + s.Require().True(!clientState.(*ibctmtypes.ClientState).FrozenHeight.IsZero(), "valid test case %d failed: %s", i, tc.name) + + } else { + // Misbehaviour rejected + s.Require().Error(err, "invalid test case %d passed: %s", i, tc.name) + } + }) + } +} diff --git a/testutil/integration/debug_test.go b/testutil/integration/debug_test.go index b6456663a9..7dd2b78777 100644 --- a/testutil/integration/debug_test.go +++ b/testutil/integration/debug_test.go @@ -256,3 +256,11 @@ func TestQueueAndSendVSCMaturedPackets(t *testing.T) { func TestRecycleTransferChannel(t *testing.T) { runCCVTestByName(t, "TestRecycleTransferChannel") } + +// +// Misbehaviour test +// + +func TestCheckConsumerMisbehaviour(t *testing.T) { + runCCVTestByName(t, "TestCheckConsumerMisbehaviour") +} diff --git a/testutil/keeper/mocks.go b/testutil/keeper/mocks.go index 4f931d8152..8dc42835b1 100644 --- a/testutil/keeper/mocks.go +++ b/testutil/keeper/mocks.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: x/ccv/types/expected_keepers.go +// Source: ./x/ccv/types/expected_keepers.go // Package keeper is a generated GoMock package. package keeper @@ -678,6 +678,20 @@ func (m *MockClientKeeper) EXPECT() *MockClientKeeperMockRecorder { return m.recorder } +// ClientStore mocks base method. +func (m *MockClientKeeper) ClientStore(ctx types.Context, clientID string) types.KVStore { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ClientStore", ctx, clientID) + ret0, _ := ret[0].(types.KVStore) + return ret0 +} + +// ClientStore indicates an expected call of ClientStore. +func (mr *MockClientKeeperMockRecorder) ClientStore(ctx, clientID interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClientStore", reflect.TypeOf((*MockClientKeeper)(nil).ClientStore), ctx, clientID) +} + // CreateClient mocks base method. func (m *MockClientKeeper) CreateClient(ctx types.Context, clientState exported.ClientState, consensusState exported.ConsensusState) (string, error) { m.ctrl.T.Helper() @@ -775,6 +789,18 @@ func (mr *MockDistributionKeeperMockRecorder) FundCommunityPool(ctx, amount, sen return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FundCommunityPool", reflect.TypeOf((*MockDistributionKeeper)(nil).FundCommunityPool), ctx, amount, sender) } +// SetClientState mocks base method. +func (m *MockClientKeeper) SetClientState(ctx types.Context, clientID string, clientState exported.ClientState) { + m.ctrl.T.Helper() + m.ctrl.Call(m, "SetClientState", ctx, clientID, clientState) +} + +// SetClientState indicates an expected call of SetClientState. +func (mr *MockClientKeeperMockRecorder) SetClientState(ctx, clientID, clientState interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetClientState", reflect.TypeOf((*MockClientKeeper)(nil).SetClientState), ctx, clientID, clientState) +} + // MockConsumerHooks is a mock of ConsumerHooks interface. type MockConsumerHooks struct { ctrl *gomock.Controller diff --git a/x/ccv/provider/keeper/misbehaviour.go b/x/ccv/provider/keeper/misbehaviour.go new file mode 100644 index 0000000000..ec2609529e --- /dev/null +++ b/x/ccv/provider/keeper/misbehaviour.go @@ -0,0 +1,52 @@ +package keeper + +import ( + "fmt" + + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/ibc-go/v4/modules/core/exported" + "github.com/cosmos/interchain-security/x/ccv/provider/types" +) + +func (k Keeper) CheckConsumerMisbehaviour(ctx sdk.Context, msg types.MsgSubmitConsumerMisbehaviour) error { + + clientID := msg.Misbehaviour.GetClientID() + clientState, found := k.clientKeeper.GetClientState(ctx, clientID) + if !found { + return fmt.Errorf("types.ErrClientNotFound cannot check misbehaviour for client with ID %s", clientID) + } + + clientStore := k.clientKeeper.ClientStore(ctx, msg.Misbehaviour.GetClientID()) + + if status := clientState.Status(ctx, clientStore, k.cdc); status != exported.Active { + return fmt.Errorf("types.ErrClientNotActive cannot process misbehaviour for client (%s) with status %s", clientID, status) + } + + if err := msg.Misbehaviour.ValidateBasic(); err != nil { + return err + } + + clientState, err := clientState.CheckMisbehaviourAndUpdateState(ctx, k.cdc, clientStore, msg.Misbehaviour) + if err != nil { + return err + } + + k.clientKeeper.SetClientState(ctx, clientID, clientState) + k.Logger(ctx).Info("client frozen due to misbehaviour", "client-id", clientID) + + // TBD + // defer func() { + // telemetry.IncrCounterWithLabels( + // []string{"ibc", "client", "misbehaviour"}, + // 1, + // []metrics.Label{ + // telemetry.NewLabel(types.LabelClientType, misbehaviour.ClientType()), + // telemetry.NewLabel(types.LabelClientID, misbehaviour.GetClientID()), + // }, + // ) + // }() + + // EmitSubmitMisbehaviourEvent(ctx, clientID, clientState) + + return nil +} diff --git a/x/ccv/provider/types/tx.pb.go b/x/ccv/provider/types/tx.pb.go index 3603695359..71177c43d9 100644 --- a/x/ccv/provider/types/tx.pb.go +++ b/x/ccv/provider/types/tx.pb.go @@ -7,6 +7,7 @@ import ( context "context" fmt "fmt" _ "github.com/cosmos/cosmos-sdk/codec/types" + types "github.com/cosmos/ibc-go/v4/modules/light-clients/07-tendermint/types" _ "github.com/gogo/protobuf/gogoproto" grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" @@ -191,11 +192,52 @@ func (m *MsgRegisterConsumerRewardDenomResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgRegisterConsumerRewardDenomResponse proto.InternalMessageInfo +// MsgSubmitConsumerMisbehaviour reports a consumer chain Misbehaviour +type MsgSubmitConsumerMisbehaviour struct { + // The Misbehaviour of the consumer chain wrapping + // two conflicting IBC headers + Misbehaviour *types.Misbehaviour `protobuf:"bytes,1,opt,name=misbehaviour,proto3" json:"misbehaviour,omitempty"` +} + +func (m *MsgSubmitConsumerMisbehaviour) Reset() { *m = MsgSubmitConsumerMisbehaviour{} } +func (m *MsgSubmitConsumerMisbehaviour) String() string { return proto.CompactTextString(m) } +func (*MsgSubmitConsumerMisbehaviour) ProtoMessage() {} +func (*MsgSubmitConsumerMisbehaviour) Descriptor() ([]byte, []int) { + return fileDescriptor_43221a4391e9fbf4, []int{4} +} +func (m *MsgSubmitConsumerMisbehaviour) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSubmitConsumerMisbehaviour) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSubmitConsumerMisbehaviour.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgSubmitConsumerMisbehaviour) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSubmitConsumerMisbehaviour.Merge(m, src) +} +func (m *MsgSubmitConsumerMisbehaviour) XXX_Size() int { + return m.Size() +} +func (m *MsgSubmitConsumerMisbehaviour) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSubmitConsumerMisbehaviour.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSubmitConsumerMisbehaviour proto.InternalMessageInfo + func init() { proto.RegisterType((*MsgAssignConsumerKey)(nil), "interchain_security.ccv.provider.v1.MsgAssignConsumerKey") proto.RegisterType((*MsgAssignConsumerKeyResponse)(nil), "interchain_security.ccv.provider.v1.MsgAssignConsumerKeyResponse") proto.RegisterType((*MsgRegisterConsumerRewardDenom)(nil), "interchain_security.ccv.provider.v1.MsgRegisterConsumerRewardDenom") proto.RegisterType((*MsgRegisterConsumerRewardDenomResponse)(nil), "interchain_security.ccv.provider.v1.MsgRegisterConsumerRewardDenomResponse") + proto.RegisterType((*MsgSubmitConsumerMisbehaviour)(nil), "interchain_security.ccv.provider.v1.MsgSubmitConsumerMisbehaviour") } func init() { @@ -203,36 +245,41 @@ func init() { } var fileDescriptor_43221a4391e9fbf4 = []byte{ - // 453 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x93, 0x3d, 0x6b, 0x14, 0x41, - 0x18, 0xc7, 0x77, 0x13, 0xd4, 0x64, 0x8c, 0x82, 0xc3, 0x15, 0x97, 0xf3, 0xd8, 0xd3, 0x15, 0x24, - 0x85, 0xee, 0x90, 0x58, 0x88, 0x01, 0x8b, 0x4b, 0x6c, 0x24, 0x5c, 0xb3, 0x8d, 0x60, 0xe1, 0xb1, - 0x37, 0x33, 0x4e, 0x06, 0xb3, 0xf3, 0x2c, 0xf3, 0xcc, 0xad, 0xd9, 0x6f, 0x60, 0xa9, 0x95, 0x6d, - 0xbe, 0x81, 0x5f, 0x43, 0xb0, 0x49, 0x69, 0x25, 0x72, 0xd7, 0x58, 0xfb, 0x09, 0x64, 0xdf, 0x3c, - 0xc5, 0xe3, 0x08, 0x92, 0xee, 0x79, 0xdb, 0xff, 0xff, 0xb7, 0x33, 0xf3, 0x90, 0x07, 0xda, 0x38, - 0x69, 0xf9, 0x71, 0xa2, 0xcd, 0x18, 0x25, 0x9f, 0x5a, 0xed, 0x0a, 0xc6, 0x79, 0xce, 0x32, 0x0b, - 0xb9, 0x16, 0xd2, 0xb2, 0x7c, 0x97, 0xb9, 0xd3, 0x28, 0xb3, 0xe0, 0x80, 0xde, 0x5b, 0x32, 0x1d, - 0x71, 0x9e, 0x47, 0xed, 0x74, 0x94, 0xef, 0xf6, 0xfa, 0x0a, 0x40, 0x9d, 0x48, 0x96, 0x64, 0x9a, - 0x25, 0xc6, 0x80, 0x4b, 0x9c, 0x06, 0x83, 0xb5, 0x44, 0xaf, 0xa3, 0x40, 0x41, 0x15, 0xb2, 0x32, - 0x6a, 0xaa, 0xdb, 0x1c, 0x30, 0x05, 0x1c, 0xd7, 0x8d, 0x3a, 0x69, 0x5b, 0x8d, 0x5c, 0x95, 0x4d, - 0xa6, 0xaf, 0x59, 0x62, 0x8a, 0xba, 0x15, 0x7e, 0xf4, 0x49, 0x67, 0x84, 0x6a, 0x88, 0xa8, 0x95, - 0x39, 0x04, 0x83, 0xd3, 0x54, 0xda, 0x23, 0x59, 0xd0, 0x6d, 0xb2, 0x51, 0x43, 0x6a, 0xd1, 0xf5, - 0xef, 0xf8, 0x3b, 0x9b, 0xf1, 0xb5, 0x2a, 0x7f, 0x2e, 0xe8, 0x63, 0x72, 0xa3, 0x85, 0x1d, 0x27, - 0x42, 0xd8, 0xee, 0x5a, 0xd9, 0x3f, 0xa0, 0x3f, 0xbf, 0x0d, 0x6e, 0x16, 0x49, 0x7a, 0xb2, 0x1f, - 0x96, 0x55, 0x89, 0x18, 0xc6, 0x5b, 0xed, 0xe0, 0x50, 0x08, 0x4b, 0xef, 0x92, 0x2d, 0xde, 0x58, - 0x8c, 0xdf, 0xc8, 0xa2, 0xbb, 0x5e, 0xe9, 0x5e, 0xe7, 0x0b, 0xdb, 0xfd, 0x8d, 0x77, 0x67, 0x03, - 0xef, 0xc7, 0xd9, 0xc0, 0x0b, 0x03, 0xd2, 0x5f, 0x06, 0x16, 0x4b, 0xcc, 0xc0, 0xa0, 0x0c, 0x5f, - 0x91, 0x60, 0x84, 0x2a, 0x96, 0x4a, 0xa3, 0x93, 0xb6, 0x9d, 0x88, 0xe5, 0xdb, 0xc4, 0x8a, 0x67, - 0xd2, 0x40, 0x4a, 0x3b, 0xe4, 0x8a, 0x28, 0x83, 0x86, 0xbf, 0x4e, 0x68, 0x9f, 0x6c, 0x0a, 0x99, - 0x01, 0x6a, 0x07, 0x0d, 0x79, 0xbc, 0x28, 0xfc, 0xe1, 0xbf, 0x43, 0xee, 0xaf, 0xd6, 0x6f, 0x49, - 0xf6, 0xbe, 0xac, 0x91, 0xf5, 0x11, 0x2a, 0xfa, 0xc1, 0x27, 0xb7, 0xfe, 0x3d, 0xc8, 0x27, 0xd1, - 0x05, 0x6e, 0x3c, 0x5a, 0xf6, 0xab, 0xbd, 0xe1, 0x7f, 0x7f, 0xda, 0xb2, 0xd1, 0x4f, 0x3e, 0xb9, - 0xbd, 0xea, 0x8c, 0x0e, 0x2f, 0x6a, 0xb1, 0x42, 0xa4, 0x77, 0x74, 0x09, 0x22, 0x2d, 0xf1, 0xc1, - 0x8b, 0xcf, 0xb3, 0xc0, 0x3f, 0x9f, 0x05, 0xfe, 0xf7, 0x59, 0xe0, 0xbf, 0x9f, 0x07, 0xde, 0xf9, - 0x3c, 0xf0, 0xbe, 0xce, 0x03, 0xef, 0xe5, 0x53, 0xa5, 0xdd, 0xf1, 0x74, 0x12, 0x71, 0x48, 0x9b, - 0xf7, 0xcd, 0x16, 0xbe, 0x0f, 0x7f, 0xaf, 0x5e, 0xbe, 0xc7, 0x4e, 0xff, 0xde, 0x3f, 0x57, 0x64, - 0x12, 0x27, 0x57, 0xab, 0x17, 0xff, 0xe8, 0x57, 0x00, 0x00, 0x00, 0xff, 0xff, 0x7a, 0x53, 0xb5, - 0xb8, 0xb0, 0x03, 0x00, 0x00, + // 530 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0x3f, 0x6f, 0x13, 0x31, + 0x14, 0xcf, 0xb5, 0x02, 0x5a, 0xb7, 0x20, 0x71, 0xca, 0x90, 0x86, 0x70, 0x81, 0x20, 0xa1, 0x0e, + 0xc5, 0x56, 0xc2, 0x80, 0xa8, 0xc4, 0x90, 0x96, 0x05, 0x55, 0x91, 0xd0, 0x31, 0x20, 0x31, 0x10, + 0xdd, 0xd9, 0xc6, 0xb1, 0xc8, 0xd9, 0x27, 0x3f, 0xdf, 0xd1, 0x13, 0x5f, 0x80, 0x11, 0x26, 0xd6, + 0x7e, 0x03, 0xbe, 0x06, 0x12, 0x4b, 0x47, 0x26, 0x84, 0x92, 0x85, 0x99, 0x4f, 0x80, 0x72, 0x7f, + 0x92, 0x54, 0x44, 0x51, 0x85, 0xd8, 0xde, 0xef, 0xbd, 0xe7, 0xdf, 0xef, 0x67, 0x3f, 0xdb, 0xe8, + 0x40, 0x2a, 0xcb, 0x0d, 0x1d, 0x05, 0x52, 0x0d, 0x81, 0xd3, 0xc4, 0x48, 0x9b, 0x11, 0x4a, 0x53, + 0x12, 0x1b, 0x9d, 0x4a, 0xc6, 0x0d, 0x49, 0xbb, 0xc4, 0x9e, 0xe2, 0xd8, 0x68, 0xab, 0xdd, 0x7b, + 0x2b, 0xba, 0x31, 0xa5, 0x29, 0xae, 0xba, 0x71, 0xda, 0x6d, 0xb6, 0x84, 0xd6, 0x62, 0xcc, 0x49, + 0x10, 0x4b, 0x12, 0x28, 0xa5, 0x6d, 0x60, 0xa5, 0x56, 0x50, 0x50, 0x34, 0xeb, 0x42, 0x0b, 0x9d, + 0x87, 0x64, 0x16, 0x95, 0xd9, 0x3d, 0xaa, 0x21, 0xd2, 0x30, 0x2c, 0x0a, 0x05, 0xa8, 0x4a, 0x25, + 0x5d, 0x8e, 0xc2, 0xe4, 0x0d, 0x09, 0x54, 0x56, 0x96, 0x88, 0x0c, 0x29, 0x19, 0x4b, 0x31, 0xb2, + 0x74, 0x2c, 0xb9, 0xb2, 0x40, 0x2c, 0x57, 0x8c, 0x9b, 0x48, 0x2a, 0x9b, 0xfb, 0x9e, 0xa3, 0x62, + 0x41, 0xe7, 0xb3, 0x83, 0xea, 0x03, 0x10, 0x7d, 0x00, 0x29, 0xd4, 0xb1, 0x56, 0x90, 0x44, 0xdc, + 0x9c, 0xf0, 0xcc, 0xdd, 0x43, 0x5b, 0xc5, 0xae, 0x24, 0x6b, 0x38, 0x77, 0x9c, 0xfd, 0x6d, 0xff, + 0x5a, 0x8e, 0x9f, 0x31, 0xf7, 0x11, 0xba, 0x5e, 0xed, 0x6e, 0x18, 0x30, 0x66, 0x1a, 0x1b, 0xb3, + 0xfa, 0x91, 0xfb, 0xfb, 0x47, 0xfb, 0x46, 0x16, 0x44, 0xe3, 0xc3, 0xce, 0x2c, 0xcb, 0x01, 0x3a, + 0xfe, 0x6e, 0xd5, 0xd8, 0x67, 0xcc, 0xb8, 0x77, 0xd1, 0x2e, 0x2d, 0x25, 0x86, 0x6f, 0x79, 0xd6, + 0xd8, 0xcc, 0x79, 0x77, 0xe8, 0x42, 0xf6, 0x70, 0xeb, 0xc3, 0x59, 0xbb, 0xf6, 0xeb, 0xac, 0x5d, + 0xeb, 0x78, 0xa8, 0xb5, 0xca, 0x98, 0xcf, 0x21, 0xd6, 0x0a, 0x78, 0xe7, 0x35, 0xf2, 0x06, 0x20, + 0x7c, 0x2e, 0x24, 0x58, 0x6e, 0xaa, 0x0e, 0x9f, 0xbf, 0x0b, 0x0c, 0x7b, 0xca, 0x95, 0x8e, 0xdc, + 0x3a, 0xba, 0xc2, 0x66, 0x41, 0xe9, 0xbf, 0x00, 0x6e, 0x0b, 0x6d, 0x33, 0x1e, 0x6b, 0x90, 0x56, + 0x97, 0xce, 0xfd, 0x45, 0x62, 0x49, 0x7f, 0x1f, 0xdd, 0x5f, 0xcf, 0x3f, 0x77, 0xf2, 0x1e, 0xdd, + 0x1e, 0x80, 0x78, 0x91, 0x84, 0x91, 0xb4, 0x55, 0xdf, 0x40, 0x42, 0xc8, 0x47, 0x41, 0x2a, 0x75, + 0x62, 0xdc, 0xe7, 0x68, 0x37, 0x5a, 0xc2, 0xb9, 0x9f, 0x9d, 0xde, 0x01, 0x96, 0x21, 0xc5, 0xcb, + 0xc3, 0xc2, 0x4b, 0xe3, 0x49, 0xbb, 0x78, 0x99, 0xc3, 0xbf, 0xc0, 0xb0, 0xb0, 0xd9, 0xfb, 0xb6, + 0x81, 0x36, 0x07, 0x20, 0xdc, 0x4f, 0x0e, 0xba, 0xf9, 0xf7, 0x14, 0x1f, 0xe3, 0x4b, 0xdc, 0x4f, + 0xbc, 0xea, 0x9c, 0x9b, 0xfd, 0x7f, 0x5e, 0x5a, 0x1d, 0x8c, 0xfb, 0xc5, 0x41, 0xb7, 0xd6, 0x0d, + 0xe8, 0xf8, 0xb2, 0x12, 0x6b, 0x48, 0x9a, 0x27, 0xff, 0x81, 0xa4, 0x72, 0x7c, 0xf4, 0xf2, 0xeb, + 0xc4, 0x73, 0xce, 0x27, 0x9e, 0xf3, 0x73, 0xe2, 0x39, 0x1f, 0xa7, 0x5e, 0xed, 0x7c, 0xea, 0xd5, + 0xbe, 0x4f, 0xbd, 0xda, 0xab, 0x27, 0x42, 0xda, 0x51, 0x12, 0x62, 0xaa, 0xa3, 0xf2, 0x35, 0x92, + 0x85, 0xee, 0x83, 0xf9, 0x47, 0x91, 0xf6, 0xc8, 0xe9, 0xc5, 0xdf, 0xc2, 0x66, 0x31, 0x87, 0xf0, + 0x6a, 0xfe, 0xdc, 0x1e, 0xfe, 0x09, 0x00, 0x00, 0xff, 0xff, 0xd8, 0x5c, 0x30, 0xf0, 0x5e, 0x04, + 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -478,6 +525,41 @@ func (m *MsgRegisterConsumerRewardDenomResponse) MarshalToSizedBuffer(dAtA []byt return len(dAtA) - i, nil } +func (m *MsgSubmitConsumerMisbehaviour) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgSubmitConsumerMisbehaviour) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSubmitConsumerMisbehaviour) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Misbehaviour != nil { + { + size, err := m.Misbehaviour.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + func encodeVarintTx(dAtA []byte, offset int, v uint64) int { offset -= sovTx(v) base := offset @@ -545,6 +627,19 @@ func (m *MsgRegisterConsumerRewardDenomResponse) Size() (n int) { return n } +func (m *MsgSubmitConsumerMisbehaviour) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Misbehaviour != nil { + l = m.Misbehaviour.Size() + n += 1 + l + sovTx(uint64(l)) + } + return n +} + func sovTx(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -911,6 +1006,92 @@ func (m *MsgRegisterConsumerRewardDenomResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *MsgSubmitConsumerMisbehaviour) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgSubmitConsumerMisbehaviour: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgSubmitConsumerMisbehaviour: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Misbehaviour", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Misbehaviour == nil { + m.Misbehaviour = &types.Misbehaviour{} + } + if err := m.Misbehaviour.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func skipTx(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/ccv/types/expected_keepers.go b/x/ccv/types/expected_keepers.go index 7f18324c8d..5280cb8b8d 100644 --- a/x/ccv/types/expected_keepers.go +++ b/x/ccv/types/expected_keepers.go @@ -86,6 +86,8 @@ type ClientKeeper interface { GetClientState(ctx sdk.Context, clientID string) (ibcexported.ClientState, bool) GetLatestClientConsensusState(ctx sdk.Context, clientID string) (ibcexported.ConsensusState, bool) GetSelfConsensusState(ctx sdk.Context, height ibcexported.Height) (ibcexported.ConsensusState, error) + ClientStore(ctx sdk.Context, clientID string) sdk.KVStore + SetClientState(ctx sdk.Context, clientID string, clientState ibcexported.ClientState) } // DistributionKeeper defines the expected interface of the distribution keeper From 0b6fd43c90323389a27d68a3294be1ef7caa3c4b Mon Sep 17 00:00:00 2001 From: Simon Noetzlin Date: Mon, 13 Mar 2023 08:53:35 +0100 Subject: [PATCH 02/33] wip: get byzantine validators in misbehavioiur handling --- tests/e2e/misbehaviour.go | 1 + x/ccv/provider/keeper/misbehaviour.go | 43 +++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) diff --git a/tests/e2e/misbehaviour.go b/tests/e2e/misbehaviour.go index 39e5db22f7..fccaa7e174 100644 --- a/tests/e2e/misbehaviour.go +++ b/tests/e2e/misbehaviour.go @@ -23,6 +23,7 @@ func (s *CCVTestSuite) TestCheckConsumerMisbehaviour() { s.SetupCCVChannel(s.path) // required to have the consumer client revision height greater than 0 s.SendEmptyVSCPacket() + tmtypes.LightClientAttackEvidence consumerConsState, _ := s.providerChain.GetConsensusState(s.path.EndpointA.ClientID, s.consumerChain.LastHeader.TrustedHeight) diff --git a/x/ccv/provider/keeper/misbehaviour.go b/x/ccv/provider/keeper/misbehaviour.go index ec2609529e..645eb721e0 100644 --- a/x/ccv/provider/keeper/misbehaviour.go +++ b/x/ccv/provider/keeper/misbehaviour.go @@ -6,6 +6,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/ibc-go/v4/modules/core/exported" "github.com/cosmos/interchain-security/x/ccv/provider/types" + tmtypes "github.com/tendermint/tendermint/types" ) func (k Keeper) CheckConsumerMisbehaviour(ctx sdk.Context, msg types.MsgSubmitConsumerMisbehaviour) error { @@ -34,6 +35,48 @@ func (k Keeper) CheckConsumerMisbehaviour(ctx sdk.Context, msg types.MsgSubmitCo k.clientKeeper.SetClientState(ctx, clientID, clientState) k.Logger(ctx).Info("client frozen due to misbehaviour", "client-id", clientID) + // get byzantine validators + sh, err := tmtypes.SignedHeaderFromProto(msg.Misbehaviour.Header1.SignedHeader) + if err != nil { + return err + } + + vs, err := tmtypes.ValidatorSetFromProto(msg.Misbehaviour.Header1.ValidatorSet) + if err != nil { + return err + } + ev := tmtypes.LightClientAttackEvidence{ + ConflictingBlock: &tmtypes.LightBlock{SignedHeader: sh, ValidatorSet: vs}, + } + + h2, err := tmtypes.HeaderFromProto(msg.Misbehaviour.Header2.Header) + if err != nil { + return err + } + + // WIP: return byzantine validators according to the light client commited + + // if this is an equivocation or amnesia attack, i.e. the validator sets are the same, then we + // return the height of the conflicting block else if it is a lunatic attack and the validator sets + // are not the same then we send the height of the common header. + if ev.ConflictingHeaderIsInvalid(&h2) { + ev.CommonHeight = msg.Misbehaviour.Header2.Header.Height + ev.Timestamp = msg.Misbehaviour.Header2.Header.Time + ev.TotalVotingPower = msg.Misbehaviour.Header2.ValidatorSet.TotalVotingPower + } else { + ev.CommonHeight = msg.Misbehaviour.Header1.Header.Height + ev.Timestamp = msg.Misbehaviour.Header1.Header.Time + ev.TotalVotingPower = msg.Misbehaviour.Header1.ValidatorSet.TotalVotingPower + } + ev.ByzantineValidators = ev.GetByzantineValidators(vs, sh) + + logger := ctx.Logger() + + logger.Info( + "confirmed equivocation", + "byzantine validators", ev.ByzantineValidators, + ) + // TBD // defer func() { // telemetry.IncrCounterWithLabels( From 16d940d9acc636cb9303b740604ec2e5c4731155 Mon Sep 17 00:00:00 2001 From: Simon Noetzlin Date: Mon, 13 Mar 2023 10:06:30 +0100 Subject: [PATCH 03/33] add tx handler --- go.mod | 11 +- go.sum | 17 +- .../ccv/provider/v1/tx.proto | 7 +- tests/{e2e => integration}/misbehaviour.go | 8 +- x/ccv/provider/keeper/misbehaviour.go | 30 +-- x/ccv/provider/types/msg.go | 48 +++- x/ccv/provider/types/tx.pb.go | 236 +++++++++++++++--- x/ccv/types/events.go | 3 + 8 files changed, 291 insertions(+), 69 deletions(-) rename tests/{e2e => integration}/misbehaviour.go (98%) diff --git a/go.mod b/go.mod index 2ac75fe25b..7ef3e43ffb 100644 --- a/go.mod +++ b/go.mod @@ -31,10 +31,7 @@ require ( gopkg.in/yaml.v2 v2.4.0 ) -require ( - cosmossdk.io/errors v1.0.0-beta.7 - github.com/cosmos/interchain-security v1.2.1 -) +require cosmossdk.io/errors v1.0.0-beta.7 require ( cosmossdk.io/api v0.2.6 // indirect @@ -83,11 +80,13 @@ require ( github.com/go-kit/kit v0.12.0 // indirect github.com/go-kit/log v0.2.1 // indirect github.com/go-logfmt/logfmt v0.5.1 // indirect + github.com/gobwas/ws v1.1.0 // indirect github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect github.com/gogo/gateway v1.1.0 // indirect github.com/golang/glog v1.0.0 // indirect github.com/golang/snappy v0.0.4 // indirect github.com/google/btree v1.1.2 // indirect + github.com/google/gofuzz v1.2.0 // indirect github.com/google/orderedcode v0.0.1 // indirect github.com/gorilla/handlers v1.5.1 // indirect github.com/gorilla/websocket v1.5.0 // indirect @@ -96,6 +95,7 @@ require ( github.com/gtank/merlin v0.1.1 // indirect github.com/gtank/ristretto255 v0.1.2 // indirect github.com/hashicorp/go-immutable-radix v1.3.1 // indirect + github.com/hashicorp/go-uuid v1.0.2 // indirect github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d // indirect github.com/hashicorp/hcl v1.0.0 // indirect github.com/hdevalence/ed25519consensus v0.0.0-20220222234857-c00d1f31bab3 // indirect @@ -116,7 +116,8 @@ require ( github.com/minio/highwayhash v1.0.2 // indirect github.com/mitchellh/mapstructure v1.5.0 // indirect github.com/mtibben/percent v0.2.1 // indirect - github.com/nxadm/tail v1.4.8 // indirect + github.com/onsi/ginkgo v1.16.5 // indirect + github.com/onsi/gomega v1.20.0 // indirect github.com/pelletier/go-toml v1.9.5 // indirect github.com/pelletier/go-toml/v2 v2.0.5 // indirect github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5 // indirect diff --git a/go.sum b/go.sum index 6e8b054b07..5afd840ee9 100644 --- a/go.sum +++ b/go.sum @@ -242,8 +242,6 @@ github.com/cosmos/iavl v0.19.5 h1:rGA3hOrgNxgRM5wYcSCxgQBap7fW82WZgY78V9po/iY= github.com/cosmos/iavl v0.19.5/go.mod h1:X9PKD3J0iFxdmgNLa7b2LYWdsGd90ToV5cAONApkEPw= github.com/cosmos/ibc-go/v4 v4.4.2 h1:PG4Yy0/bw6Hvmha3RZbc53KYzaCwuB07Ot4GLyzcBvo= github.com/cosmos/ibc-go/v4 v4.4.2/go.mod h1:j/kD2JCIaV5ozvJvaEkWhLxM2zva7/KTM++EtKFYcB8= -github.com/cosmos/interchain-security v1.2.1 h1:8IawF74ep/eHRvY637Z1siw2gTBKPp4dU2khrL1P1U0= -github.com/cosmos/interchain-security v1.2.1/go.mod h1:yiJ9NBWvCW7M04BNDL5mWGEK1gsfK1w1IzKG49jnZm0= github.com/cosmos/ledger-cosmos-go v0.12.2 h1:/XYaBlE2BJxtvpkHiBm97gFGSGmYGKunKyF3nNqAXZA= github.com/cosmos/ledger-cosmos-go v0.12.2/go.mod h1:ZcqYgnfNJ6lAXe4HPtWgarNEY+B74i+2/8MhZw4ziiI= github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE= @@ -383,12 +381,16 @@ github.com/go-sourcemap/sourcemap v2.1.3+incompatible/go.mod h1:F8jJfvm2KbVjc5Nq github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= github.com/go-sql-driver/mysql v1.4.1/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= -github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee h1:s+21KNqlpePfkah2I+gwHF8xmJWRjooY+5248k6m4A0= +github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE= github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee/go.mod h1:L0fX3K22YWvt/FAX9NnzrNzcI4wNYi9Yku4O0LKYflo= -github.com/gobwas/pool v0.2.0 h1:QEmUOlnSjWtnpRGHF3SauEiOsy82Cup83Vf2LcMlnc8= +github.com/gobwas/httphead v0.1.0 h1:exrUm0f4YX0L7EBwZHuCF4GDp8aJfVeBrlLQrs6NqWU= +github.com/gobwas/httphead v0.1.0/go.mod h1:O/RXo79gxV8G+RqlR/otEwx4Q36zl9rqC5u12GKvMCM= github.com/gobwas/pool v0.2.0/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6WezmKEw= +github.com/gobwas/pool v0.2.1 h1:xfeeEhW7pwmX8nuLVlqbzVc7udMDrwetjEv+TZIz1og= +github.com/gobwas/pool v0.2.1/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6WezmKEw= github.com/gobwas/ws v1.0.2/go.mod h1:szmBTxLgaFppYjEmNtny/v3w89xOydFnnZMcgRRu/EM= github.com/gobwas/ws v1.1.0 h1:7RFti/xnNkMJnrK7D1yQ/iCIB5OrrY/54/H930kIbHA= +github.com/gobwas/ws v1.1.0/go.mod h1:nzvNcVha5eUziGrbxFCo6qFIojQHjJV5cLYIbezhfL0= github.com/goccy/go-json v0.9.11 h1:/pAaQDLHEoCq/5FFmSKBswWmK6H0e8g4159Kc/X/nqk= github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 h1:ZpnhV/YsD2/4cESfV5+Hoeu/iUR3ruzNvZ+yQfO03a0= github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2/go.mod h1:bBOAhwG1umN6/6ZUMtDFBMQR8jRg9O75tm9K00oMsK4= @@ -465,6 +467,7 @@ github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf/go.mod h1:HP5RmnzzSN github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/gofuzz v1.1.1-0.20200604201612-c04b05f3adfa/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0= +github.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= github.com/google/martian/v3 v3.1.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= @@ -537,6 +540,7 @@ github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdv github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-uuid v1.0.2 h1:cfejS+Tpcp13yd5nYHWDI6qVCny6wyX2Mt5SGur2IGE= +github.com/hashicorp/go-uuid v1.0.2/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go-version v1.6.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90= @@ -777,11 +781,13 @@ github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108 github.com/onsi/ginkgo v1.13.0/go.mod h1:+REjRxOmWfHCjfv9TTWB1jD1Frx4XydAD3zm1lskyM0= github.com/onsi/ginkgo v1.14.0/go.mod h1:iSB4RoI2tjJc9BBv4NKIKWKya62Rps+oPG/Lv9klQyY= github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE= +github.com/onsi/ginkgo v1.16.5/go.mod h1:+E8gABHa3K6zRBolWtd+ROzc/U5bkGt0FwiG042wbpU= github.com/onsi/gomega v1.4.1/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA= github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= github.com/onsi/gomega v1.20.0 h1:8W0cWlwFkflGPLltQvLRB7ZVD5HuP6ng320w2IS245Q= +github.com/onsi/gomega v1.20.0/go.mod h1:DtrZpjmvpn2mPm4YWQa0/ALMDj9v4YxLgojwPeREyVo= github.com/op/go-logging v0.0.0-20160315200505-970db520ece7/go.mod h1:HzydrMdWErDVzsI23lYNej1Htcns9BCg93Dk0bBINWk= github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U= github.com/opencontainers/image-spec v1.1.0-rc2 h1:2zx/Stx4Wc5pIPDvIxHXvXtQFW/7XWJGmnM7r3wg034= @@ -1262,7 +1268,9 @@ golang.org/x/sys v0.0.0-20200923182605-d9f96fdee20d/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201207223542-d4d67f95c62d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210112080510-489259a85091/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210225134936-a50acf3fe073/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -1367,6 +1375,7 @@ golang.org/x/tools v0.0.0-20201022035929-9cf592e881e9/go.mod h1:emZCQorbCU4vsT4f golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20210108195828-e2f9c7f1fc8e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= diff --git a/proto/interchain_security/ccv/provider/v1/tx.proto b/proto/interchain_security/ccv/provider/v1/tx.proto index 7578ff84cc..f6d06b4bb3 100644 --- a/proto/interchain_security/ccv/provider/v1/tx.proto +++ b/proto/interchain_security/ccv/provider/v1/tx.proto @@ -48,7 +48,10 @@ message MsgRegisterConsumerRewardDenomResponse {} message MsgSubmitConsumerMisbehaviour { option (gogoproto.equal) = false; option (gogoproto.goproto_getters) = false; + string submitter = 1; // The Misbehaviour of the consumer chain wrapping // two conflicting IBC headers - ibc.lightclients.tendermint.v1.Misbehaviour misbehaviour = 1; -} \ No newline at end of file + ibc.lightclients.tendermint.v1.Misbehaviour misbehaviour = 2; +} + +message MsgSubmitConsumerMisbehaviourResponse {} diff --git a/tests/e2e/misbehaviour.go b/tests/integration/misbehaviour.go similarity index 98% rename from tests/e2e/misbehaviour.go rename to tests/integration/misbehaviour.go index fccaa7e174..b04c865d41 100644 --- a/tests/e2e/misbehaviour.go +++ b/tests/integration/misbehaviour.go @@ -1,4 +1,4 @@ -package e2e +package integration import ( "time" @@ -7,7 +7,6 @@ import ( commitmenttypes "github.com/cosmos/ibc-go/v4/modules/core/23-commitment/types" ibctmtypes "github.com/cosmos/ibc-go/v4/modules/light-clients/07-tendermint/types" ibctestingmock "github.com/cosmos/ibc-go/v4/testing/mock" - providertypes "github.com/cosmos/interchain-security/x/ccv/provider/types" tmtypes "github.com/tendermint/tendermint/types" ) @@ -23,7 +22,6 @@ func (s *CCVTestSuite) TestCheckConsumerMisbehaviour() { s.SetupCCVChannel(s.path) // required to have the consumer client revision height greater than 0 s.SendEmptyVSCPacket() - tmtypes.LightClientAttackEvidence consumerConsState, _ := s.providerChain.GetConsensusState(s.path.EndpointA.ClientID, s.consumerChain.LastHeader.TrustedHeight) @@ -376,9 +374,7 @@ func (s *CCVTestSuite) TestCheckConsumerMisbehaviour() { err = s.providerApp.GetProviderKeeper().CheckConsumerMisbehaviour( cCtx, - providertypes.MsgSubmitConsumerMisbehaviour{ - Misbehaviour: tc.misbehaviour(), - }, + *tc.misbehaviour(), ) // Misbehaviour passed diff --git a/x/ccv/provider/keeper/misbehaviour.go b/x/ccv/provider/keeper/misbehaviour.go index 645eb721e0..737b272729 100644 --- a/x/ccv/provider/keeper/misbehaviour.go +++ b/x/ccv/provider/keeper/misbehaviour.go @@ -5,29 +5,29 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/ibc-go/v4/modules/core/exported" - "github.com/cosmos/interchain-security/x/ccv/provider/types" + ibctmtypes "github.com/cosmos/ibc-go/v4/modules/light-clients/07-tendermint/types" tmtypes "github.com/tendermint/tendermint/types" ) -func (k Keeper) CheckConsumerMisbehaviour(ctx sdk.Context, msg types.MsgSubmitConsumerMisbehaviour) error { +func (k Keeper) CheckConsumerMisbehaviour(ctx sdk.Context, misbeaviour ibctmtypes.Misbehaviour) error { - clientID := msg.Misbehaviour.GetClientID() + clientID := misbeaviour.GetClientID() clientState, found := k.clientKeeper.GetClientState(ctx, clientID) if !found { return fmt.Errorf("types.ErrClientNotFound cannot check misbehaviour for client with ID %s", clientID) } - clientStore := k.clientKeeper.ClientStore(ctx, msg.Misbehaviour.GetClientID()) + clientStore := k.clientKeeper.ClientStore(ctx, misbeaviour.GetClientID()) if status := clientState.Status(ctx, clientStore, k.cdc); status != exported.Active { return fmt.Errorf("types.ErrClientNotActive cannot process misbehaviour for client (%s) with status %s", clientID, status) } - if err := msg.Misbehaviour.ValidateBasic(); err != nil { + if err := misbeaviour.ValidateBasic(); err != nil { return err } - clientState, err := clientState.CheckMisbehaviourAndUpdateState(ctx, k.cdc, clientStore, msg.Misbehaviour) + clientState, err := clientState.CheckMisbehaviourAndUpdateState(ctx, k.cdc, clientStore, &misbeaviour) if err != nil { return err } @@ -36,12 +36,12 @@ func (k Keeper) CheckConsumerMisbehaviour(ctx sdk.Context, msg types.MsgSubmitCo k.Logger(ctx).Info("client frozen due to misbehaviour", "client-id", clientID) // get byzantine validators - sh, err := tmtypes.SignedHeaderFromProto(msg.Misbehaviour.Header1.SignedHeader) + sh, err := tmtypes.SignedHeaderFromProto(misbeaviour.Header1.SignedHeader) if err != nil { return err } - vs, err := tmtypes.ValidatorSetFromProto(msg.Misbehaviour.Header1.ValidatorSet) + vs, err := tmtypes.ValidatorSetFromProto(misbeaviour.Header1.ValidatorSet) if err != nil { return err } @@ -49,7 +49,7 @@ func (k Keeper) CheckConsumerMisbehaviour(ctx sdk.Context, msg types.MsgSubmitCo ConflictingBlock: &tmtypes.LightBlock{SignedHeader: sh, ValidatorSet: vs}, } - h2, err := tmtypes.HeaderFromProto(msg.Misbehaviour.Header2.Header) + h2, err := tmtypes.HeaderFromProto(misbeaviour.Header2.Header) if err != nil { return err } @@ -60,13 +60,13 @@ func (k Keeper) CheckConsumerMisbehaviour(ctx sdk.Context, msg types.MsgSubmitCo // return the height of the conflicting block else if it is a lunatic attack and the validator sets // are not the same then we send the height of the common header. if ev.ConflictingHeaderIsInvalid(&h2) { - ev.CommonHeight = msg.Misbehaviour.Header2.Header.Height - ev.Timestamp = msg.Misbehaviour.Header2.Header.Time - ev.TotalVotingPower = msg.Misbehaviour.Header2.ValidatorSet.TotalVotingPower + ev.CommonHeight = misbeaviour.Header2.Header.Height + ev.Timestamp = misbeaviour.Header2.Header.Time + ev.TotalVotingPower = misbeaviour.Header2.ValidatorSet.TotalVotingPower } else { - ev.CommonHeight = msg.Misbehaviour.Header1.Header.Height - ev.Timestamp = msg.Misbehaviour.Header1.Header.Time - ev.TotalVotingPower = msg.Misbehaviour.Header1.ValidatorSet.TotalVotingPower + ev.CommonHeight = misbeaviour.Header1.Header.Height + ev.Timestamp = misbeaviour.Header1.Header.Time + ev.TotalVotingPower = misbeaviour.Header1.ValidatorSet.TotalVotingPower } ev.ByzantineValidators = ev.GetByzantineValidators(vs, sh) diff --git a/x/ccv/provider/types/msg.go b/x/ccv/provider/types/msg.go index 67ad99d10c..9496122342 100644 --- a/x/ccv/provider/types/msg.go +++ b/x/ccv/provider/types/msg.go @@ -5,15 +5,22 @@ import ( "strings" sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + + ibctmtypes "github.com/cosmos/ibc-go/v4/modules/light-clients/07-tendermint/types" ) // provider message types const ( TypeMsgAssignConsumerKey = "assign_consumer_key" TypeMsgRegisterConsumerRewardDenom = "register_consumer_reward_denom" + TypeMsgSubmitConsumerMisbehaviour = "submit_consumer_misbehaviour" ) -var _ sdk.Msg = &MsgAssignConsumerKey{} +var ( + _ sdk.Msg = &MsgAssignConsumerKey{} + _ sdk.Msg = &MsgSubmitConsumerMisbehaviour{} +) // NewMsgAssignConsumerKey creates a new MsgAssignConsumerKey instance. // Delegator address and validator address are the same. @@ -139,3 +146,42 @@ func (msg MsgRegisterConsumerRewardDenom) ValidateBasic() error { return nil } + +func NewMsgSubmitConsumerMisbehaviour(submitter sdk.AccAddress, m *ibctmtypes.Misbehaviour) (*MsgSubmitConsumerMisbehaviour, error) { + return &MsgSubmitConsumerMisbehaviour{Submitter: submitter.String(), Misbehaviour: m}, nil +} + +// Route implements the sdk.Msg interface. +func (msg MsgSubmitConsumerMisbehaviour) Route() string { return RouterKey } + +// Type implements the sdk.Msg interface. +func (msg MsgSubmitConsumerMisbehaviour) Type() string { + return TypeMsgSubmitConsumerMisbehaviour +} + +// Type implements the sdk.Msg interface. +func (msg MsgSubmitConsumerMisbehaviour) ValidateBasic() error { + if msg.Submitter == "" { + return sdkerrors.Wrap(sdkerrors.ErrInvalidAddress, msg.Submitter) + } + if err := msg.Misbehaviour.ValidateBasic(); err != nil { + return err + } + return nil +} + +// Type implements the sdk.Msg interface. +func (msg MsgSubmitConsumerMisbehaviour) GetSignBytes() []byte { + bz := ModuleCdc.MustMarshalJSON(&msg) + return sdk.MustSortJSON(bz) +} + +// Type implements the sdk.Msg interface. +func (msg MsgSubmitConsumerMisbehaviour) GetSigners() []sdk.AccAddress { + addr, err := sdk.AccAddressFromBech32(msg.Submitter) + if err != nil { + // same behavior as in cosmos-sdk + panic(err) + } + return []sdk.AccAddress{addr} +} diff --git a/x/ccv/provider/types/tx.pb.go b/x/ccv/provider/types/tx.pb.go index 71177c43d9..4a82c5afc6 100644 --- a/x/ccv/provider/types/tx.pb.go +++ b/x/ccv/provider/types/tx.pb.go @@ -194,9 +194,10 @@ var xxx_messageInfo_MsgRegisterConsumerRewardDenomResponse proto.InternalMessage // MsgSubmitConsumerMisbehaviour reports a consumer chain Misbehaviour type MsgSubmitConsumerMisbehaviour struct { + Submitter string `protobuf:"bytes,1,opt,name=submitter,proto3" json:"submitter,omitempty"` // The Misbehaviour of the consumer chain wrapping // two conflicting IBC headers - Misbehaviour *types.Misbehaviour `protobuf:"bytes,1,opt,name=misbehaviour,proto3" json:"misbehaviour,omitempty"` + Misbehaviour *types.Misbehaviour `protobuf:"bytes,2,opt,name=misbehaviour,proto3" json:"misbehaviour,omitempty"` } func (m *MsgSubmitConsumerMisbehaviour) Reset() { *m = MsgSubmitConsumerMisbehaviour{} } @@ -232,12 +233,49 @@ func (m *MsgSubmitConsumerMisbehaviour) XXX_DiscardUnknown() { var xxx_messageInfo_MsgSubmitConsumerMisbehaviour proto.InternalMessageInfo +type MsgSubmitConsumerMisbehaviourResponse struct { +} + +func (m *MsgSubmitConsumerMisbehaviourResponse) Reset() { *m = MsgSubmitConsumerMisbehaviourResponse{} } +func (m *MsgSubmitConsumerMisbehaviourResponse) String() string { return proto.CompactTextString(m) } +func (*MsgSubmitConsumerMisbehaviourResponse) ProtoMessage() {} +func (*MsgSubmitConsumerMisbehaviourResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_43221a4391e9fbf4, []int{5} +} +func (m *MsgSubmitConsumerMisbehaviourResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSubmitConsumerMisbehaviourResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSubmitConsumerMisbehaviourResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgSubmitConsumerMisbehaviourResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSubmitConsumerMisbehaviourResponse.Merge(m, src) +} +func (m *MsgSubmitConsumerMisbehaviourResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgSubmitConsumerMisbehaviourResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSubmitConsumerMisbehaviourResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSubmitConsumerMisbehaviourResponse proto.InternalMessageInfo + func init() { proto.RegisterType((*MsgAssignConsumerKey)(nil), "interchain_security.ccv.provider.v1.MsgAssignConsumerKey") proto.RegisterType((*MsgAssignConsumerKeyResponse)(nil), "interchain_security.ccv.provider.v1.MsgAssignConsumerKeyResponse") proto.RegisterType((*MsgRegisterConsumerRewardDenom)(nil), "interchain_security.ccv.provider.v1.MsgRegisterConsumerRewardDenom") proto.RegisterType((*MsgRegisterConsumerRewardDenomResponse)(nil), "interchain_security.ccv.provider.v1.MsgRegisterConsumerRewardDenomResponse") proto.RegisterType((*MsgSubmitConsumerMisbehaviour)(nil), "interchain_security.ccv.provider.v1.MsgSubmitConsumerMisbehaviour") + proto.RegisterType((*MsgSubmitConsumerMisbehaviourResponse)(nil), "interchain_security.ccv.provider.v1.MsgSubmitConsumerMisbehaviourResponse") } func init() { @@ -245,41 +283,42 @@ func init() { } var fileDescriptor_43221a4391e9fbf4 = []byte{ - // 530 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0x3f, 0x6f, 0x13, 0x31, - 0x14, 0xcf, 0xb5, 0x02, 0x5a, 0xb7, 0x20, 0x71, 0xca, 0x90, 0x86, 0x70, 0x81, 0x20, 0xa1, 0x0e, - 0xc5, 0x56, 0xc2, 0x80, 0xa8, 0xc4, 0x90, 0x96, 0x05, 0x55, 0x91, 0xd0, 0x31, 0x20, 0x31, 0x10, - 0xdd, 0xd9, 0xc6, 0xb1, 0xc8, 0xd9, 0x27, 0x3f, 0xdf, 0xd1, 0x13, 0x5f, 0x80, 0x11, 0x26, 0xd6, - 0x7e, 0x03, 0xbe, 0x06, 0x12, 0x4b, 0x47, 0x26, 0x84, 0x92, 0x85, 0x99, 0x4f, 0x80, 0x72, 0x7f, - 0x92, 0x54, 0x44, 0x51, 0x85, 0xd8, 0xde, 0xef, 0xbd, 0xe7, 0xdf, 0xef, 0x67, 0x3f, 0xdb, 0xe8, - 0x40, 0x2a, 0xcb, 0x0d, 0x1d, 0x05, 0x52, 0x0d, 0x81, 0xd3, 0xc4, 0x48, 0x9b, 0x11, 0x4a, 0x53, - 0x12, 0x1b, 0x9d, 0x4a, 0xc6, 0x0d, 0x49, 0xbb, 0xc4, 0x9e, 0xe2, 0xd8, 0x68, 0xab, 0xdd, 0x7b, - 0x2b, 0xba, 0x31, 0xa5, 0x29, 0xae, 0xba, 0x71, 0xda, 0x6d, 0xb6, 0x84, 0xd6, 0x62, 0xcc, 0x49, - 0x10, 0x4b, 0x12, 0x28, 0xa5, 0x6d, 0x60, 0xa5, 0x56, 0x50, 0x50, 0x34, 0xeb, 0x42, 0x0b, 0x9d, - 0x87, 0x64, 0x16, 0x95, 0xd9, 0x3d, 0xaa, 0x21, 0xd2, 0x30, 0x2c, 0x0a, 0x05, 0xa8, 0x4a, 0x25, - 0x5d, 0x8e, 0xc2, 0xe4, 0x0d, 0x09, 0x54, 0x56, 0x96, 0x88, 0x0c, 0x29, 0x19, 0x4b, 0x31, 0xb2, - 0x74, 0x2c, 0xb9, 0xb2, 0x40, 0x2c, 0x57, 0x8c, 0x9b, 0x48, 0x2a, 0x9b, 0xfb, 0x9e, 0xa3, 0x62, - 0x41, 0xe7, 0xb3, 0x83, 0xea, 0x03, 0x10, 0x7d, 0x00, 0x29, 0xd4, 0xb1, 0x56, 0x90, 0x44, 0xdc, - 0x9c, 0xf0, 0xcc, 0xdd, 0x43, 0x5b, 0xc5, 0xae, 0x24, 0x6b, 0x38, 0x77, 0x9c, 0xfd, 0x6d, 0xff, - 0x5a, 0x8e, 0x9f, 0x31, 0xf7, 0x11, 0xba, 0x5e, 0xed, 0x6e, 0x18, 0x30, 0x66, 0x1a, 0x1b, 0xb3, - 0xfa, 0x91, 0xfb, 0xfb, 0x47, 0xfb, 0x46, 0x16, 0x44, 0xe3, 0xc3, 0xce, 0x2c, 0xcb, 0x01, 0x3a, - 0xfe, 0x6e, 0xd5, 0xd8, 0x67, 0xcc, 0xb8, 0x77, 0xd1, 0x2e, 0x2d, 0x25, 0x86, 0x6f, 0x79, 0xd6, - 0xd8, 0xcc, 0x79, 0x77, 0xe8, 0x42, 0xf6, 0x70, 0xeb, 0xc3, 0x59, 0xbb, 0xf6, 0xeb, 0xac, 0x5d, - 0xeb, 0x78, 0xa8, 0xb5, 0xca, 0x98, 0xcf, 0x21, 0xd6, 0x0a, 0x78, 0xe7, 0x35, 0xf2, 0x06, 0x20, - 0x7c, 0x2e, 0x24, 0x58, 0x6e, 0xaa, 0x0e, 0x9f, 0xbf, 0x0b, 0x0c, 0x7b, 0xca, 0x95, 0x8e, 0xdc, - 0x3a, 0xba, 0xc2, 0x66, 0x41, 0xe9, 0xbf, 0x00, 0x6e, 0x0b, 0x6d, 0x33, 0x1e, 0x6b, 0x90, 0x56, - 0x97, 0xce, 0xfd, 0x45, 0x62, 0x49, 0x7f, 0x1f, 0xdd, 0x5f, 0xcf, 0x3f, 0x77, 0xf2, 0x1e, 0xdd, - 0x1e, 0x80, 0x78, 0x91, 0x84, 0x91, 0xb4, 0x55, 0xdf, 0x40, 0x42, 0xc8, 0x47, 0x41, 0x2a, 0x75, - 0x62, 0xdc, 0xe7, 0x68, 0x37, 0x5a, 0xc2, 0xb9, 0x9f, 0x9d, 0xde, 0x01, 0x96, 0x21, 0xc5, 0xcb, - 0xc3, 0xc2, 0x4b, 0xe3, 0x49, 0xbb, 0x78, 0x99, 0xc3, 0xbf, 0xc0, 0xb0, 0xb0, 0xd9, 0xfb, 0xb6, - 0x81, 0x36, 0x07, 0x20, 0xdc, 0x4f, 0x0e, 0xba, 0xf9, 0xf7, 0x14, 0x1f, 0xe3, 0x4b, 0xdc, 0x4f, - 0xbc, 0xea, 0x9c, 0x9b, 0xfd, 0x7f, 0x5e, 0x5a, 0x1d, 0x8c, 0xfb, 0xc5, 0x41, 0xb7, 0xd6, 0x0d, - 0xe8, 0xf8, 0xb2, 0x12, 0x6b, 0x48, 0x9a, 0x27, 0xff, 0x81, 0xa4, 0x72, 0x7c, 0xf4, 0xf2, 0xeb, - 0xc4, 0x73, 0xce, 0x27, 0x9e, 0xf3, 0x73, 0xe2, 0x39, 0x1f, 0xa7, 0x5e, 0xed, 0x7c, 0xea, 0xd5, - 0xbe, 0x4f, 0xbd, 0xda, 0xab, 0x27, 0x42, 0xda, 0x51, 0x12, 0x62, 0xaa, 0xa3, 0xf2, 0x35, 0x92, - 0x85, 0xee, 0x83, 0xf9, 0x47, 0x91, 0xf6, 0xc8, 0xe9, 0xc5, 0xdf, 0xc2, 0x66, 0x31, 0x87, 0xf0, - 0x6a, 0xfe, 0xdc, 0x1e, 0xfe, 0x09, 0x00, 0x00, 0xff, 0xff, 0xd8, 0x5c, 0x30, 0xf0, 0x5e, 0x04, - 0x00, 0x00, + // 547 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0x4d, 0x6b, 0x13, 0x41, + 0x18, 0xce, 0xb6, 0xa8, 0xed, 0x34, 0x0a, 0x2e, 0x39, 0xa4, 0x31, 0x6e, 0x34, 0xa2, 0xf6, 0x50, + 0x77, 0x48, 0x3c, 0x88, 0x05, 0x0f, 0x69, 0xbd, 0x48, 0x09, 0xc8, 0x7a, 0x10, 0x3c, 0x18, 0x76, + 0x67, 0xc6, 0xc9, 0x60, 0x76, 0x66, 0x99, 0x77, 0x76, 0xed, 0xfe, 0x03, 0x8f, 0x7a, 0x12, 0x6f, + 0xfd, 0x07, 0xfe, 0x0d, 0xc1, 0x4b, 0x8f, 0x9e, 0x44, 0x92, 0x8b, 0x67, 0x7f, 0x81, 0x64, 0x3f, + 0x92, 0x2d, 0x86, 0x50, 0xc4, 0xdb, 0xfb, 0xf1, 0xcc, 0xf3, 0x3c, 0x2f, 0xef, 0xcc, 0xa0, 0x7d, + 0x21, 0x0d, 0xd3, 0x64, 0xec, 0x0b, 0x39, 0x02, 0x46, 0x62, 0x2d, 0x4c, 0x8a, 0x09, 0x49, 0x70, + 0xa4, 0x55, 0x22, 0x28, 0xd3, 0x38, 0xe9, 0x61, 0x73, 0xe2, 0x46, 0x5a, 0x19, 0x65, 0xdf, 0x59, + 0x81, 0x76, 0x09, 0x49, 0xdc, 0x12, 0xed, 0x26, 0xbd, 0x56, 0x9b, 0x2b, 0xc5, 0x27, 0x0c, 0xfb, + 0x91, 0xc0, 0xbe, 0x94, 0xca, 0xf8, 0x46, 0x28, 0x09, 0x39, 0x45, 0xab, 0xc1, 0x15, 0x57, 0x59, + 0x88, 0xe7, 0x51, 0x51, 0xdd, 0x25, 0x0a, 0x42, 0x05, 0xa3, 0xbc, 0x91, 0x27, 0x65, 0xab, 0xa0, + 0xcb, 0xb2, 0x20, 0x7e, 0x83, 0x7d, 0x99, 0x16, 0x2d, 0x2c, 0x02, 0x82, 0x27, 0x82, 0x8f, 0x0d, + 0x99, 0x08, 0x26, 0x0d, 0x60, 0xc3, 0x24, 0x65, 0x3a, 0x14, 0xd2, 0x64, 0xbe, 0x17, 0x59, 0x7e, + 0xa0, 0xfb, 0xc9, 0x42, 0x8d, 0x21, 0xf0, 0x01, 0x80, 0xe0, 0xf2, 0x48, 0x49, 0x88, 0x43, 0xa6, + 0x8f, 0x59, 0x6a, 0xef, 0xa2, 0xad, 0x7c, 0x2a, 0x41, 0x9b, 0xd6, 0x2d, 0x6b, 0x6f, 0xdb, 0xbb, + 0x92, 0xe5, 0xcf, 0xa8, 0xfd, 0x08, 0x5d, 0x2d, 0xa7, 0x1b, 0xf9, 0x94, 0xea, 0xe6, 0xc6, 0xbc, + 0x7f, 0x68, 0xff, 0xfe, 0xd1, 0xb9, 0x96, 0xfa, 0xe1, 0xe4, 0xa0, 0x3b, 0xaf, 0x32, 0x80, 0xae, + 0x57, 0x2f, 0x81, 0x03, 0x4a, 0xb5, 0x7d, 0x1b, 0xd5, 0x49, 0x21, 0x31, 0x7a, 0xcb, 0xd2, 0xe6, + 0x66, 0xc6, 0xbb, 0x43, 0x96, 0xb2, 0x07, 0x5b, 0xef, 0x4f, 0x3b, 0xb5, 0x5f, 0xa7, 0x9d, 0x5a, + 0xd7, 0x41, 0xed, 0x55, 0xc6, 0x3c, 0x06, 0x91, 0x92, 0xc0, 0xba, 0xaf, 0x91, 0x33, 0x04, 0xee, + 0x31, 0x2e, 0xc0, 0x30, 0x5d, 0x22, 0x3c, 0xf6, 0xce, 0xd7, 0xf4, 0x29, 0x93, 0x2a, 0xb4, 0x1b, + 0xe8, 0x12, 0x9d, 0x07, 0x85, 0xff, 0x3c, 0xb1, 0xdb, 0x68, 0x9b, 0xb2, 0x48, 0x81, 0x30, 0xaa, + 0x70, 0xee, 0x2d, 0x0b, 0x15, 0xfd, 0x3d, 0x74, 0x6f, 0x3d, 0xff, 0xc2, 0xc9, 0x67, 0x0b, 0xdd, + 0x1c, 0x02, 0x7f, 0x11, 0x07, 0xa1, 0x30, 0x25, 0x70, 0x28, 0x20, 0x60, 0x63, 0x3f, 0x11, 0x2a, + 0xd6, 0x73, 0x4d, 0xc8, 0xba, 0x86, 0xe9, 0xc2, 0xcd, 0xb2, 0x60, 0x3f, 0x47, 0xf5, 0xb0, 0x82, + 0xce, 0x4c, 0xed, 0xf4, 0xf7, 0x5d, 0x11, 0x10, 0xb7, 0xba, 0x4b, 0xb7, 0xb2, 0xbd, 0xa4, 0xe7, + 0x56, 0x15, 0xbc, 0x73, 0x0c, 0x95, 0x29, 0xee, 0xa3, 0xbb, 0x6b, 0xad, 0x95, 0x43, 0xf4, 0xbf, + 0x6d, 0xa0, 0xcd, 0x21, 0x70, 0xfb, 0xa3, 0x85, 0xae, 0xff, 0x7d, 0x1b, 0x1e, 0xbb, 0x17, 0xb8, + 0xe7, 0xee, 0xaa, 0x7d, 0xb5, 0x06, 0xff, 0x7c, 0xb4, 0xf4, 0x66, 0x7f, 0xb1, 0xd0, 0x8d, 0x75, + 0x8b, 0x3e, 0xba, 0xa8, 0xc4, 0x1a, 0x92, 0xd6, 0xf1, 0x7f, 0x20, 0x29, 0x1d, 0x1f, 0xbe, 0xfc, + 0x3a, 0x75, 0xac, 0xb3, 0xa9, 0x63, 0xfd, 0x9c, 0x3a, 0xd6, 0x87, 0x99, 0x53, 0x3b, 0x9b, 0x39, + 0xb5, 0xef, 0x33, 0xa7, 0xf6, 0xea, 0x09, 0x17, 0x66, 0x1c, 0x07, 0x2e, 0x51, 0x61, 0xf1, 0xaa, + 0xf1, 0x52, 0xf7, 0xc1, 0xe2, 0xc3, 0x49, 0xfa, 0xf8, 0xe4, 0xfc, 0xaf, 0x63, 0xd2, 0x88, 0x41, + 0x70, 0x39, 0x7b, 0xb6, 0x0f, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0x80, 0xfb, 0xc7, 0x36, 0xa6, + 0x04, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -555,11 +594,41 @@ func (m *MsgSubmitConsumerMisbehaviour) MarshalToSizedBuffer(dAtA []byte) (int, i = encodeVarintTx(dAtA, i, uint64(size)) } i-- + dAtA[i] = 0x12 + } + if len(m.Submitter) > 0 { + i -= len(m.Submitter) + copy(dAtA[i:], m.Submitter) + i = encodeVarintTx(dAtA, i, uint64(len(m.Submitter))) + i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } +func (m *MsgSubmitConsumerMisbehaviourResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgSubmitConsumerMisbehaviourResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSubmitConsumerMisbehaviourResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + func encodeVarintTx(dAtA []byte, offset int, v uint64) int { offset -= sovTx(v) base := offset @@ -633,6 +702,10 @@ func (m *MsgSubmitConsumerMisbehaviour) Size() (n int) { } var l int _ = l + l = len(m.Submitter) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } if m.Misbehaviour != nil { l = m.Misbehaviour.Size() n += 1 + l + sovTx(uint64(l)) @@ -640,6 +713,15 @@ func (m *MsgSubmitConsumerMisbehaviour) Size() (n int) { return n } +func (m *MsgSubmitConsumerMisbehaviourResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + func sovTx(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -1036,6 +1118,38 @@ func (m *MsgSubmitConsumerMisbehaviour) Unmarshal(dAtA []byte) error { } switch fieldNum { case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Submitter", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Submitter = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Misbehaviour", wireType) } @@ -1092,6 +1206,56 @@ func (m *MsgSubmitConsumerMisbehaviour) Unmarshal(dAtA []byte) error { } return nil } +func (m *MsgSubmitConsumerMisbehaviourResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgSubmitConsumerMisbehaviourResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgSubmitConsumerMisbehaviourResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func skipTx(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/ccv/types/events.go b/x/ccv/types/events.go index ba71e063f3..0bfb19b548 100644 --- a/x/ccv/types/events.go +++ b/x/ccv/types/events.go @@ -9,6 +9,7 @@ const ( EventTypeConsumerClientCreated = "consumer_client_created" EventTypeAssignConsumerKey = "assign_consumer_key" EventTypeRegisterConsumerRewardDenom = "register_consumer_reward_denom" + EventTypeSubmitConsumerMisbehaviour = "submit_consumer_misbehaviour" EventTypeExecuteConsumerChainSlash = "execute_consumer_chain_slash" EventTypeFeeDistribution = "fee_distribution" @@ -33,6 +34,8 @@ const ( AttributeUnbondingPeriod = "unbonding_period" AttributeProviderValidatorAddress = "provider_validator_address" AttributeConsumerConsensusPubKey = "consumer_consensus_pub_key" + AttributeSubmitterAddress = "provider_validator_address" + AttributeConsumerMisbehaviour = "consumer_consensus_pub_key" AttributeDistributionCurrentHeight = "current_distribution_height" AttributeDistributionNextHeight = "next_distribution_height" From 4750f1f555964ba940eb6a7e65dd8e15b6899de2 Mon Sep 17 00:00:00 2001 From: Simon Noetzlin Date: Wed, 15 Mar 2023 17:13:00 +0100 Subject: [PATCH 04/33] format HandleConsumerMisbehaviour --- tests/integration/misbehaviour.go | 31 +++++- testutil/keeper/mocks.go | 15 +++ x/ccv/provider/keeper/misbehaviour.go | 148 ++++++++++++++++++-------- x/ccv/types/expected_keepers.go | 1 + 4 files changed, 148 insertions(+), 47 deletions(-) diff --git a/tests/integration/misbehaviour.go b/tests/integration/misbehaviour.go index b04c865d41..5ea94ce5ae 100644 --- a/tests/integration/misbehaviour.go +++ b/tests/integration/misbehaviour.go @@ -146,6 +146,35 @@ func (s *CCVTestSuite) TestCheckConsumerMisbehaviour() { }, func() {}, false, + }, { + "different trusted height shouldn't pass", + func() *ibctmtypes.Misbehaviour { + return &ibctmtypes.Misbehaviour{ + ClientId: s.path.EndpointA.ClientID, + Header1: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight+1), + clientHeight, + altTime, + clientTMValset, + clientTMValset, + clientTMValset, + clientSigners, + ), + Header2: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight+1), + heightPlus3, + s.providerCtx().BlockTime(), + clientTMValset, + clientTMValset, + clientTMValset, + clientSigners, + ), + } + }, + func() {}, + false, }, { "trusting period misbehavior should pass", func() *ibctmtypes.Misbehaviour { @@ -224,7 +253,7 @@ func (s *CCVTestSuite) TestCheckConsumerMisbehaviour() { Header2: s.consumerChain.CreateTMClientHeader( s.consumerChain.ChainID, int64(heightPlus5.RevisionHeight+1), - heightPlus3, + clientHeight, altTime, clientTMValset, clientTMValset, diff --git a/testutil/keeper/mocks.go b/testutil/keeper/mocks.go index 8dc42835b1..2e45e5c58d 100644 --- a/testutil/keeper/mocks.go +++ b/testutil/keeper/mocks.go @@ -707,6 +707,21 @@ func (mr *MockClientKeeperMockRecorder) CreateClient(ctx, clientState, consensus return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateClient", reflect.TypeOf((*MockClientKeeper)(nil).CreateClient), ctx, clientState, consensusState) } +// GetClientConsensusState mocks base method. +func (m *MockClientKeeper) GetClientConsensusState(ctx types.Context, clientID string, height exported.Height) (exported.ConsensusState, bool) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetClientConsensusState", ctx, clientID, height) + ret0, _ := ret[0].(exported.ConsensusState) + ret1, _ := ret[1].(bool) + return ret0, ret1 +} + +// GetClientConsensusState indicates an expected call of GetClientConsensusState. +func (mr *MockClientKeeperMockRecorder) GetClientConsensusState(ctx, clientID, height interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetClientConsensusState", reflect.TypeOf((*MockClientKeeper)(nil).GetClientConsensusState), ctx, clientID, height) +} + // GetClientState mocks base method. func (m *MockClientKeeper) GetClientState(ctx types.Context, clientID string) (exported.ClientState, bool) { m.ctrl.T.Helper() diff --git a/x/ccv/provider/keeper/misbehaviour.go b/x/ccv/provider/keeper/misbehaviour.go index 737b272729..5f01be3d50 100644 --- a/x/ccv/provider/keeper/misbehaviour.go +++ b/x/ccv/provider/keeper/misbehaviour.go @@ -2,6 +2,7 @@ package keeper import ( "fmt" + "time" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/ibc-go/v4/modules/core/exported" @@ -9,25 +10,52 @@ import ( tmtypes "github.com/tendermint/tendermint/types" ) -func (k Keeper) CheckConsumerMisbehaviour(ctx sdk.Context, misbeaviour ibctmtypes.Misbehaviour) error { +func (k Keeper) HandleConsumerMisbehaviour(ctx sdk.Context, misbehaviour ibctmtypes.Misbehaviour) error { + if err := k.CheckConsumerMisbehaviour(ctx, misbehaviour); err != nil { + return err + } + + byzantineValidators, err := k.GetByzantineValidators(ctx, misbehaviour) + if err != nil { + return err + } + + logger := ctx.Logger() + logger.Info( + "confirmed equivocation", + "byzantine validators", byzantineValidators, + ) + + return nil +} + +func (k Keeper) CheckConsumerMisbehaviour(ctx sdk.Context, misbehaviour ibctmtypes.Misbehaviour) error { + + clientID := misbehaviour.GetClientID() - clientID := misbeaviour.GetClientID() clientState, found := k.clientKeeper.GetClientState(ctx, clientID) if !found { return fmt.Errorf("types.ErrClientNotFound cannot check misbehaviour for client with ID %s", clientID) } - clientStore := k.clientKeeper.ClientStore(ctx, misbeaviour.GetClientID()) + clientStore := k.clientKeeper.ClientStore(ctx, misbehaviour.GetClientID()) if status := clientState.Status(ctx, clientStore, k.cdc); status != exported.Active { return fmt.Errorf("types.ErrClientNotActive cannot process misbehaviour for client (%s) with status %s", clientID, status) } - if err := misbeaviour.ValidateBasic(); err != nil { + if err := misbehaviour.ValidateBasic(); err != nil { return err } - clientState, err := clientState.CheckMisbehaviourAndUpdateState(ctx, k.cdc, clientStore, &misbeaviour) + trusted, conflicted := misbehaviour.Header1, misbehaviour.Header2 + + // A common trusted height is required to get the byzantine validators who signed both headers + if !trusted.TrustedHeight.EQ(conflicted.TrustedHeight) { + return fmt.Errorf("misbehaviour headers have different trusted height %d != %d", trusted.TrustedHeight, conflicted.TrustedHeight) + } + + clientState, err := clientState.CheckMisbehaviourAndUpdateState(ctx, k.cdc, clientStore, &misbehaviour) if err != nil { return err } @@ -35,61 +63,89 @@ func (k Keeper) CheckConsumerMisbehaviour(ctx sdk.Context, misbeaviour ibctmtype k.clientKeeper.SetClientState(ctx, clientID, clientState) k.Logger(ctx).Info("client frozen due to misbehaviour", "client-id", clientID) - // get byzantine validators - sh, err := tmtypes.SignedHeaderFromProto(misbeaviour.Header1.SignedHeader) + // TBD + // defer func() { + // telemetry.IncrCounterWithLabels( + // []string{"ibc", "client", "misbehaviour"}, + // 1, + // []metrics.Label{ + // telemetry.NewLabel(types.LabelClientType, misbehaviour.ClientType()), + // telemetry.NewLabel(types.LabelClientID, misbehaviour.GetClientID()), + // }, + // ) + // }() + + // EmitSubmitMisbehaviourEvent(ctx, clientID, clientState) + return nil +} + +func (k Keeper) GetByzantineValidators(ctx sdk.Context, misbehaviour ibctmtypes.Misbehaviour) ([]*tmtypes.Validator, error) { + + // + trusted, err := HeaderToLightBlock(*misbehaviour.Header1) if err != nil { - return err + return nil, err } - - vs, err := tmtypes.ValidatorSetFromProto(misbeaviour.Header1.ValidatorSet) + conflicted, err := HeaderToLightBlock(*misbehaviour.Header2) if err != nil { - return err + return nil, err } + commonHeight, commonTs, commonValset, err := k.GetCommonFromMisbehaviour(ctx, misbehaviour) + if err != nil { + return nil, err + } + ev := tmtypes.LightClientAttackEvidence{ - ConflictingBlock: &tmtypes.LightBlock{SignedHeader: sh, ValidatorSet: vs}, + ConflictingBlock: conflicted, } - h2, err := tmtypes.HeaderFromProto(misbeaviour.Header2.Header) - if err != nil { - return err + if ev.ConflictingHeaderIsInvalid(trusted.Header) { + ev.CommonHeight = int64(commonHeight) + ev.Timestamp = commonTs + ev.TotalVotingPower = commonValset.TotalVotingPower() + } else { + ev.CommonHeight = trusted.Header.Height + ev.Timestamp = trusted.Header.Time + ev.TotalVotingPower = trusted.ValidatorSet.TotalVotingPower() } - // WIP: return byzantine validators according to the light client commited + return ev.GetByzantineValidators(commonValset, trusted.SignedHeader), nil +} - // if this is an equivocation or amnesia attack, i.e. the validator sets are the same, then we - // return the height of the conflicting block else if it is a lunatic attack and the validator sets - // are not the same then we send the height of the common header. - if ev.ConflictingHeaderIsInvalid(&h2) { - ev.CommonHeight = misbeaviour.Header2.Header.Height - ev.Timestamp = misbeaviour.Header2.Header.Time - ev.TotalVotingPower = misbeaviour.Header2.ValidatorSet.TotalVotingPower - } else { - ev.CommonHeight = misbeaviour.Header1.Header.Height - ev.Timestamp = misbeaviour.Header1.Header.Time - ev.TotalVotingPower = misbeaviour.Header1.ValidatorSet.TotalVotingPower +func (k Keeper) GetCommonFromMisbehaviour(ctx sdk.Context, misbehaviour ibctmtypes.Misbehaviour) (int64, time.Time, *tmtypes.ValidatorSet, error) { + + // A common trusted height is required + commonHeight := misbehaviour.Header1.TrustedHeight + if !commonHeight.EQ(misbehaviour.Header2.TrustedHeight) { + return 0, time.Time{}, nil, fmt.Errorf("misbehaviour headers have different trusted height: %v , %v", commonHeight, misbehaviour.Header2.TrustedHeight) } - ev.ByzantineValidators = ev.GetByzantineValidators(vs, sh) - logger := ctx.Logger() + cs, ok := k.clientKeeper.GetClientConsensusState(ctx, misbehaviour.GetClientID(), misbehaviour.Header1.TrustedHeight) + if !ok { + return 0, time.Time{}, nil, fmt.Errorf("cannot find consensus state at trusted height %d for client %s", commonHeight, misbehaviour.GetClientID()) + } - logger.Info( - "confirmed equivocation", - "byzantine validators", ev.ByzantineValidators, - ) + vs, err := tmtypes.ValidatorSetFromProto(misbehaviour.Header1.ValidatorSet) + if err != nil { + return 0, time.Time{}, nil, err + } - // TBD - // defer func() { - // telemetry.IncrCounterWithLabels( - // []string{"ibc", "client", "misbehaviour"}, - // 1, - // []metrics.Label{ - // telemetry.NewLabel(types.LabelClientType, misbehaviour.ClientType()), - // telemetry.NewLabel(types.LabelClientID, misbehaviour.GetClientID()), - // }, - // ) - // }() + return int64(commonHeight.RevisionHeight), time.Unix(0, int64(cs.GetTimestamp())), vs, nil +} - // EmitSubmitMisbehaviourEvent(ctx, clientID, clientState) +func HeaderToLightBlock(h ibctmtypes.Header) (*tmtypes.LightBlock, error) { + sh, err := tmtypes.SignedHeaderFromProto(h.SignedHeader) + if err != nil { + return nil, err + } - return nil + vs, err := tmtypes.ValidatorSetFromProto(h.ValidatorSet) + if err != nil { + return nil, err + } + + return &tmtypes.LightBlock{ + SignedHeader: sh, + ValidatorSet: vs, + }, nil } diff --git a/x/ccv/types/expected_keepers.go b/x/ccv/types/expected_keepers.go index 5280cb8b8d..d24400b114 100644 --- a/x/ccv/types/expected_keepers.go +++ b/x/ccv/types/expected_keepers.go @@ -88,6 +88,7 @@ type ClientKeeper interface { GetSelfConsensusState(ctx sdk.Context, height ibcexported.Height) (ibcexported.ConsensusState, error) ClientStore(ctx sdk.Context, clientID string) sdk.KVStore SetClientState(ctx sdk.Context, clientID string, clientState ibcexported.ClientState) + GetClientConsensusState(ctx sdk.Context, clientID string, height ibcexported.Height) (ibcexported.ConsensusState, bool) } // DistributionKeeper defines the expected interface of the distribution keeper From 2e5f8afcbb418384353489f54f44781a6095bb87 Mon Sep 17 00:00:00 2001 From: Simon Noetzlin Date: Mon, 13 Mar 2023 10:06:30 +0100 Subject: [PATCH 05/33] add tx handler --- .../ccv/provider/v1/tx.proto | 4 + x/ccv/provider/client/cli/tx.go | 41 +++++++ x/ccv/provider/keeper/misbehaviour.go | 77 +++++++----- x/ccv/provider/keeper/msg_server.go | 17 +++ x/ccv/provider/types/tx.pb.go | 112 ++++++++++++------ x/ccv/types/events.go | 9 +- 6 files changed, 187 insertions(+), 73 deletions(-) diff --git a/proto/interchain_security/ccv/provider/v1/tx.proto b/proto/interchain_security/ccv/provider/v1/tx.proto index f6d06b4bb3..5e256d097a 100644 --- a/proto/interchain_security/ccv/provider/v1/tx.proto +++ b/proto/interchain_security/ccv/provider/v1/tx.proto @@ -13,6 +13,7 @@ import "ibc/lightclients/tendermint/v1/tendermint.proto"; service Msg { rpc AssignConsumerKey(MsgAssignConsumerKey) returns (MsgAssignConsumerKeyResponse); rpc RegisterConsumerRewardDenom(MsgRegisterConsumerRewardDenom) returns (MsgRegisterConsumerRewardDenomResponse); + rpc SubmitConsumerMisbehaviour(MsgSubmitConsumerMisbehaviour) returns (MsgSubmitConsumerMisbehaviourResponse); } message MsgAssignConsumerKey { @@ -45,6 +46,9 @@ message MsgRegisterConsumerRewardDenom { // MsgRegisterConsumerRewardDenomResponse defines the Msg/RegisterConsumerRewardDenom response type. message MsgRegisterConsumerRewardDenomResponse {} // MsgSubmitConsumerMisbehaviour reports a consumer chain Misbehaviour + +// MsgSubmitConsumerMisbehaviour defines a message that reports a misbehaviour +// observed on a consumer chain message MsgSubmitConsumerMisbehaviour { option (gogoproto.equal) = false; option (gogoproto.goproto_getters) = false; diff --git a/x/ccv/provider/client/cli/tx.go b/x/ccv/provider/client/cli/tx.go index 73b1df34c3..87b4179b0b 100644 --- a/x/ccv/provider/client/cli/tx.go +++ b/x/ccv/provider/client/cli/tx.go @@ -12,6 +12,7 @@ import ( "github.com/cosmos/cosmos-sdk/version" sdk "github.com/cosmos/cosmos-sdk/types" + ibctmtypes "github.com/cosmos/ibc-go/v4/modules/light-clients/07-tendermint/types" "github.com/cosmos/interchain-security/v2/x/ccv/provider/types" ) @@ -27,6 +28,7 @@ func GetTxCmd() *cobra.Command { cmd.AddCommand(NewAssignConsumerKeyCmd()) cmd.AddCommand(NewRegisterConsumerRewardDenomCmd()) + cmd.AddCommand(NewSubmitConsumerMisbehaviourCmd()) return cmd } @@ -99,3 +101,42 @@ $ %s tx provider register-consumer-reward-denom untrn --from mykey return cmd } + +func NewSubmitConsumerMisbehaviourCmd() *cobra.Command { + cmd := &cobra.Command{ + Use: "submit-consumer-misbehaviour [misbeaviour]", + Short: "submit a light client misbehaviour for a consumer chain", + Args: cobra.ExactArgs(1), + RunE: func(cmd *cobra.Command, args []string) error { + clientCtx, err := client.GetClientTxContext(cmd) + if err != nil { + return err + } + + txf := tx.NewFactoryCLI(clientCtx, cmd.Flags()). + WithTxConfig(clientCtx.TxConfig).WithAccountRetriever(clientCtx.AccountRetriever) + + submitter := clientCtx.GetFromAddress() + var misbehavior ibctmtypes.Misbehaviour + if err := clientCtx.Codec.UnmarshalInterfaceJSON([]byte(args[1]), &misbehavior); err != nil { + return err + } + + msg, err := types.NewMsgSubmitConsumerMisbehaviour(submitter, &misbehavior) + if err != nil { + return err + } + if err := msg.ValidateBasic(); err != nil { + return err + } + + return tx.GenerateOrBroadcastTxWithFactory(clientCtx, txf, msg) + }, + } + + flags.AddTxFlagsToCmd(cmd) + + _ = cmd.MarkFlagRequired(flags.FlagFrom) + + return cmd +} diff --git a/x/ccv/provider/keeper/misbehaviour.go b/x/ccv/provider/keeper/misbehaviour.go index 5f01be3d50..fcdb122602 100644 --- a/x/ccv/provider/keeper/misbehaviour.go +++ b/x/ccv/provider/keeper/misbehaviour.go @@ -10,58 +10,73 @@ import ( tmtypes "github.com/tendermint/tendermint/types" ) -func (k Keeper) HandleConsumerMisbehaviour(ctx sdk.Context, misbehaviour ibctmtypes.Misbehaviour) error { - if err := k.CheckConsumerMisbehaviour(ctx, misbehaviour); err != nil { - return err - } - - byzantineValidators, err := k.GetByzantineValidators(ctx, misbehaviour) - if err != nil { - return err - } - - logger := ctx.Logger() - logger.Info( - "confirmed equivocation", - "byzantine validators", byzantineValidators, - ) - - return nil -} - -func (k Keeper) CheckConsumerMisbehaviour(ctx sdk.Context, misbehaviour ibctmtypes.Misbehaviour) error { - - clientID := misbehaviour.GetClientID() +func (k Keeper) CheckConsumerMisbehaviour(ctx sdk.Context, misbeaviour ibctmtypes.Misbehaviour) error { + clientID := misbeaviour.GetClientID() clientState, found := k.clientKeeper.GetClientState(ctx, clientID) if !found { return fmt.Errorf("types.ErrClientNotFound cannot check misbehaviour for client with ID %s", clientID) } - clientStore := k.clientKeeper.ClientStore(ctx, misbehaviour.GetClientID()) + clientStore := k.clientKeeper.ClientStore(ctx, misbeaviour.GetClientID()) if status := clientState.Status(ctx, clientStore, k.cdc); status != exported.Active { return fmt.Errorf("types.ErrClientNotActive cannot process misbehaviour for client (%s) with status %s", clientID, status) } - if err := misbehaviour.ValidateBasic(); err != nil { + if err := misbeaviour.ValidateBasic(); err != nil { return err } - trusted, conflicted := misbehaviour.Header1, misbehaviour.Header2 + clientState, err := clientState.CheckMisbehaviourAndUpdateState(ctx, k.cdc, clientStore, &misbeaviour) + if err != nil { + return err + } - // A common trusted height is required to get the byzantine validators who signed both headers - if !trusted.TrustedHeight.EQ(conflicted.TrustedHeight) { - return fmt.Errorf("misbehaviour headers have different trusted height %d != %d", trusted.TrustedHeight, conflicted.TrustedHeight) + k.clientKeeper.SetClientState(ctx, clientID, clientState) + k.Logger(ctx).Info("client frozen due to misbehaviour", "client-id", clientID) + + // get byzantine validators + sh, err := tmtypes.SignedHeaderFromProto(misbeaviour.Header1.SignedHeader) + if err != nil { + return err } - clientState, err := clientState.CheckMisbehaviourAndUpdateState(ctx, k.cdc, clientStore, &misbehaviour) + vs, err := tmtypes.ValidatorSetFromProto(misbeaviour.Header1.ValidatorSet) if err != nil { return err } + ev := tmtypes.LightClientAttackEvidence{ + ConflictingBlock: &tmtypes.LightBlock{SignedHeader: sh, ValidatorSet: vs}, + } - k.clientKeeper.SetClientState(ctx, clientID, clientState) - k.Logger(ctx).Info("client frozen due to misbehaviour", "client-id", clientID) + h2, err := tmtypes.HeaderFromProto(misbeaviour.Header2.Header) + if err != nil { + return err + } + + // WIP: return byzantine validators according to the light client commited + + // if this is an equivocation or amnesia attack, i.e. the validator sets are the same, then we + // return the height of the conflicting block else if it is a lunatic attack and the validator sets + // are not the same then we send the height of the common header. + if ev.ConflictingHeaderIsInvalid(&h2) { + ev.CommonHeight = misbeaviour.Header2.Header.Height + ev.Timestamp = misbeaviour.Header2.Header.Time + ev.TotalVotingPower = misbeaviour.Header2.ValidatorSet.TotalVotingPower + } else { + ev.CommonHeight = misbeaviour.Header1.Header.Height + ev.Timestamp = misbeaviour.Header1.Header.Time + ev.TotalVotingPower = misbeaviour.Header1.ValidatorSet.TotalVotingPower + } + ev.ByzantineValidators = ev.GetByzantineValidators(vs, sh) + + logger := ctx.Logger() + + logger.Info( + "confirmed equivocation", + "byzantine validators", ev.ByzantineValidators, + ) // TBD // defer func() { diff --git a/x/ccv/provider/keeper/msg_server.go b/x/ccv/provider/keeper/msg_server.go index ea5ff66220..f675423c69 100644 --- a/x/ccv/provider/keeper/msg_server.go +++ b/x/ccv/provider/keeper/msg_server.go @@ -126,3 +126,20 @@ func (k msgServer) RegisterConsumerRewardDenom(goCtx context.Context, msg *types return &types.MsgRegisterConsumerRewardDenomResponse{}, nil } + +func (k msgServer) SubmitConsumerMisbehaviour(goCtx context.Context, msg *types.MsgSubmitConsumerMisbehaviour) (*types.MsgSubmitConsumerMisbehaviourResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + if err := k.Keeper.CheckConsumerMisbehaviour(ctx, *msg.Misbehaviour); err != nil { + return &types.MsgSubmitConsumerMisbehaviourResponse{}, err + } + + ctx.EventManager().EmitEvents(sdk.Events{ + sdk.NewEvent( + ccvtypes.EventTypeSubmitConsumerMisbehaviour, + sdk.NewAttribute(ccvtypes.AttributeConsumerMisbehaviour, msg.Misbehaviour.String()), + sdk.NewAttribute(ccvtypes.AttributeSubmitterAddress, msg.Submitter), + ), + }) + + return &types.MsgSubmitConsumerMisbehaviourResponse{}, nil +} diff --git a/x/ccv/provider/types/tx.pb.go b/x/ccv/provider/types/tx.pb.go index 4a82c5afc6..61b59ecd8c 100644 --- a/x/ccv/provider/types/tx.pb.go +++ b/x/ccv/provider/types/tx.pb.go @@ -192,7 +192,8 @@ func (m *MsgRegisterConsumerRewardDenomResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgRegisterConsumerRewardDenomResponse proto.InternalMessageInfo -// MsgSubmitConsumerMisbehaviour reports a consumer chain Misbehaviour +// MsgSubmitConsumerMisbehaviour defines a message that reports a misbehaviour +// observed on a consumer chain type MsgSubmitConsumerMisbehaviour struct { Submitter string `protobuf:"bytes,1,opt,name=submitter,proto3" json:"submitter,omitempty"` // The Misbehaviour of the consumer chain wrapping @@ -283,42 +284,43 @@ func init() { } var fileDescriptor_43221a4391e9fbf4 = []byte{ - // 547 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0x4d, 0x6b, 0x13, 0x41, - 0x18, 0xce, 0xb6, 0xa8, 0xed, 0x34, 0x0a, 0x2e, 0x39, 0xa4, 0x31, 0x6e, 0x34, 0xa2, 0xf6, 0x50, - 0x77, 0x48, 0x3c, 0x88, 0x05, 0x0f, 0x69, 0xbd, 0x48, 0x09, 0xc8, 0x7a, 0x10, 0x3c, 0x18, 0x76, - 0x67, 0xc6, 0xc9, 0x60, 0x76, 0x66, 0x99, 0x77, 0x76, 0xed, 0xfe, 0x03, 0x8f, 0x7a, 0x12, 0x6f, - 0xfd, 0x07, 0xfe, 0x0d, 0xc1, 0x4b, 0x8f, 0x9e, 0x44, 0x92, 0x8b, 0x67, 0x7f, 0x81, 0x64, 0x3f, - 0x92, 0x2d, 0x86, 0x50, 0xc4, 0xdb, 0xfb, 0xf1, 0xcc, 0xf3, 0x3c, 0x2f, 0xef, 0xcc, 0xa0, 0x7d, - 0x21, 0x0d, 0xd3, 0x64, 0xec, 0x0b, 0x39, 0x02, 0x46, 0x62, 0x2d, 0x4c, 0x8a, 0x09, 0x49, 0x70, - 0xa4, 0x55, 0x22, 0x28, 0xd3, 0x38, 0xe9, 0x61, 0x73, 0xe2, 0x46, 0x5a, 0x19, 0x65, 0xdf, 0x59, - 0x81, 0x76, 0x09, 0x49, 0xdc, 0x12, 0xed, 0x26, 0xbd, 0x56, 0x9b, 0x2b, 0xc5, 0x27, 0x0c, 0xfb, - 0x91, 0xc0, 0xbe, 0x94, 0xca, 0xf8, 0x46, 0x28, 0x09, 0x39, 0x45, 0xab, 0xc1, 0x15, 0x57, 0x59, - 0x88, 0xe7, 0x51, 0x51, 0xdd, 0x25, 0x0a, 0x42, 0x05, 0xa3, 0xbc, 0x91, 0x27, 0x65, 0xab, 0xa0, - 0xcb, 0xb2, 0x20, 0x7e, 0x83, 0x7d, 0x99, 0x16, 0x2d, 0x2c, 0x02, 0x82, 0x27, 0x82, 0x8f, 0x0d, - 0x99, 0x08, 0x26, 0x0d, 0x60, 0xc3, 0x24, 0x65, 0x3a, 0x14, 0xd2, 0x64, 0xbe, 0x17, 0x59, 0x7e, - 0xa0, 0xfb, 0xc9, 0x42, 0x8d, 0x21, 0xf0, 0x01, 0x80, 0xe0, 0xf2, 0x48, 0x49, 0x88, 0x43, 0xa6, - 0x8f, 0x59, 0x6a, 0xef, 0xa2, 0xad, 0x7c, 0x2a, 0x41, 0x9b, 0xd6, 0x2d, 0x6b, 0x6f, 0xdb, 0xbb, - 0x92, 0xe5, 0xcf, 0xa8, 0xfd, 0x08, 0x5d, 0x2d, 0xa7, 0x1b, 0xf9, 0x94, 0xea, 0xe6, 0xc6, 0xbc, - 0x7f, 0x68, 0xff, 0xfe, 0xd1, 0xb9, 0x96, 0xfa, 0xe1, 0xe4, 0xa0, 0x3b, 0xaf, 0x32, 0x80, 0xae, - 0x57, 0x2f, 0x81, 0x03, 0x4a, 0xb5, 0x7d, 0x1b, 0xd5, 0x49, 0x21, 0x31, 0x7a, 0xcb, 0xd2, 0xe6, - 0x66, 0xc6, 0xbb, 0x43, 0x96, 0xb2, 0x07, 0x5b, 0xef, 0x4f, 0x3b, 0xb5, 0x5f, 0xa7, 0x9d, 0x5a, - 0xd7, 0x41, 0xed, 0x55, 0xc6, 0x3c, 0x06, 0x91, 0x92, 0xc0, 0xba, 0xaf, 0x91, 0x33, 0x04, 0xee, - 0x31, 0x2e, 0xc0, 0x30, 0x5d, 0x22, 0x3c, 0xf6, 0xce, 0xd7, 0xf4, 0x29, 0x93, 0x2a, 0xb4, 0x1b, - 0xe8, 0x12, 0x9d, 0x07, 0x85, 0xff, 0x3c, 0xb1, 0xdb, 0x68, 0x9b, 0xb2, 0x48, 0x81, 0x30, 0xaa, - 0x70, 0xee, 0x2d, 0x0b, 0x15, 0xfd, 0x3d, 0x74, 0x6f, 0x3d, 0xff, 0xc2, 0xc9, 0x67, 0x0b, 0xdd, - 0x1c, 0x02, 0x7f, 0x11, 0x07, 0xa1, 0x30, 0x25, 0x70, 0x28, 0x20, 0x60, 0x63, 0x3f, 0x11, 0x2a, - 0xd6, 0x73, 0x4d, 0xc8, 0xba, 0x86, 0xe9, 0xc2, 0xcd, 0xb2, 0x60, 0x3f, 0x47, 0xf5, 0xb0, 0x82, - 0xce, 0x4c, 0xed, 0xf4, 0xf7, 0x5d, 0x11, 0x10, 0xb7, 0xba, 0x4b, 0xb7, 0xb2, 0xbd, 0xa4, 0xe7, - 0x56, 0x15, 0xbc, 0x73, 0x0c, 0x95, 0x29, 0xee, 0xa3, 0xbb, 0x6b, 0xad, 0x95, 0x43, 0xf4, 0xbf, - 0x6d, 0xa0, 0xcd, 0x21, 0x70, 0xfb, 0xa3, 0x85, 0xae, 0xff, 0x7d, 0x1b, 0x1e, 0xbb, 0x17, 0xb8, - 0xe7, 0xee, 0xaa, 0x7d, 0xb5, 0x06, 0xff, 0x7c, 0xb4, 0xf4, 0x66, 0x7f, 0xb1, 0xd0, 0x8d, 0x75, - 0x8b, 0x3e, 0xba, 0xa8, 0xc4, 0x1a, 0x92, 0xd6, 0xf1, 0x7f, 0x20, 0x29, 0x1d, 0x1f, 0xbe, 0xfc, - 0x3a, 0x75, 0xac, 0xb3, 0xa9, 0x63, 0xfd, 0x9c, 0x3a, 0xd6, 0x87, 0x99, 0x53, 0x3b, 0x9b, 0x39, - 0xb5, 0xef, 0x33, 0xa7, 0xf6, 0xea, 0x09, 0x17, 0x66, 0x1c, 0x07, 0x2e, 0x51, 0x61, 0xf1, 0xaa, - 0xf1, 0x52, 0xf7, 0xc1, 0xe2, 0xc3, 0x49, 0xfa, 0xf8, 0xe4, 0xfc, 0xaf, 0x63, 0xd2, 0x88, 0x41, - 0x70, 0x39, 0x7b, 0xb6, 0x0f, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0x80, 0xfb, 0xc7, 0x36, 0xa6, - 0x04, 0x00, 0x00, + // 568 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0x3f, 0x6f, 0x13, 0x4f, + 0x10, 0xf5, 0xfd, 0xa2, 0x1f, 0x24, 0x9b, 0x80, 0xc4, 0xc9, 0x85, 0x73, 0x98, 0x33, 0x18, 0x01, + 0x29, 0xc2, 0xae, 0x6c, 0x0a, 0x44, 0x24, 0x0a, 0x3b, 0x34, 0x10, 0x59, 0x42, 0x47, 0x81, 0x44, + 0x81, 0x75, 0xb7, 0xbb, 0xac, 0x57, 0xf8, 0x76, 0x4f, 0xbb, 0x7b, 0x47, 0xee, 0x1b, 0x50, 0x42, + 0x85, 0xe8, 0xf2, 0x01, 0x90, 0xf8, 0x1a, 0x94, 0x29, 0xa9, 0x10, 0xb2, 0x1b, 0x6a, 0x4a, 0x2a, + 0xe4, 0xfb, 0x63, 0x5f, 0x84, 0xb1, 0x2c, 0xa0, 0xdb, 0x99, 0x79, 0xfb, 0xde, 0x1b, 0xcd, 0x68, + 0xc0, 0x3e, 0x17, 0x86, 0x2a, 0x3c, 0xf2, 0xb9, 0x18, 0x6a, 0x8a, 0x63, 0xc5, 0x4d, 0x8a, 0x30, + 0x4e, 0x50, 0xa4, 0x64, 0xc2, 0x09, 0x55, 0x28, 0xe9, 0x20, 0x73, 0x0c, 0x23, 0x25, 0x8d, 0xb4, + 0xaf, 0x2f, 0x41, 0x43, 0x8c, 0x13, 0x58, 0xa2, 0x61, 0xd2, 0x71, 0x9a, 0x4c, 0x4a, 0x36, 0xa6, + 0xc8, 0x8f, 0x38, 0xf2, 0x85, 0x90, 0xc6, 0x37, 0x5c, 0x0a, 0x9d, 0x53, 0x38, 0x75, 0x26, 0x99, + 0xcc, 0x9e, 0x68, 0xf6, 0x2a, 0xb2, 0xbb, 0x58, 0xea, 0x50, 0xea, 0x61, 0x5e, 0xc8, 0x83, 0xb2, + 0x54, 0xd0, 0x65, 0x51, 0x10, 0xbf, 0x40, 0xbe, 0x48, 0x8b, 0x12, 0xe2, 0x01, 0x46, 0x63, 0xce, + 0x46, 0x06, 0x8f, 0x39, 0x15, 0x46, 0x23, 0x43, 0x05, 0xa1, 0x2a, 0xe4, 0xc2, 0x64, 0xbe, 0xe7, + 0x51, 0xfe, 0xa1, 0xfd, 0xce, 0x02, 0xf5, 0x81, 0x66, 0x3d, 0xad, 0x39, 0x13, 0x87, 0x52, 0xe8, + 0x38, 0xa4, 0xea, 0x88, 0xa6, 0xf6, 0x2e, 0xd8, 0xcc, 0xbb, 0xe2, 0xa4, 0x61, 0x5d, 0xb5, 0xf6, + 0xb6, 0xbc, 0xf3, 0x59, 0xfc, 0x90, 0xd8, 0x77, 0xc1, 0x85, 0xb2, 0xbb, 0xa1, 0x4f, 0x88, 0x6a, + 0xfc, 0x37, 0xab, 0xf7, 0xed, 0xef, 0x5f, 0x5a, 0x17, 0x53, 0x3f, 0x1c, 0x1f, 0xb4, 0x67, 0x59, + 0xaa, 0x75, 0xdb, 0xdb, 0x29, 0x81, 0x3d, 0x42, 0x94, 0x7d, 0x0d, 0xec, 0xe0, 0x42, 0x62, 0xf8, + 0x92, 0xa6, 0x8d, 0x8d, 0x8c, 0x77, 0x1b, 0x2f, 0x64, 0x0f, 0x36, 0x5f, 0x9f, 0xb4, 0x6a, 0xdf, + 0x4e, 0x5a, 0xb5, 0xb6, 0x0b, 0x9a, 0xcb, 0x8c, 0x79, 0x54, 0x47, 0x52, 0x68, 0xda, 0x7e, 0x0e, + 0xdc, 0x81, 0x66, 0x1e, 0x65, 0x5c, 0x1b, 0xaa, 0x4a, 0x84, 0x47, 0x5f, 0xf9, 0x8a, 0x3c, 0xa0, + 0x42, 0x86, 0x76, 0x1d, 0xfc, 0x4f, 0x66, 0x8f, 0xc2, 0x7f, 0x1e, 0xd8, 0x4d, 0xb0, 0x45, 0x68, + 0x24, 0x35, 0x37, 0xb2, 0x70, 0xee, 0x2d, 0x12, 0x15, 0xfd, 0x3d, 0x70, 0x73, 0x35, 0xff, 0xdc, + 0xc9, 0x7b, 0x0b, 0x5c, 0x19, 0x68, 0xf6, 0x24, 0x0e, 0x42, 0x6e, 0x4a, 0xe0, 0x80, 0xeb, 0x80, + 0x8e, 0xfc, 0x84, 0xcb, 0x58, 0xcd, 0x34, 0x75, 0x56, 0x35, 0x54, 0x15, 0x6e, 0x16, 0x09, 0xfb, + 0x31, 0xd8, 0x09, 0x2b, 0xe8, 0xcc, 0xd4, 0x76, 0x77, 0x1f, 0xf2, 0x00, 0xc3, 0xea, 0x2c, 0x61, + 0x65, 0x7a, 0x49, 0x07, 0x56, 0x15, 0xbc, 0x33, 0x0c, 0x95, 0x2e, 0x6e, 0x81, 0x1b, 0x2b, 0xad, + 0x95, 0x4d, 0x74, 0x7f, 0x6c, 0x80, 0x8d, 0x81, 0x66, 0xf6, 0x5b, 0x0b, 0x5c, 0xfa, 0x75, 0x1b, + 0xee, 0xc1, 0x35, 0xf6, 0x1c, 0x2e, 0x9b, 0x97, 0xd3, 0xfb, 0xe3, 0xaf, 0xa5, 0x37, 0xfb, 0xa3, + 0x05, 0x2e, 0xaf, 0x1a, 0xf4, 0xe1, 0xba, 0x12, 0x2b, 0x48, 0x9c, 0xa3, 0x7f, 0x40, 0x32, 0x77, + 0xfc, 0xc1, 0x02, 0xce, 0x8a, 0x7d, 0xe8, 0xaf, 0xab, 0xf5, 0x7b, 0x0e, 0xe7, 0xd1, 0xdf, 0x73, + 0x94, 0x76, 0xfb, 0x4f, 0x3f, 0x4d, 0x5c, 0xeb, 0x74, 0xe2, 0x5a, 0x5f, 0x27, 0xae, 0xf5, 0x66, + 0xea, 0xd6, 0x4e, 0xa7, 0x6e, 0xed, 0xf3, 0xd4, 0xad, 0x3d, 0xbb, 0xcf, 0xb8, 0x19, 0xc5, 0x01, + 0xc4, 0x32, 0x2c, 0x8e, 0x10, 0x5a, 0xc8, 0xde, 0x9e, 0xdf, 0xc7, 0xa4, 0x8b, 0x8e, 0xcf, 0x1e, + 0x49, 0x93, 0x46, 0x54, 0x07, 0xe7, 0xb2, 0x2b, 0x73, 0xe7, 0x67, 0x00, 0x00, 0x00, 0xff, 0xff, + 0xe3, 0x4f, 0x57, 0x26, 0x55, 0x05, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -335,6 +337,7 @@ const _ = grpc.SupportPackageIsVersion4 type MsgClient interface { AssignConsumerKey(ctx context.Context, in *MsgAssignConsumerKey, opts ...grpc.CallOption) (*MsgAssignConsumerKeyResponse, error) RegisterConsumerRewardDenom(ctx context.Context, in *MsgRegisterConsumerRewardDenom, opts ...grpc.CallOption) (*MsgRegisterConsumerRewardDenomResponse, error) + SubmitConsumerMisbehaviour(ctx context.Context, in *MsgSubmitConsumerMisbehaviour, opts ...grpc.CallOption) (*MsgSubmitConsumerMisbehaviourResponse, error) } type msgClient struct { @@ -363,10 +366,20 @@ func (c *msgClient) RegisterConsumerRewardDenom(ctx context.Context, in *MsgRegi return out, nil } +func (c *msgClient) SubmitConsumerMisbehaviour(ctx context.Context, in *MsgSubmitConsumerMisbehaviour, opts ...grpc.CallOption) (*MsgSubmitConsumerMisbehaviourResponse, error) { + out := new(MsgSubmitConsumerMisbehaviourResponse) + err := c.cc.Invoke(ctx, "/interchain_security.ccv.provider.v1.Msg/SubmitConsumerMisbehaviour", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // MsgServer is the server API for Msg service. type MsgServer interface { AssignConsumerKey(context.Context, *MsgAssignConsumerKey) (*MsgAssignConsumerKeyResponse, error) RegisterConsumerRewardDenom(context.Context, *MsgRegisterConsumerRewardDenom) (*MsgRegisterConsumerRewardDenomResponse, error) + SubmitConsumerMisbehaviour(context.Context, *MsgSubmitConsumerMisbehaviour) (*MsgSubmitConsumerMisbehaviourResponse, error) } // UnimplementedMsgServer can be embedded to have forward compatible implementations. @@ -379,6 +392,9 @@ func (*UnimplementedMsgServer) AssignConsumerKey(ctx context.Context, req *MsgAs func (*UnimplementedMsgServer) RegisterConsumerRewardDenom(ctx context.Context, req *MsgRegisterConsumerRewardDenom) (*MsgRegisterConsumerRewardDenomResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RegisterConsumerRewardDenom not implemented") } +func (*UnimplementedMsgServer) SubmitConsumerMisbehaviour(ctx context.Context, req *MsgSubmitConsumerMisbehaviour) (*MsgSubmitConsumerMisbehaviourResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SubmitConsumerMisbehaviour not implemented") +} func RegisterMsgServer(s grpc1.Server, srv MsgServer) { s.RegisterService(&_Msg_serviceDesc, srv) @@ -420,6 +436,24 @@ func _Msg_RegisterConsumerRewardDenom_Handler(srv interface{}, ctx context.Conte return interceptor(ctx, in, info, handler) } +func _Msg_SubmitConsumerMisbehaviour_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSubmitConsumerMisbehaviour) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).SubmitConsumerMisbehaviour(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/interchain_security.ccv.provider.v1.Msg/SubmitConsumerMisbehaviour", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SubmitConsumerMisbehaviour(ctx, req.(*MsgSubmitConsumerMisbehaviour)) + } + return interceptor(ctx, in, info, handler) +} + var _Msg_serviceDesc = grpc.ServiceDesc{ ServiceName: "interchain_security.ccv.provider.v1.Msg", HandlerType: (*MsgServer)(nil), @@ -432,6 +466,10 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ MethodName: "RegisterConsumerRewardDenom", Handler: _Msg_RegisterConsumerRewardDenom_Handler, }, + { + MethodName: "SubmitConsumerMisbehaviour", + Handler: _Msg_SubmitConsumerMisbehaviour_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "interchain_security/ccv/provider/v1/tx.proto", diff --git a/x/ccv/types/events.go b/x/ccv/types/events.go index 0bfb19b548..99b1e05d15 100644 --- a/x/ccv/types/events.go +++ b/x/ccv/types/events.go @@ -10,11 +10,10 @@ const ( EventTypeAssignConsumerKey = "assign_consumer_key" EventTypeRegisterConsumerRewardDenom = "register_consumer_reward_denom" EventTypeSubmitConsumerMisbehaviour = "submit_consumer_misbehaviour" - - EventTypeExecuteConsumerChainSlash = "execute_consumer_chain_slash" - EventTypeFeeDistribution = "fee_distribution" - EventTypeConsumerSlashRequest = "consumer_slash_request" - EventTypeVSCMatured = "vsc_matured" + EventTypeExecuteConsumerChainSlash = "execute_consumer_chain_slash" + EventTypeFeeDistribution = "fee_distribution" + EventTypeConsumerSlashRequest = "consumer_slash_request" + EventTypeVSCMatured = "vsc_matured" AttributeKeyAckSuccess = "success" AttributeKeyAck = "acknowledgement" From b076fd4c6055377e17f02832733e7d4c333881a0 Mon Sep 17 00:00:00 2001 From: Simon Noetzlin Date: Wed, 22 Mar 2023 13:33:56 +0100 Subject: [PATCH 06/33] add debugging stuff --- tests/integration/misbehaviour.go | 42 ++++++++++++++++++++++++++++++ testutil/integration/debug_test.go | 4 +++ 2 files changed, 46 insertions(+) diff --git a/tests/integration/misbehaviour.go b/tests/integration/misbehaviour.go index 5ea94ce5ae..a442001cc7 100644 --- a/tests/integration/misbehaviour.go +++ b/tests/integration/misbehaviour.go @@ -1,8 +1,10 @@ package integration import ( + "fmt" "time" + clienttypes "github.com/cosmos/ibc-go/v4/modules/core/02-client/types" ibcclientypes "github.com/cosmos/ibc-go/v4/modules/core/02-client/types" commitmenttypes "github.com/cosmos/ibc-go/v4/modules/core/23-commitment/types" ibctmtypes "github.com/cosmos/ibc-go/v4/modules/light-clients/07-tendermint/types" @@ -420,3 +422,43 @@ func (s *CCVTestSuite) TestCheckConsumerMisbehaviour() { }) } } + +func (s *CCVTestSuite) TestGetByzantineValidators() { + + s.SetupCCVChannel(s.path) + // required to have the consumer client revision height greater than 0 + s.SendEmptyVSCPacket() + s.consumerCtx().BlockHeight() + // get consumer client state + // consumerClientState := s.providerChain.GetClientState(s.path.EndpointA.ClientID) + + // create two conflicting headers and forge them + // commit new block on consumer + + s.coordinator.CommitBlock(s.consumerChain) + + // get trusted height from client state + trustedHeight := s.providerChain.GetClientState(s.path.EndpointA.ClientID).GetLatestHeight().(clienttypes.Height) + tmTrustedVals := s.consumerChain.Vals + // get last consumer header + header := s.consumerChain.LastHeader + + header.TrustedHeight = trustedHeight + trustedVals, err := tmTrustedVals.ToProto() + s.NoError(err) + header.TrustedValidators = trustedVals + + msg, err := clienttypes.NewMsgUpdateClient( + s.path.EndpointB.ClientID, header, + s.path.EndpointB.Chain.SenderAccount.GetAddress().String(), + ) + s.NoError(err) + + header2 := *header + header2.SignedHeader.Commit.BlockID.Hash = []byte("forge_hash") + + _, err = s.providerChain.SendMsgs(msg) + s.NoError(err) + + fmt.Printf("%+v\n", msg.Header) +} diff --git a/testutil/integration/debug_test.go b/testutil/integration/debug_test.go index 7dd2b78777..149915282b 100644 --- a/testutil/integration/debug_test.go +++ b/testutil/integration/debug_test.go @@ -264,3 +264,7 @@ func TestRecycleTransferChannel(t *testing.T) { func TestCheckConsumerMisbehaviour(t *testing.T) { runCCVTestByName(t, "TestCheckConsumerMisbehaviour") } + +func TestGetByzantineValidators(t *testing.T) { + runCCVTestByName(t, "TestGetByzantineValidators") +} From 457fe205c692abf4f36ea1245185b31bd08a9004 Mon Sep 17 00:00:00 2001 From: Simon Noetzlin Date: Thu, 4 May 2023 09:36:36 +0200 Subject: [PATCH 07/33] Add misbehaviour handler --- x/ccv/provider/handler.go | 3 +++ x/ccv/provider/keeper/misbehaviour.go | 8 ++------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/x/ccv/provider/handler.go b/x/ccv/provider/handler.go index dc0c8cbc4f..6fa38b5ddf 100644 --- a/x/ccv/provider/handler.go +++ b/x/ccv/provider/handler.go @@ -21,6 +21,9 @@ func NewHandler(k *keeper.Keeper) sdk.Handler { case *types.MsgRegisterConsumerRewardDenom: res, err := msgServer.RegisterConsumerRewardDenom(sdk.WrapSDKContext(ctx), msg) return sdk.WrapServiceResult(ctx, res, err) + case *types.MsgSubmitConsumerMisbehaviour: + res, err := msgServer.SubmitConsumerMisbehaviour(sdk.WrapSDKContext(ctx), msg) + return sdk.WrapServiceResult(ctx, res, err) default: return nil, errorsmod.Wrapf(sdkerrors.ErrUnknownRequest, "unrecognized %s message type: %T", types.ModuleName, msg) } diff --git a/x/ccv/provider/keeper/misbehaviour.go b/x/ccv/provider/keeper/misbehaviour.go index fcdb122602..879670063e 100644 --- a/x/ccv/provider/keeper/misbehaviour.go +++ b/x/ccv/provider/keeper/misbehaviour.go @@ -11,7 +11,6 @@ import ( ) func (k Keeper) CheckConsumerMisbehaviour(ctx sdk.Context, misbeaviour ibctmtypes.Misbehaviour) error { - clientID := misbeaviour.GetClientID() clientState, found := k.clientKeeper.GetClientState(ctx, clientID) if !found { @@ -55,7 +54,7 @@ func (k Keeper) CheckConsumerMisbehaviour(ctx sdk.Context, misbeaviour ibctmtype return err } - // WIP: return byzantine validators according to the light client commited + // WIP: return byzantine validators according to the light client committed // if this is an equivocation or amnesia attack, i.e. the validator sets are the same, then we // return the height of the conflicting block else if it is a lunatic attack and the validator sets @@ -95,8 +94,6 @@ func (k Keeper) CheckConsumerMisbehaviour(ctx sdk.Context, misbeaviour ibctmtype } func (k Keeper) GetByzantineValidators(ctx sdk.Context, misbehaviour ibctmtypes.Misbehaviour) ([]*tmtypes.Validator, error) { - - // trusted, err := HeaderToLightBlock(*misbehaviour.Header1) if err != nil { return nil, err @@ -115,7 +112,7 @@ func (k Keeper) GetByzantineValidators(ctx sdk.Context, misbehaviour ibctmtypes. } if ev.ConflictingHeaderIsInvalid(trusted.Header) { - ev.CommonHeight = int64(commonHeight) + ev.CommonHeight = commonHeight ev.Timestamp = commonTs ev.TotalVotingPower = commonValset.TotalVotingPower() } else { @@ -128,7 +125,6 @@ func (k Keeper) GetByzantineValidators(ctx sdk.Context, misbehaviour ibctmtypes. } func (k Keeper) GetCommonFromMisbehaviour(ctx sdk.Context, misbehaviour ibctmtypes.Misbehaviour) (int64, time.Time, *tmtypes.ValidatorSet, error) { - // A common trusted height is required commonHeight := misbehaviour.Header1.TrustedHeight if !commonHeight.EQ(misbehaviour.Header2.TrustedHeight) { From ae522e125350275a2813c8626835159685686e0c Mon Sep 17 00:00:00 2001 From: Simon Noetzlin Date: Wed, 3 May 2023 11:12:00 +0200 Subject: [PATCH 08/33] create message for consumer double voting evidence --- .../ccv/provider/v1/tx.proto | 1 + testutil/keeper/mocks.go | 2 +- .../proto/tendermint/types/evidence.proto | 38 ++++++++++ x/ccv/provider/keeper/misbehaviour.go | 67 ++++++++++++---- x/ccv/provider/types/tx.pb.go | 76 ++++++++++--------- 5 files changed, 132 insertions(+), 52 deletions(-) create mode 100644 third_party/proto/tendermint/types/evidence.proto diff --git a/proto/interchain_security/ccv/provider/v1/tx.proto b/proto/interchain_security/ccv/provider/v1/tx.proto index 5e256d097a..1bcfad7cbc 100644 --- a/proto/interchain_security/ccv/provider/v1/tx.proto +++ b/proto/interchain_security/ccv/provider/v1/tx.proto @@ -8,6 +8,7 @@ import "gogoproto/gogo.proto"; import "cosmos_proto/cosmos.proto"; import "google/protobuf/any.proto"; import "ibc/lightclients/tendermint/v1/tendermint.proto"; +import "tendermint/types/evidence.proto"; // Msg defines the Msg service. service Msg { diff --git a/testutil/keeper/mocks.go b/testutil/keeper/mocks.go index 2e45e5c58d..dc01a7f094 100644 --- a/testutil/keeper/mocks.go +++ b/testutil/keeper/mocks.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: ./x/ccv/types/expected_keepers.go +// Source: x/ccv/types/expected_keepers.go // Package keeper is a generated GoMock package. package keeper diff --git a/third_party/proto/tendermint/types/evidence.proto b/third_party/proto/tendermint/types/evidence.proto new file mode 100644 index 0000000000..451b8dca3c --- /dev/null +++ b/third_party/proto/tendermint/types/evidence.proto @@ -0,0 +1,38 @@ +syntax = "proto3"; +package tendermint.types; + +option go_package = "github.com/tendermint/tendermint/proto/tendermint/types"; + +import "gogoproto/gogo.proto"; +import "google/protobuf/timestamp.proto"; +import "tendermint/types/types.proto"; +import "tendermint/types/validator.proto"; + +message Evidence { + oneof sum { + DuplicateVoteEvidence duplicate_vote_evidence = 1; + LightClientAttackEvidence light_client_attack_evidence = 2; + } +} + +// DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. +message DuplicateVoteEvidence { + tendermint.types.Vote vote_a = 1; + tendermint.types.Vote vote_b = 2; + int64 total_voting_power = 3; + int64 validator_power = 4; + google.protobuf.Timestamp timestamp = 5 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; +} + +// LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. +message LightClientAttackEvidence { + tendermint.types.LightBlock conflicting_block = 1; + int64 common_height = 2; + repeated tendermint.types.Validator byzantine_validators = 3; + int64 total_voting_power = 4; + google.protobuf.Timestamp timestamp = 5 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; +} + +message EvidenceList { + repeated Evidence evidence = 1 [(gogoproto.nullable) = false]; +} diff --git a/x/ccv/provider/keeper/misbehaviour.go b/x/ccv/provider/keeper/misbehaviour.go index 879670063e..1f843fc517 100644 --- a/x/ccv/provider/keeper/misbehaviour.go +++ b/x/ccv/provider/keeper/misbehaviour.go @@ -5,29 +5,68 @@ import ( "time" sdk "github.com/cosmos/cosmos-sdk/types" + evidencetypes "github.com/cosmos/cosmos-sdk/x/evidence/types" "github.com/cosmos/ibc-go/v4/modules/core/exported" ibctmtypes "github.com/cosmos/ibc-go/v4/modules/light-clients/07-tendermint/types" tmtypes "github.com/tendermint/tendermint/types" ) -func (k Keeper) CheckConsumerMisbehaviour(ctx sdk.Context, misbeaviour ibctmtypes.Misbehaviour) error { - clientID := misbeaviour.GetClientID() +func (k Keeper) HandleConsumerMisbehaviour(ctx sdk.Context, misbehaviour ibctmtypes.Misbehaviour) error { + if err := k.CheckConsumerMisbehaviour(ctx, misbehaviour); err != nil { + return err + } + + byzantineValidators, err := k.GetByzantineValidators(ctx, misbehaviour) + if err != nil { + return err + } + + // Since the misbehaviour packet was received within the trusting period + // w.r.t to the last trusted consensus it entails that the infraction age + // isn't too old. see ibc-go/modules/light-clients/07-tendermint/types/misbehaviour_handle.go + for _, v := range byzantineValidators { + // convert address to key assigned + consAddr := sdk.ConsAddress(v.Address.Bytes()) + validator := k.stakingKeeper.ValidatorByConsAddr(ctx, consAddr) + if validator == nil || validator.IsUnbonded() { + // Defensive: Simulation doesn't take unbonding periods into account, and + // Tendermint might break this assumption at some point. + k.Logger(ctx).Error("validator not found or is unbonded", consAddr) + } + k.slashingKeeper.JailUntil(ctx, consAddr, evidencetypes.DoubleSignJailEndTime) + k.slashingKeeper.Tombstone(ctx, consAddr) + // store misbehaviour? + } + + logger := ctx.Logger() + logger.Info( + "confirmed equivocation", + "byzantine validators", byzantineValidators, + ) + + return nil +} + +func (k Keeper) CheckConsumerMisbehaviour(ctx sdk.Context, misbehaviour ibctmtypes.Misbehaviour) error { + + clientID := misbehaviour.GetClientID() + clientState, found := k.clientKeeper.GetClientState(ctx, clientID) if !found { return fmt.Errorf("types.ErrClientNotFound cannot check misbehaviour for client with ID %s", clientID) } - clientStore := k.clientKeeper.ClientStore(ctx, misbeaviour.GetClientID()) + clientStore := k.clientKeeper.ClientStore(ctx, misbehaviour.GetClientID()) if status := clientState.Status(ctx, clientStore, k.cdc); status != exported.Active { return fmt.Errorf("types.ErrClientNotActive cannot process misbehaviour for client (%s) with status %s", clientID, status) } - if err := misbeaviour.ValidateBasic(); err != nil { + if err := misbehaviour.ValidateBasic(); err != nil { return err } - clientState, err := clientState.CheckMisbehaviourAndUpdateState(ctx, k.cdc, clientStore, &misbeaviour) + clientState, err := clientState.CheckMisbehaviourAndUpdateState(ctx, k.cdc, clientStore, &misbehaviour) if err != nil { return err } @@ -36,12 +75,12 @@ func (k Keeper) CheckConsumerMisbehaviour(ctx sdk.Context, misbeaviour ibctmtype k.Logger(ctx).Info("client frozen due to misbehaviour", "client-id", clientID) // get byzantine validators - sh, err := tmtypes.SignedHeaderFromProto(misbeaviour.Header1.SignedHeader) + sh, err := tmtypes.SignedHeaderFromProto(misbehaviour.Header1.SignedHeader) if err != nil { return err } - vs, err := tmtypes.ValidatorSetFromProto(misbeaviour.Header1.ValidatorSet) + vs, err := tmtypes.ValidatorSetFromProto(misbehaviour.Header1.ValidatorSet) if err != nil { return err } @@ -49,7 +88,7 @@ func (k Keeper) CheckConsumerMisbehaviour(ctx sdk.Context, misbeaviour ibctmtype ConflictingBlock: &tmtypes.LightBlock{SignedHeader: sh, ValidatorSet: vs}, } - h2, err := tmtypes.HeaderFromProto(misbeaviour.Header2.Header) + h2, err := tmtypes.HeaderFromProto(misbehaviour.Header2.Header) if err != nil { return err } @@ -60,13 +99,13 @@ func (k Keeper) CheckConsumerMisbehaviour(ctx sdk.Context, misbeaviour ibctmtype // return the height of the conflicting block else if it is a lunatic attack and the validator sets // are not the same then we send the height of the common header. if ev.ConflictingHeaderIsInvalid(&h2) { - ev.CommonHeight = misbeaviour.Header2.Header.Height - ev.Timestamp = misbeaviour.Header2.Header.Time - ev.TotalVotingPower = misbeaviour.Header2.ValidatorSet.TotalVotingPower + ev.CommonHeight = misbehaviour.Header2.Header.Height + ev.Timestamp = misbehaviour.Header2.Header.Time + ev.TotalVotingPower = misbehaviour.Header2.ValidatorSet.TotalVotingPower } else { - ev.CommonHeight = misbeaviour.Header1.Header.Height - ev.Timestamp = misbeaviour.Header1.Header.Time - ev.TotalVotingPower = misbeaviour.Header1.ValidatorSet.TotalVotingPower + ev.CommonHeight = misbehaviour.Header1.Header.Height + ev.Timestamp = misbehaviour.Header1.Header.Time + ev.TotalVotingPower = misbehaviour.Header1.ValidatorSet.TotalVotingPower } ev.ByzantineValidators = ev.GetByzantineValidators(vs, sh) diff --git a/x/ccv/provider/types/tx.pb.go b/x/ccv/provider/types/tx.pb.go index 61b59ecd8c..27757abd0c 100644 --- a/x/ccv/provider/types/tx.pb.go +++ b/x/ccv/provider/types/tx.pb.go @@ -12,6 +12,7 @@ import ( grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" _ "github.com/regen-network/cosmos-proto" + _ "github.com/tendermint/tendermint/proto/tendermint/types" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" @@ -284,43 +285,44 @@ func init() { } var fileDescriptor_43221a4391e9fbf4 = []byte{ - // 568 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0x3f, 0x6f, 0x13, 0x4f, - 0x10, 0xf5, 0xfd, 0xa2, 0x1f, 0x24, 0x9b, 0x80, 0xc4, 0xc9, 0x85, 0x73, 0x98, 0x33, 0x18, 0x01, - 0x29, 0xc2, 0xae, 0x6c, 0x0a, 0x44, 0x24, 0x0a, 0x3b, 0x34, 0x10, 0x59, 0x42, 0x47, 0x81, 0x44, - 0x81, 0x75, 0xb7, 0xbb, 0xac, 0x57, 0xf8, 0x76, 0x4f, 0xbb, 0x7b, 0x47, 0xee, 0x1b, 0x50, 0x42, - 0x85, 0xe8, 0xf2, 0x01, 0x90, 0xf8, 0x1a, 0x94, 0x29, 0xa9, 0x10, 0xb2, 0x1b, 0x6a, 0x4a, 0x2a, - 0xe4, 0xfb, 0x63, 0x5f, 0x84, 0xb1, 0x2c, 0xa0, 0xdb, 0x99, 0x79, 0xfb, 0xde, 0x1b, 0xcd, 0x68, - 0xc0, 0x3e, 0x17, 0x86, 0x2a, 0x3c, 0xf2, 0xb9, 0x18, 0x6a, 0x8a, 0x63, 0xc5, 0x4d, 0x8a, 0x30, - 0x4e, 0x50, 0xa4, 0x64, 0xc2, 0x09, 0x55, 0x28, 0xe9, 0x20, 0x73, 0x0c, 0x23, 0x25, 0x8d, 0xb4, - 0xaf, 0x2f, 0x41, 0x43, 0x8c, 0x13, 0x58, 0xa2, 0x61, 0xd2, 0x71, 0x9a, 0x4c, 0x4a, 0x36, 0xa6, - 0xc8, 0x8f, 0x38, 0xf2, 0x85, 0x90, 0xc6, 0x37, 0x5c, 0x0a, 0x9d, 0x53, 0x38, 0x75, 0x26, 0x99, - 0xcc, 0x9e, 0x68, 0xf6, 0x2a, 0xb2, 0xbb, 0x58, 0xea, 0x50, 0xea, 0x61, 0x5e, 0xc8, 0x83, 0xb2, - 0x54, 0xd0, 0x65, 0x51, 0x10, 0xbf, 0x40, 0xbe, 0x48, 0x8b, 0x12, 0xe2, 0x01, 0x46, 0x63, 0xce, - 0x46, 0x06, 0x8f, 0x39, 0x15, 0x46, 0x23, 0x43, 0x05, 0xa1, 0x2a, 0xe4, 0xc2, 0x64, 0xbe, 0xe7, - 0x51, 0xfe, 0xa1, 0xfd, 0xce, 0x02, 0xf5, 0x81, 0x66, 0x3d, 0xad, 0x39, 0x13, 0x87, 0x52, 0xe8, - 0x38, 0xa4, 0xea, 0x88, 0xa6, 0xf6, 0x2e, 0xd8, 0xcc, 0xbb, 0xe2, 0xa4, 0x61, 0x5d, 0xb5, 0xf6, - 0xb6, 0xbc, 0xf3, 0x59, 0xfc, 0x90, 0xd8, 0x77, 0xc1, 0x85, 0xb2, 0xbb, 0xa1, 0x4f, 0x88, 0x6a, - 0xfc, 0x37, 0xab, 0xf7, 0xed, 0xef, 0x5f, 0x5a, 0x17, 0x53, 0x3f, 0x1c, 0x1f, 0xb4, 0x67, 0x59, - 0xaa, 0x75, 0xdb, 0xdb, 0x29, 0x81, 0x3d, 0x42, 0x94, 0x7d, 0x0d, 0xec, 0xe0, 0x42, 0x62, 0xf8, - 0x92, 0xa6, 0x8d, 0x8d, 0x8c, 0x77, 0x1b, 0x2f, 0x64, 0x0f, 0x36, 0x5f, 0x9f, 0xb4, 0x6a, 0xdf, - 0x4e, 0x5a, 0xb5, 0xb6, 0x0b, 0x9a, 0xcb, 0x8c, 0x79, 0x54, 0x47, 0x52, 0x68, 0xda, 0x7e, 0x0e, - 0xdc, 0x81, 0x66, 0x1e, 0x65, 0x5c, 0x1b, 0xaa, 0x4a, 0x84, 0x47, 0x5f, 0xf9, 0x8a, 0x3c, 0xa0, - 0x42, 0x86, 0x76, 0x1d, 0xfc, 0x4f, 0x66, 0x8f, 0xc2, 0x7f, 0x1e, 0xd8, 0x4d, 0xb0, 0x45, 0x68, - 0x24, 0x35, 0x37, 0xb2, 0x70, 0xee, 0x2d, 0x12, 0x15, 0xfd, 0x3d, 0x70, 0x73, 0x35, 0xff, 0xdc, - 0xc9, 0x7b, 0x0b, 0x5c, 0x19, 0x68, 0xf6, 0x24, 0x0e, 0x42, 0x6e, 0x4a, 0xe0, 0x80, 0xeb, 0x80, - 0x8e, 0xfc, 0x84, 0xcb, 0x58, 0xcd, 0x34, 0x75, 0x56, 0x35, 0x54, 0x15, 0x6e, 0x16, 0x09, 0xfb, - 0x31, 0xd8, 0x09, 0x2b, 0xe8, 0xcc, 0xd4, 0x76, 0x77, 0x1f, 0xf2, 0x00, 0xc3, 0xea, 0x2c, 0x61, - 0x65, 0x7a, 0x49, 0x07, 0x56, 0x15, 0xbc, 0x33, 0x0c, 0x95, 0x2e, 0x6e, 0x81, 0x1b, 0x2b, 0xad, - 0x95, 0x4d, 0x74, 0x7f, 0x6c, 0x80, 0x8d, 0x81, 0x66, 0xf6, 0x5b, 0x0b, 0x5c, 0xfa, 0x75, 0x1b, - 0xee, 0xc1, 0x35, 0xf6, 0x1c, 0x2e, 0x9b, 0x97, 0xd3, 0xfb, 0xe3, 0xaf, 0xa5, 0x37, 0xfb, 0xa3, - 0x05, 0x2e, 0xaf, 0x1a, 0xf4, 0xe1, 0xba, 0x12, 0x2b, 0x48, 0x9c, 0xa3, 0x7f, 0x40, 0x32, 0x77, - 0xfc, 0xc1, 0x02, 0xce, 0x8a, 0x7d, 0xe8, 0xaf, 0xab, 0xf5, 0x7b, 0x0e, 0xe7, 0xd1, 0xdf, 0x73, - 0x94, 0x76, 0xfb, 0x4f, 0x3f, 0x4d, 0x5c, 0xeb, 0x74, 0xe2, 0x5a, 0x5f, 0x27, 0xae, 0xf5, 0x66, - 0xea, 0xd6, 0x4e, 0xa7, 0x6e, 0xed, 0xf3, 0xd4, 0xad, 0x3d, 0xbb, 0xcf, 0xb8, 0x19, 0xc5, 0x01, - 0xc4, 0x32, 0x2c, 0x8e, 0x10, 0x5a, 0xc8, 0xde, 0x9e, 0xdf, 0xc7, 0xa4, 0x8b, 0x8e, 0xcf, 0x1e, - 0x49, 0x93, 0x46, 0x54, 0x07, 0xe7, 0xb2, 0x2b, 0x73, 0xe7, 0x67, 0x00, 0x00, 0x00, 0xff, 0xff, - 0xe3, 0x4f, 0x57, 0x26, 0x55, 0x05, 0x00, 0x00, + // 578 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0x3f, 0x6f, 0xd3, 0x4e, + 0x18, 0x8e, 0x7f, 0xd5, 0x0f, 0xda, 0x6b, 0x41, 0xc2, 0xea, 0xd0, 0x9a, 0xe0, 0x40, 0x10, 0xd0, + 0xa1, 0xf8, 0x94, 0x30, 0x20, 0x2a, 0x31, 0x24, 0x65, 0x81, 0x2a, 0x12, 0x32, 0x03, 0x12, 0x03, + 0x91, 0x7d, 0x7e, 0xb9, 0x9c, 0x88, 0xef, 0xac, 0xbb, 0xb3, 0xa9, 0xbf, 0x01, 0x23, 0x4c, 0x88, + 0xad, 0x1f, 0x00, 0x89, 0xaf, 0xc1, 0xd8, 0x91, 0x09, 0xa1, 0x64, 0x61, 0x66, 0x64, 0x42, 0xfe, + 0x97, 0xb8, 0x22, 0x44, 0x11, 0xb0, 0xbd, 0x7f, 0x1e, 0x3f, 0xcf, 0xf3, 0xea, 0x3d, 0xbf, 0x68, + 0x9f, 0x71, 0x0d, 0x92, 0x8c, 0x3c, 0xc6, 0x87, 0x0a, 0x48, 0x2c, 0x99, 0x4e, 0x31, 0x21, 0x09, + 0x8e, 0xa4, 0x48, 0x58, 0x00, 0x12, 0x27, 0x1d, 0xac, 0x8f, 0x9d, 0x48, 0x0a, 0x2d, 0xcc, 0xeb, + 0x0b, 0xd0, 0x0e, 0x21, 0x89, 0x53, 0xa1, 0x9d, 0xa4, 0x63, 0x35, 0xa9, 0x10, 0x74, 0x0c, 0xd8, + 0x8b, 0x18, 0xf6, 0x38, 0x17, 0xda, 0xd3, 0x4c, 0x70, 0x55, 0x50, 0x58, 0xdb, 0x54, 0x50, 0x91, + 0x87, 0x38, 0x8b, 0xca, 0xea, 0x2e, 0x11, 0x2a, 0x14, 0x6a, 0x58, 0x34, 0x8a, 0xa4, 0x6a, 0x95, + 0x74, 0x79, 0xe6, 0xc7, 0x2f, 0xb0, 0xc7, 0xd3, 0xb2, 0x85, 0x99, 0x4f, 0xf0, 0x98, 0xd1, 0x91, + 0x26, 0x63, 0x06, 0x5c, 0x2b, 0xac, 0x81, 0x07, 0x20, 0x43, 0xc6, 0x75, 0xee, 0x7b, 0x96, 0x95, + 0x1f, 0xb4, 0x6a, 0x7d, 0x9d, 0x46, 0xa0, 0x30, 0x64, 0xb6, 0x39, 0x81, 0x02, 0xd0, 0x7e, 0x67, + 0xa0, 0xed, 0x81, 0xa2, 0x3d, 0xa5, 0x18, 0xe5, 0x87, 0x82, 0xab, 0x38, 0x04, 0x79, 0x04, 0xa9, + 0xb9, 0x8b, 0xd6, 0x8b, 0xb1, 0x59, 0xb0, 0x63, 0x5c, 0x35, 0xf6, 0x36, 0xdc, 0xf3, 0x79, 0xfe, + 0x30, 0x30, 0xef, 0xa2, 0x0b, 0xd5, 0xf8, 0x43, 0x2f, 0x08, 0xe4, 0xce, 0x7f, 0x59, 0xbf, 0x6f, + 0x7e, 0xff, 0xd2, 0xba, 0x98, 0x7a, 0xe1, 0xf8, 0xa0, 0x9d, 0x55, 0x41, 0xa9, 0xb6, 0xbb, 0x55, + 0x01, 0x7b, 0x41, 0x20, 0xcd, 0x6b, 0x68, 0x8b, 0x94, 0x12, 0xc3, 0x97, 0x90, 0xee, 0xac, 0xe5, + 0xbc, 0x9b, 0x64, 0x2e, 0x7b, 0xb0, 0xfe, 0xfa, 0xa4, 0xd5, 0xf8, 0x76, 0xd2, 0x6a, 0xb4, 0x6d, + 0xd4, 0x5c, 0x64, 0xcc, 0x05, 0x15, 0x09, 0xae, 0xa0, 0xfd, 0x1c, 0xd9, 0x03, 0x45, 0x5d, 0xa0, + 0x4c, 0x69, 0x90, 0x15, 0xc2, 0x85, 0x57, 0x9e, 0x0c, 0x1e, 0x00, 0x17, 0xa1, 0xb9, 0x8d, 0xfe, + 0x0f, 0xb2, 0xa0, 0xf4, 0x5f, 0x24, 0x66, 0x13, 0x6d, 0x04, 0x10, 0x09, 0xc5, 0xb4, 0x28, 0x9d, + 0xbb, 0xf3, 0x42, 0x4d, 0x7f, 0x0f, 0xdd, 0x5c, 0xce, 0x3f, 0x73, 0xf2, 0xde, 0x40, 0x57, 0x06, + 0x8a, 0x3e, 0x89, 0xfd, 0x90, 0xe9, 0x0a, 0x38, 0x60, 0xca, 0x87, 0x91, 0x97, 0x30, 0x11, 0xcb, + 0x4c, 0x53, 0xe5, 0x5d, 0x0d, 0xb2, 0x74, 0x33, 0x2f, 0x98, 0x8f, 0xd1, 0x56, 0x58, 0x43, 0xe7, + 0xa6, 0x36, 0xbb, 0xfb, 0x0e, 0xf3, 0x89, 0x53, 0x5f, 0xb6, 0x53, 0x5b, 0x6f, 0xd2, 0x71, 0xea, + 0x0a, 0xee, 0x19, 0x86, 0xda, 0x14, 0xb7, 0xd0, 0x8d, 0xa5, 0xd6, 0xaa, 0x21, 0xba, 0x3f, 0xd6, + 0xd0, 0xda, 0x40, 0x51, 0xf3, 0xad, 0x81, 0x2e, 0xfd, 0xfa, 0x1a, 0xee, 0x39, 0x2b, 0xfc, 0x08, + 0xce, 0xa2, 0x7d, 0x59, 0xbd, 0x3f, 0xfe, 0xb4, 0xf2, 0x66, 0x7e, 0x34, 0xd0, 0xe5, 0x65, 0x8b, + 0x3e, 0x5c, 0x55, 0x62, 0x09, 0x89, 0x75, 0xf4, 0x0f, 0x48, 0x66, 0x8e, 0x3f, 0x18, 0xc8, 0x5a, + 0xf2, 0x1e, 0xfa, 0xab, 0x6a, 0xfd, 0x9e, 0xc3, 0x7a, 0xf4, 0xf7, 0x1c, 0x95, 0xdd, 0xfe, 0xd3, + 0x4f, 0x13, 0xdb, 0x38, 0x9d, 0xd8, 0xc6, 0xd7, 0x89, 0x6d, 0xbc, 0x99, 0xda, 0x8d, 0xd3, 0xa9, + 0xdd, 0xf8, 0x3c, 0xb5, 0x1b, 0xcf, 0xee, 0x53, 0xa6, 0x47, 0xb1, 0xef, 0x10, 0x11, 0x96, 0x57, + 0x0a, 0xcf, 0x65, 0x6f, 0xcf, 0x0e, 0x68, 0xd2, 0xc5, 0xc7, 0x67, 0xaf, 0x68, 0x7e, 0x6d, 0xfc, + 0x73, 0xf9, 0x95, 0xb9, 0xf3, 0x33, 0x00, 0x00, 0xff, 0xff, 0x7c, 0xb5, 0x5a, 0x59, 0x76, 0x05, + 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. From b52daff4d5e3d3fa396a34fdd0c88bc8831a8ce4 Mon Sep 17 00:00:00 2001 From: Simon Noetzlin Date: Wed, 3 May 2023 12:03:21 +0200 Subject: [PATCH 09/33] add DRAFT double vote handler --- x/ccv/provider/keeper/double_vote.go | 39 ++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 x/ccv/provider/keeper/double_vote.go diff --git a/x/ccv/provider/keeper/double_vote.go b/x/ccv/provider/keeper/double_vote.go new file mode 100644 index 0000000000..7885890596 --- /dev/null +++ b/x/ccv/provider/keeper/double_vote.go @@ -0,0 +1,39 @@ +package keeper + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" + ibctmtypes "github.com/cosmos/ibc-go/v4/modules/light-clients/07-tendermint/types" + tmev "github.com/tendermint/tendermint/evidence" + tmproto "github.com/tendermint/tendermint/proto/tendermint/types" + tmtypes "github.com/tendermint/tendermint/types" +) + +func (k Keeper) HandleConsumerDoubleVoting(ctx sdk.Context, evidence *tmproto.DuplicateVoteEvidence, header *ibctmtypes.Header) error { + + // TODO check header against consumer chain client + + ev, err := tmtypes.DuplicateVoteEvidenceFromProto(evidence) + if err != nil { + return err + } + valset, err := tmtypes.ValidatorSetFromProto(header.TrustedValidators) + if err != nil { + return err + } + + // TODO: figure out if the evidence age must also be checked + if err := tmev.VerifyDuplicateVote(ev, header.Header.ChainID, valset); err != nil { + return err + } + + // TODO convert misbehaving validator consumer pubkey + //TODO call k.evidenceKeeper.HandleEquivocationEvidence() using correct infraction height + + logger := ctx.Logger() + logger.Info( + "confirmed equivocation", + "byzantine validator", sdk.ConsAddress(evidence.VoteA.GetValidatorAddress()), + ) + + return nil +} From 8eea67715d559a8daa9e6198c60bc1495e47db87 Mon Sep 17 00:00:00 2001 From: Simon Noetzlin Date: Thu, 4 May 2023 09:34:14 +0200 Subject: [PATCH 10/33] Add cli cmd for submit consumer double voting --- x/ccv/provider/keeper/double_vote.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/x/ccv/provider/keeper/double_vote.go b/x/ccv/provider/keeper/double_vote.go index 7885890596..fc7875009f 100644 --- a/x/ccv/provider/keeper/double_vote.go +++ b/x/ccv/provider/keeper/double_vote.go @@ -10,7 +10,7 @@ import ( func (k Keeper) HandleConsumerDoubleVoting(ctx sdk.Context, evidence *tmproto.DuplicateVoteEvidence, header *ibctmtypes.Header) error { - // TODO check header against consumer chain client + // TODO: check header against consumer chain client ev, err := tmtypes.DuplicateVoteEvidenceFromProto(evidence) if err != nil { @@ -26,8 +26,8 @@ func (k Keeper) HandleConsumerDoubleVoting(ctx sdk.Context, evidence *tmproto.Du return err } - // TODO convert misbehaving validator consumer pubkey - //TODO call k.evidenceKeeper.HandleEquivocationEvidence() using correct infraction height + // TODO: convert misbehaving validator consumer pubkey + // TODO: call k.evidenceKeeper.HandleEquivocationEvidence() using correct infraction height logger := ctx.Logger() logger.Info( From 81dd6ba1beb7f535332abad090a2eede59880f73 Mon Sep 17 00:00:00 2001 From: Simon Noetzlin Date: Thu, 4 May 2023 09:39:05 +0200 Subject: [PATCH 11/33] Add double-vote handler --- x/ccv/provider/handler.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/x/ccv/provider/handler.go b/x/ccv/provider/handler.go index 6fa38b5ddf..8dca550732 100644 --- a/x/ccv/provider/handler.go +++ b/x/ccv/provider/handler.go @@ -24,6 +24,9 @@ func NewHandler(k *keeper.Keeper) sdk.Handler { case *types.MsgSubmitConsumerMisbehaviour: res, err := msgServer.SubmitConsumerMisbehaviour(sdk.WrapSDKContext(ctx), msg) return sdk.WrapServiceResult(ctx, res, err) + case *types.MsgSubmitConsumerDoubleVoting: + res, err := msgServer.SubmitConsumerDoubleVoting(sdk.WrapSDKContext(ctx), msg) + return sdk.WrapServiceResult(ctx, res, err) default: return nil, errorsmod.Wrapf(sdkerrors.ErrUnknownRequest, "unrecognized %s message type: %T", types.ModuleName, msg) } From 0cb86c9d73b358c38a12d74f6799ca8b32d6dac9 Mon Sep 17 00:00:00 2001 From: Simon Noetzlin Date: Thu, 15 Jun 2023 17:13:56 +0200 Subject: [PATCH 12/33] add last update --- x/ccv/provider/handler.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/x/ccv/provider/handler.go b/x/ccv/provider/handler.go index 8dca550732..6fa38b5ddf 100644 --- a/x/ccv/provider/handler.go +++ b/x/ccv/provider/handler.go @@ -24,9 +24,6 @@ func NewHandler(k *keeper.Keeper) sdk.Handler { case *types.MsgSubmitConsumerMisbehaviour: res, err := msgServer.SubmitConsumerMisbehaviour(sdk.WrapSDKContext(ctx), msg) return sdk.WrapServiceResult(ctx, res, err) - case *types.MsgSubmitConsumerDoubleVoting: - res, err := msgServer.SubmitConsumerDoubleVoting(sdk.WrapSDKContext(ctx), msg) - return sdk.WrapServiceResult(ctx, res, err) default: return nil, errorsmod.Wrapf(sdkerrors.ErrUnknownRequest, "unrecognized %s message type: %T", types.ModuleName, msg) } From b6cf9381635c866eabcfea4a7cd43eb21e8e8670 Mon Sep 17 00:00:00 2001 From: Simon Noetzlin Date: Fri, 16 Jun 2023 14:34:26 +0200 Subject: [PATCH 13/33] fix jailing --- tests/integration/misbehaviour.go | 817 +++++++++++++++----------- testutil/integration/debug_test.go | 4 + x/ccv/provider/keeper/misbehaviour.go | 15 +- 3 files changed, 480 insertions(+), 356 deletions(-) diff --git a/tests/integration/misbehaviour.go b/tests/integration/misbehaviour.go index a442001cc7..a9d20a1f88 100644 --- a/tests/integration/misbehaviour.go +++ b/tests/integration/misbehaviour.go @@ -4,11 +4,9 @@ import ( "fmt" "time" - clienttypes "github.com/cosmos/ibc-go/v4/modules/core/02-client/types" - ibcclientypes "github.com/cosmos/ibc-go/v4/modules/core/02-client/types" - commitmenttypes "github.com/cosmos/ibc-go/v4/modules/core/23-commitment/types" + sdk "github.com/cosmos/cosmos-sdk/types" + ibctmtypes "github.com/cosmos/ibc-go/v4/modules/light-clients/07-tendermint/types" - ibctestingmock "github.com/cosmos/ibc-go/v4/testing/mock" tmtypes "github.com/tendermint/tendermint/types" ) @@ -18,6 +16,64 @@ const ( maxClockDrift time.Duration = time.Second * 10 ) +func (s *CCVTestSuite) TestHandleConsumerMisbehaviour() { + s.SetupCCVChannel(s.path) + // required to have the consumer client revision height greater than 0 + s.SendEmptyVSCPacket() + + for _, v := range s.providerChain.Vals.Validators { + s.setDefaultValSigningInfo(*v) + } + + // consumerConsState, _ := s.providerChain.GetConsensusState(s.path.EndpointA.ClientID, s.consumerChain.LastHeader.TrustedHeight) + altTime := s.providerCtx().BlockTime().Add(time.Minute) + + clientHeight := s.consumerChain.LastHeader.TrustedHeight + clientTMValset := tmtypes.NewValidatorSet(s.consumerChain.Vals.Validators) + clientSigners := s.consumerChain.Signers + + altValset := tmtypes.NewValidatorSet(s.consumerChain.Vals.Validators[0:2]) + altSigners := make(map[string]tmtypes.PrivValidator, 1) + // altSigners[altValset.Validators[0].Address.String()] = altPrivVal + altSigners[clientTMValset.Validators[0].Address.String()] = clientSigners[clientTMValset.Validators[0].Address.String()] + altSigners[clientTMValset.Validators[1].Address.String()] = clientSigners[clientTMValset.Validators[1].Address.String()] + + misb := &ibctmtypes.Misbehaviour{ + ClientId: s.path.EndpointA.ClientID, + Header1: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight+1), + clientHeight, + altTime, + clientTMValset, + clientTMValset, + clientTMValset, + clientSigners, + ), + Header2: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight+1), + clientHeight, + altTime, + altValset, + altValset, + clientTMValset, + altSigners, + ), + } + + err := s.providerApp.GetProviderKeeper().HandleConsumerMisbehaviour(s.providerCtx(), *misb) + s.NoError(err) + + for _, v := range altValset.Validators { + consuAddr := sdk.ConsAddress(v.Address.Bytes()) + provAddr := s.providerApp.GetProviderKeeper().GetProviderAddrFromConsumerAddr(s.providerCtx(), s.consumerChain.ChainID, consuAddr) + s.providerApp.GetE2eStakingKeeper().ValidatorByConsAddr(s.providerCtx(), consuAddr) + val, ok := s.providerApp.GetProviderKeeper().stakingKeeper.GetValidatorByConsAddr(s.providerCtx(), provAddr) + } + +} + // mostly based on TestCheckMisbehaviourAndUpdateState in ibc-go/modules/core/02-client/keeper/client_test.go func (s *CCVTestSuite) TestCheckConsumerMisbehaviour() { @@ -25,25 +81,28 @@ func (s *CCVTestSuite) TestCheckConsumerMisbehaviour() { // required to have the consumer client revision height greater than 0 s.SendEmptyVSCPacket() - consumerConsState, _ := s.providerChain.GetConsensusState(s.path.EndpointA.ClientID, s.consumerChain.LastHeader.TrustedHeight) + // consumerConsState, _ := s.providerChain.GetConsensusState(s.path.EndpointA.ClientID, s.consumerChain.LastHeader.TrustedHeight) clientHeight := s.consumerChain.LastHeader.TrustedHeight clientTMValset := tmtypes.NewValidatorSet(s.consumerChain.Vals.Validators) clientSigners := s.consumerChain.Signers - altPrivVal := ibctestingmock.NewPV() - altPubKey, err := altPrivVal.GetPubKey() - s.Require().NoError(err) - altVal := tmtypes.NewValidator(altPubKey, 4) + // altPrivVal := ibctestingmock.NewPV() + // altPubKey, err := altPrivVal.GetPubKey() + // s.Require().NoError(err) + // altVal := tmtypes.NewValidator(altPubKey, 4) - altValset := tmtypes.NewValidatorSet([]*tmtypes.Validator{altVal}) + // altValset := tmtypes.NewValidatorSet([]*tmtypes.Validator{altVal}) + altValset := tmtypes.NewValidatorSet(s.consumerChain.Vals.Validators[0:2]) altSigners := make(map[string]tmtypes.PrivValidator, 1) - altSigners[altValset.Validators[0].Address.String()] = altPrivVal + // altSigners[altValset.Validators[0].Address.String()] = altPrivVal + altSigners[clientTMValset.Validators[0].Address.String()] = clientSigners[clientTMValset.Validators[0].Address.String()] + altSigners[clientTMValset.Validators[1].Address.String()] = clientSigners[clientTMValset.Validators[1].Address.String()] altTime := s.providerCtx().BlockTime().Add(time.Minute) - heightPlus5 := ibcclientypes.NewHeight(0, clientHeight.RevisionHeight+5) + // heightPlus5 := ibcclientypes.NewHeight(0, clientHeight.RevisionHeight+5) - heightPlus3 := ibcclientypes.NewHeight(0, clientHeight.RevisionHeight+3) + // heightPlus3 := ibcclientypes.NewHeight(0, clientHeight.RevisionHeight+3) testCases := []struct { name string @@ -51,318 +110,318 @@ func (s *CCVTestSuite) TestCheckConsumerMisbehaviour() { malleate func() expPass bool }{ - { - "misbehaviour height is at same height as trusted height", - func() *ibctmtypes.Misbehaviour { - return &ibctmtypes.Misbehaviour{ - ClientId: s.path.EndpointA.ClientID, - Header1: s.consumerChain.CreateTMClientHeader( - s.consumerChain.ChainID, - int64(clientHeight.RevisionHeight), - clientHeight, - altTime, - clientTMValset, - clientTMValset, - clientTMValset, - clientSigners, - ), - Header2: s.consumerChain.CreateTMClientHeader( - s.consumerChain.ChainID, - int64(clientHeight.RevisionHeight), - clientHeight, - s.providerCtx().BlockTime(), - clientTMValset, - clientTMValset, - clientTMValset, - clientSigners, - ), - } - }, - func() {}, - false, - }, { - "invalid chain ID", - func() *ibctmtypes.Misbehaviour { - - mb := &ibctmtypes.Misbehaviour{ - ClientId: s.path.EndpointA.ClientID, - Header1: s.consumerChain.CreateTMClientHeader( - s.consumerChain.ChainID, - int64(clientHeight.RevisionHeight+1), - clientHeight, - altTime, - clientTMValset, - clientTMValset, - clientTMValset, - clientSigners, - ), - Header2: s.consumerChain.CreateTMClientHeader( - s.consumerChain.ChainID, - int64(clientHeight.RevisionHeight+1), - clientHeight, - altTime, - clientTMValset, - clientTMValset, - clientTMValset, - clientSigners, - ), - } - - mb.Header1.Header.ChainID = "wrongchainid" - return mb - - }, - func() {}, - false, - }, - { - "invalid client ID", - func() *ibctmtypes.Misbehaviour { - - mb := &ibctmtypes.Misbehaviour{ - ClientId: "wrongclientid", - Header1: s.consumerChain.CreateTMClientHeader( - s.consumerChain.ChainID, - int64(clientHeight.RevisionHeight+1), - clientHeight, - altTime, - clientTMValset, - clientTMValset, - clientTMValset, - clientSigners, - ), - Header2: s.consumerChain.CreateTMClientHeader( - s.consumerChain.ChainID, - int64(clientHeight.RevisionHeight+1), - clientHeight, - altTime, - clientTMValset, - clientTMValset, - clientTMValset, - clientSigners, - ), - } - - return mb - - }, - func() {}, - false, - }, { - "different trusted height shouldn't pass", - func() *ibctmtypes.Misbehaviour { - return &ibctmtypes.Misbehaviour{ - ClientId: s.path.EndpointA.ClientID, - Header1: s.consumerChain.CreateTMClientHeader( - s.consumerChain.ChainID, - int64(clientHeight.RevisionHeight+1), - clientHeight, - altTime, - clientTMValset, - clientTMValset, - clientTMValset, - clientSigners, - ), - Header2: s.consumerChain.CreateTMClientHeader( - s.consumerChain.ChainID, - int64(clientHeight.RevisionHeight+1), - heightPlus3, - s.providerCtx().BlockTime(), - clientTMValset, - clientTMValset, - clientTMValset, - clientSigners, - ), - } - }, - func() {}, - false, - }, { - "trusting period misbehavior should pass", - func() *ibctmtypes.Misbehaviour { - return &ibctmtypes.Misbehaviour{ - ClientId: s.path.EndpointA.ClientID, - Header1: s.consumerChain.CreateTMClientHeader( - s.consumerChain.ChainID, - int64(clientHeight.RevisionHeight+1), - clientHeight, - altTime, - clientTMValset, - clientTMValset, - clientTMValset, - clientSigners, - ), - Header2: s.consumerChain.CreateTMClientHeader( - s.consumerChain.ChainID, - int64(clientHeight.RevisionHeight+1), - clientHeight, - s.providerCtx().BlockTime(), - clientTMValset, - clientTMValset, - clientTMValset, - clientSigners, - ), - } - }, - func() {}, - true, - }, - { - "time misbehavior should pass", - func() *ibctmtypes.Misbehaviour { - return &ibctmtypes.Misbehaviour{ - ClientId: s.path.EndpointA.ClientID, - Header1: s.consumerChain.CreateTMClientHeader( - s.consumerChain.ChainID, - int64(clientHeight.RevisionHeight+5), - clientHeight, - s.providerCtx().BlockTime(), - clientTMValset, - clientTMValset, - clientTMValset, - clientSigners, - ), - Header2: s.consumerChain.CreateTMClientHeader( - s.consumerChain.ChainID, - int64(clientHeight.RevisionHeight+1), - clientHeight, - altTime, - clientTMValset, - clientTMValset, - clientTMValset, - clientSigners, - ), - } - }, - func() {}, - true, - }, - { - "both later height should pass", - func() *ibctmtypes.Misbehaviour { - return &ibctmtypes.Misbehaviour{ - ClientId: s.path.EndpointA.ClientID, - Header1: s.consumerChain.CreateTMClientHeader( - s.consumerChain.ChainID, - int64(heightPlus5.RevisionHeight+1), - clientHeight, - s.providerCtx().BlockTime(), - clientTMValset, - clientTMValset, - clientTMValset, - clientSigners, - ), - Header2: s.consumerChain.CreateTMClientHeader( - s.consumerChain.ChainID, - int64(heightPlus5.RevisionHeight+1), - clientHeight, - altTime, - clientTMValset, - clientTMValset, - clientTMValset, - clientSigners, - ), - } - }, - func() { - - consumerConsState.(*ibctmtypes.ConsensusState).NextValidatorsHash = clientTMValset.Hash() - clientState := ibctmtypes.NewClientState(s.consumerChain.ChainID, ibctmtypes.DefaultTrustLevel, trustingPeriod, ubdPeriod, maxClockDrift, clientHeight, commitmenttypes.GetSDKSpecs(), []string{"upgrade", "upgradedIBCState"}, false, false) - - // store trusted consensus state for Header2 - intermediateConsState := &ibctmtypes.ConsensusState{ - Timestamp: altTime, - NextValidatorsHash: clientTMValset.Hash(), - } - - s.providerApp.GetIBCKeeper().ClientKeeper.SetClientConsensusState(s.providerCtx(), s.path.EndpointA.ClientID, heightPlus3, intermediateConsState) - - clientState.LatestHeight = heightPlus3 - s.providerApp.GetIBCKeeper().ClientKeeper.SetClientState(s.providerCtx(), s.path.EndpointA.ClientID, clientState) - }, - true, - }, - { - "trusted ConsensusState1 not found", - func() *ibctmtypes.Misbehaviour { - return &ibctmtypes.Misbehaviour{ - ClientId: s.path.EndpointA.ClientID, - Header1: s.consumerChain.CreateTMClientHeader( - s.consumerChain.ChainID, - int64(clientHeight.RevisionHeight), - heightPlus3, - altTime, - clientTMValset, - clientTMValset, - clientTMValset, - clientSigners, - ), - Header2: s.consumerChain.CreateTMClientHeader( - s.consumerChain.ChainID, - int64(clientHeight.RevisionHeight), - clientHeight, - s.providerCtx().BlockTime(), - clientTMValset, - clientTMValset, - clientTMValset, - clientSigners, - ), - } - }, - func() {}, - false, - }, - { - "trusted ConsensusState2 not found", - func() *ibctmtypes.Misbehaviour { - return &ibctmtypes.Misbehaviour{ - ClientId: s.path.EndpointA.ClientID, - Header1: s.consumerChain.CreateTMClientHeader( - s.consumerChain.ChainID, - int64(clientHeight.RevisionHeight), - clientHeight, - altTime, - clientTMValset, - clientTMValset, - clientTMValset, - clientSigners, - ), - Header2: s.consumerChain.CreateTMClientHeader( - s.consumerChain.ChainID, - int64(clientHeight.RevisionHeight), - heightPlus3, - s.providerCtx().BlockTime(), - clientTMValset, - clientTMValset, - clientTMValset, - clientSigners, - ), - } - }, - func() {}, - false, - }, - { - "client state not found", - func() *ibctmtypes.Misbehaviour { - return &ibctmtypes.Misbehaviour{} - }, - func() {}, - false, - }, { - "client already is not active - client is frozen", - func() *ibctmtypes.Misbehaviour { - return &ibctmtypes.Misbehaviour{} - }, - func() { - consumerConsState.(*ibctmtypes.ConsensusState).NextValidatorsHash = clientTMValset.Hash() - clientState := ibctmtypes.NewClientState(s.consumerChain.ChainID, ibctmtypes.DefaultTrustLevel, trustingPeriod, ubdPeriod, maxClockDrift, clientHeight, commitmenttypes.GetSDKSpecs(), []string{"upgrade", "upgradedIBCState"}, false, false) - - clientState.FrozenHeight = ibcclientypes.NewHeight(0, 1) - s.providerApp.GetIBCKeeper().ClientKeeper.SetClientState(s.providerCtx(), s.path.EndpointA.ClientID, clientState) - }, - false, - }, + // { + // "misbehaviour height is at same height as trusted height", + // func() *ibctmtypes.Misbehaviour { + // return &ibctmtypes.Misbehaviour{ + // ClientId: s.path.EndpointA.ClientID, + // Header1: s.consumerChain.CreateTMClientHeader( + // s.consumerChain.ChainID, + // int64(clientHeight.RevisionHeight), + // clientHeight, + // altTime, + // clientTMValset, + // clientTMValset, + // clientTMValset, + // clientSigners, + // ), + // Header2: s.consumerChain.CreateTMClientHeader( + // s.consumerChain.ChainID, + // int64(clientHeight.RevisionHeight), + // clientHeight, + // s.providerCtx().BlockTime(), + // clientTMValset, + // clientTMValset, + // clientTMValset, + // clientSigners, + // ), + // } + // }, + // func() {}, + // false, + // }, { + // "invalid chain ID", + // func() *ibctmtypes.Misbehaviour { + + // mb := &ibctmtypes.Misbehaviour{ + // ClientId: s.path.EndpointA.ClientID, + // Header1: s.consumerChain.CreateTMClientHeader( + // s.consumerChain.ChainID, + // int64(clientHeight.RevisionHeight+1), + // clientHeight, + // altTime, + // clientTMValset, + // clientTMValset, + // clientTMValset, + // clientSigners, + // ), + // Header2: s.consumerChain.CreateTMClientHeader( + // s.consumerChain.ChainID, + // int64(clientHeight.RevisionHeight+1), + // clientHeight, + // altTime, + // clientTMValset, + // clientTMValset, + // clientTMValset, + // clientSigners, + // ), + // } + + // mb.Header1.Header.ChainID = "wrongchainid" + // return mb + + // }, + // func() {}, + // false, + // }, + // { + // "invalid client ID", + // func() *ibctmtypes.Misbehaviour { + + // mb := &ibctmtypes.Misbehaviour{ + // ClientId: "wrongclientid", + // Header1: s.consumerChain.CreateTMClientHeader( + // s.consumerChain.ChainID, + // int64(clientHeight.RevisionHeight+1), + // clientHeight, + // altTime, + // clientTMValset, + // clientTMValset, + // clientTMValset, + // clientSigners, + // ), + // Header2: s.consumerChain.CreateTMClientHeader( + // s.consumerChain.ChainID, + // int64(clientHeight.RevisionHeight+1), + // clientHeight, + // altTime, + // clientTMValset, + // clientTMValset, + // clientTMValset, + // clientSigners, + // ), + // } + + // return mb + + // }, + // func() {}, + // false, + // }, { + // "different trusted height shouldn't pass", + // func() *ibctmtypes.Misbehaviour { + // return &ibctmtypes.Misbehaviour{ + // ClientId: s.path.EndpointA.ClientID, + // Header1: s.consumerChain.CreateTMClientHeader( + // s.consumerChain.ChainID, + // int64(clientHeight.RevisionHeight+1), + // clientHeight, + // altTime, + // clientTMValset, + // clientTMValset, + // clientTMValset, + // clientSigners, + // ), + // Header2: s.consumerChain.CreateTMClientHeader( + // s.consumerChain.ChainID, + // int64(clientHeight.RevisionHeight+1), + // heightPlus3, + // s.providerCtx().BlockTime(), + // clientTMValset, + // clientTMValset, + // clientTMValset, + // clientSigners, + // ), + // } + // }, + // func() {}, + // false, + // }, { + // "trusting period misbehavior should pass", + // func() *ibctmtypes.Misbehaviour { + // return &ibctmtypes.Misbehaviour{ + // ClientId: s.path.EndpointA.ClientID, + // Header1: s.consumerChain.CreateTMClientHeader( + // s.consumerChain.ChainID, + // int64(clientHeight.RevisionHeight+1), + // clientHeight, + // altTime, + // clientTMValset, + // clientTMValset, + // clientTMValset, + // clientSigners, + // ), + // Header2: s.consumerChain.CreateTMClientHeader( + // s.consumerChain.ChainID, + // int64(clientHeight.RevisionHeight+1), + // clientHeight, + // s.providerCtx().BlockTime(), + // clientTMValset, + // clientTMValset, + // clientTMValset, + // clientSigners, + // ), + // } + // }, + // func() {}, + // true, + // }, + // { + // "time misbehavior should pass", + // func() *ibctmtypes.Misbehaviour { + // return &ibctmtypes.Misbehaviour{ + // ClientId: s.path.EndpointA.ClientID, + // Header1: s.consumerChain.CreateTMClientHeader( + // s.consumerChain.ChainID, + // int64(clientHeight.RevisionHeight+5), + // clientHeight, + // s.providerCtx().BlockTime(), + // clientTMValset, + // clientTMValset, + // clientTMValset, + // clientSigners, + // ), + // Header2: s.consumerChain.CreateTMClientHeader( + // s.consumerChain.ChainID, + // int64(clientHeight.RevisionHeight+1), + // clientHeight, + // altTime, + // clientTMValset, + // clientTMValset, + // clientTMValset, + // clientSigners, + // ), + // } + // }, + // func() {}, + // true, + // }, + // { + // "both later height should pass", + // func() *ibctmtypes.Misbehaviour { + // return &ibctmtypes.Misbehaviour{ + // ClientId: s.path.EndpointA.ClientID, + // Header1: s.consumerChain.CreateTMClientHeader( + // s.consumerChain.ChainID, + // int64(heightPlus5.RevisionHeight+1), + // clientHeight, + // s.providerCtx().BlockTime(), + // clientTMValset, + // clientTMValset, + // clientTMValset, + // clientSigners, + // ), + // Header2: s.consumerChain.CreateTMClientHeader( + // s.consumerChain.ChainID, + // int64(heightPlus5.RevisionHeight+1), + // clientHeight, + // altTime, + // clientTMValset, + // clientTMValset, + // clientTMValset, + // clientSigners, + // ), + // } + // }, + // func() { + + // consumerConsState.(*ibctmtypes.ConsensusState).NextValidatorsHash = clientTMValset.Hash() + // clientState := ibctmtypes.NewClientState(s.consumerChain.ChainID, ibctmtypes.DefaultTrustLevel, trustingPeriod, ubdPeriod, maxClockDrift, clientHeight, commitmenttypes.GetSDKSpecs(), []string{"upgrade", "upgradedIBCState"}, false, false) + + // // store trusted consensus state for Header2 + // intermediateConsState := &ibctmtypes.ConsensusState{ + // Timestamp: altTime, + // NextValidatorsHash: clientTMValset.Hash(), + // } + + // s.providerApp.GetIBCKeeper().ClientKeeper.SetClientConsensusState(s.providerCtx(), s.path.EndpointA.ClientID, heightPlus3, intermediateConsState) + + // clientState.LatestHeight = heightPlus3 + // s.providerApp.GetIBCKeeper().ClientKeeper.SetClientState(s.providerCtx(), s.path.EndpointA.ClientID, clientState) + // }, + // true, + // }, + // { + // "trusted ConsensusState1 not found", + // func() *ibctmtypes.Misbehaviour { + // return &ibctmtypes.Misbehaviour{ + // ClientId: s.path.EndpointA.ClientID, + // Header1: s.consumerChain.CreateTMClientHeader( + // s.consumerChain.ChainID, + // int64(clientHeight.RevisionHeight), + // heightPlus3, + // altTime, + // clientTMValset, + // clientTMValset, + // clientTMValset, + // clientSigners, + // ), + // Header2: s.consumerChain.CreateTMClientHeader( + // s.consumerChain.ChainID, + // int64(clientHeight.RevisionHeight), + // clientHeight, + // s.providerCtx().BlockTime(), + // clientTMValset, + // clientTMValset, + // clientTMValset, + // clientSigners, + // ), + // } + // }, + // func() {}, + // false, + // }, + // { + // "trusted ConsensusState2 not found", + // func() *ibctmtypes.Misbehaviour { + // return &ibctmtypes.Misbehaviour{ + // ClientId: s.path.EndpointA.ClientID, + // Header1: s.consumerChain.CreateTMClientHeader( + // s.consumerChain.ChainID, + // int64(clientHeight.RevisionHeight), + // clientHeight, + // altTime, + // clientTMValset, + // clientTMValset, + // clientTMValset, + // clientSigners, + // ), + // Header2: s.consumerChain.CreateTMClientHeader( + // s.consumerChain.ChainID, + // int64(clientHeight.RevisionHeight), + // heightPlus3, + // s.providerCtx().BlockTime(), + // clientTMValset, + // clientTMValset, + // clientTMValset, + // clientSigners, + // ), + // } + // }, + // func() {}, + // false, + // }, + // { + // "client state not found", + // func() *ibctmtypes.Misbehaviour { + // return &ibctmtypes.Misbehaviour{} + // }, + // func() {}, + // false, + // }, { + // "client already is not active - client is frozen", + // func() *ibctmtypes.Misbehaviour { + // return &ibctmtypes.Misbehaviour{} + // }, + // func() { + // consumerConsState.(*ibctmtypes.ConsensusState).NextValidatorsHash = clientTMValset.Hash() + // clientState := ibctmtypes.NewClientState(s.consumerChain.ChainID, ibctmtypes.DefaultTrustLevel, trustingPeriod, ubdPeriod, maxClockDrift, clientHeight, commitmenttypes.GetSDKSpecs(), []string{"upgrade", "upgradedIBCState"}, false, false) + + // clientState.FrozenHeight = ibcclientypes.NewHeight(0, 1) + // s.providerApp.GetIBCKeeper().ClientKeeper.SetClientState(s.providerCtx(), s.path.EndpointA.ClientID, clientState) + // }, + // false, + // }, { "misbehaviour check failed", func() *ibctmtypes.Misbehaviour { @@ -391,7 +450,7 @@ func (s *CCVTestSuite) TestCheckConsumerMisbehaviour() { } }, func() {}, - false, + true, }, } @@ -403,7 +462,7 @@ func (s *CCVTestSuite) TestCheckConsumerMisbehaviour() { tc.malleate() - err = s.providerApp.GetProviderKeeper().CheckConsumerMisbehaviour( + err := s.providerApp.GetProviderKeeper().CheckConsumerMisbehaviour( cCtx, *tc.misbehaviour(), ) @@ -428,37 +487,95 @@ func (s *CCVTestSuite) TestGetByzantineValidators() { s.SetupCCVChannel(s.path) // required to have the consumer client revision height greater than 0 s.SendEmptyVSCPacket() - s.consumerCtx().BlockHeight() - // get consumer client state - // consumerClientState := s.providerChain.GetClientState(s.path.EndpointA.ClientID) - - // create two conflicting headers and forge them - // commit new block on consumer - s.coordinator.CommitBlock(s.consumerChain) + // consumerConsState, _ := s.providerChain.GetConsensusState(s.path.EndpointA.ClientID, s.consumerChain.LastHeader.TrustedHeight) + altTime := s.providerCtx().BlockTime().Add(time.Minute) - // get trusted height from client state - trustedHeight := s.providerChain.GetClientState(s.path.EndpointA.ClientID).GetLatestHeight().(clienttypes.Height) - tmTrustedVals := s.consumerChain.Vals - // get last consumer header - header := s.consumerChain.LastHeader + clientHeight := s.consumerChain.LastHeader.TrustedHeight + clientTMValset := tmtypes.NewValidatorSet(s.consumerChain.Vals.Validators) + clientSigners := s.consumerChain.Signers - header.TrustedHeight = trustedHeight - trustedVals, err := tmTrustedVals.ToProto() - s.NoError(err) - header.TrustedValidators = trustedVals + altValset := tmtypes.NewValidatorSet(s.consumerChain.Vals.Validators[0:2]) + altSigners := make(map[string]tmtypes.PrivValidator, 1) + // altSigners[altValset.Validators[0].Address.String()] = altPrivVal + altSigners[clientTMValset.Validators[0].Address.String()] = clientSigners[clientTMValset.Validators[0].Address.String()] + altSigners[clientTMValset.Validators[1].Address.String()] = clientSigners[clientTMValset.Validators[1].Address.String()] + + misb := &ibctmtypes.Misbehaviour{ + ClientId: s.path.EndpointA.ClientID, + Header1: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight+1), + clientHeight, + altTime, + clientTMValset, + clientTMValset, + clientTMValset, + clientSigners, + ), + Header2: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight+1), + clientHeight, + altTime, + altValset, + altValset, + clientTMValset, + altSigners, + ), + } - msg, err := clienttypes.NewMsgUpdateClient( - s.path.EndpointB.ClientID, header, - s.path.EndpointB.Chain.SenderAccount.GetAddress().String(), + err := s.providerApp.GetProviderKeeper().CheckConsumerMisbehaviour( + s.providerCtx(), + *misb, ) + s.NoError(err) - header2 := *header - header2.SignedHeader.Commit.BlockID.Hash = []byte("forge_hash") + val, err := s.providerApp.GetProviderKeeper().GetByzantineValidators( + s.providerCtx(), + *misb, + ) - _, err = s.providerChain.SendMsgs(msg) s.NoError(err) - fmt.Printf("%+v\n", msg.Header) + fmt.Println(len(val)) + fmt.Println(len(s.consumerChain.Vals.Validators)) } + +// s.SetupCCVChannel(s.path) +// // required to have the consumer client revision height greater than 0 +// s.SendEmptyVSCPacket() +// s.consumerCtx().BlockHeight() +// // get consumer client state +// // consumerClientState := s.providerChain.GetClientState(s.path.EndpointA.ClientID) + +// // create two conflicting headers and forge them +// // commit new block on consumer + +// s.coordinator.CommitBlock(s.consumerChain) + +// // get trusted height from client state +// trustedHeight := s.providerChain.GetClientState(s.path.EndpointA.ClientID).GetLatestHeight().(clienttypes.Height) +// tmTrustedVals := s.consumerChain.Vals +// // get last consumer header +// header := s.consumerChain.LastHeader + +// header.TrustedHeight = trustedHeight +// trustedVals, err := tmTrustedVals.ToProto() +// s.NoError(err) +// header.TrustedValidators = trustedVals + +// msg, err := clienttypes.NewMsgUpdateClient( +// s.path.EndpointB.ClientID, header, +// s.path.EndpointB.Chain.SenderAccount.GetAddress().String(), +// ) +// s.NoError(err) + +// header2 := *header +// header2.SignedHeader.Commit.BlockID.Hash = []byte("forge_hash") + +// _, err = s.providerChain.SendMsgs(msg) +// s.NoError(err) + +// fmt.Printf("%+v\n", msg.Header) diff --git a/testutil/integration/debug_test.go b/testutil/integration/debug_test.go index 149915282b..0b87bdf92a 100644 --- a/testutil/integration/debug_test.go +++ b/testutil/integration/debug_test.go @@ -261,6 +261,10 @@ func TestRecycleTransferChannel(t *testing.T) { // Misbehaviour test // +func TestHandleConsumerMisbehaviour(t *testing.T) { + runCCVTestByName(t, "TestHandleConsumerMisbehaviour") +} + func TestCheckConsumerMisbehaviour(t *testing.T) { runCCVTestByName(t, "TestCheckConsumerMisbehaviour") } diff --git a/x/ccv/provider/keeper/misbehaviour.go b/x/ccv/provider/keeper/misbehaviour.go index 1f843fc517..a3a4e3edef 100644 --- a/x/ccv/provider/keeper/misbehaviour.go +++ b/x/ccv/provider/keeper/misbehaviour.go @@ -26,15 +26,18 @@ func (k Keeper) HandleConsumerMisbehaviour(ctx sdk.Context, misbehaviour ibctmty // isn't too old. see ibc-go/modules/light-clients/07-tendermint/types/misbehaviour_handle.go for _, v := range byzantineValidators { // convert address to key assigned - consAddr := sdk.ConsAddress(v.Address.Bytes()) - validator := k.stakingKeeper.ValidatorByConsAddr(ctx, consAddr) - if validator == nil || validator.IsUnbonded() { + consuAddr := sdk.ConsAddress(v.Address.Bytes()) + provAddr := k.GetProviderAddrFromConsumerAddr(ctx, misbehaviour.Header1.Header.ChainID, consuAddr) + k.stakingKeeper.ValidatorByConsAddr(ctx, consuAddr) + val, ok := k.stakingKeeper.GetValidatorByConsAddr(ctx, provAddr) + if !ok || val.IsUnbonded() { // Defensive: Simulation doesn't take unbonding periods into account, and // Tendermint might break this assumption at some point. - k.Logger(ctx).Error("validator not found or is unbonded", consAddr) + k.Logger(ctx).Error("validator not found or is unbonded", provAddr.String()) + continue } - k.slashingKeeper.JailUntil(ctx, consAddr, evidencetypes.DoubleSignJailEndTime) - k.slashingKeeper.Tombstone(ctx, consAddr) + k.slashingKeeper.JailUntil(ctx, provAddr, evidencetypes.DoubleSignJailEndTime) + k.slashingKeeper.Tombstone(ctx, provAddr) // store misbehaviour? } From 1444690d9c2b7298e2ee5c2748e4b2c1744a1860 Mon Sep 17 00:00:00 2001 From: Simon Noetzlin Date: Fri, 16 Jun 2023 16:35:08 +0200 Subject: [PATCH 14/33] pass first jailing integration test --- tests/integration/misbehaviour.go | 6 ++++-- x/ccv/provider/keeper/misbehaviour.go | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/integration/misbehaviour.go b/tests/integration/misbehaviour.go index a9d20a1f88..a3eb894fec 100644 --- a/tests/integration/misbehaviour.go +++ b/tests/integration/misbehaviour.go @@ -68,8 +68,10 @@ func (s *CCVTestSuite) TestHandleConsumerMisbehaviour() { for _, v := range altValset.Validators { consuAddr := sdk.ConsAddress(v.Address.Bytes()) provAddr := s.providerApp.GetProviderKeeper().GetProviderAddrFromConsumerAddr(s.providerCtx(), s.consumerChain.ChainID, consuAddr) - s.providerApp.GetE2eStakingKeeper().ValidatorByConsAddr(s.providerCtx(), consuAddr) - val, ok := s.providerApp.GetProviderKeeper().stakingKeeper.GetValidatorByConsAddr(s.providerCtx(), provAddr) + val, ok := s.providerApp.GetE2eStakingKeeper().GetValidatorByConsAddr(s.providerCtx(), provAddr) + s.Require().True(ok) + s.Require().True(val.Jailed) + s.Require().True(s.providerApp.GetE2eSlashingKeeper().IsTombstoned(s.providerCtx(), provAddr)) } } diff --git a/x/ccv/provider/keeper/misbehaviour.go b/x/ccv/provider/keeper/misbehaviour.go index a3a4e3edef..a57add7564 100644 --- a/x/ccv/provider/keeper/misbehaviour.go +++ b/x/ccv/provider/keeper/misbehaviour.go @@ -36,6 +36,8 @@ func (k Keeper) HandleConsumerMisbehaviour(ctx sdk.Context, misbehaviour ibctmty k.Logger(ctx).Error("validator not found or is unbonded", provAddr.String()) continue } + // TODO: continue if validator is already tombstoned/jailed + log + k.stakingKeeper.Jail(ctx, provAddr) k.slashingKeeper.JailUntil(ctx, provAddr, evidencetypes.DoubleSignJailEndTime) k.slashingKeeper.Tombstone(ctx, provAddr) // store misbehaviour? From 9c31932aafa91a078eba36a0b6deba4fddc97087 Mon Sep 17 00:00:00 2001 From: Simon Noetzlin Date: Fri, 16 Jun 2023 17:45:48 +0200 Subject: [PATCH 15/33] format tests --- tests/integration/misbehaviour.go | 699 ++++++++++++++---------------- 1 file changed, 328 insertions(+), 371 deletions(-) diff --git a/tests/integration/misbehaviour.go b/tests/integration/misbehaviour.go index a3eb894fec..046d03fd16 100644 --- a/tests/integration/misbehaviour.go +++ b/tests/integration/misbehaviour.go @@ -1,12 +1,14 @@ package integration import ( - "fmt" "time" sdk "github.com/cosmos/cosmos-sdk/types" + ibcclientypes "github.com/cosmos/ibc-go/v4/modules/core/02-client/types" + commitmenttypes "github.com/cosmos/ibc-go/v4/modules/core/23-commitment/types" ibctmtypes "github.com/cosmos/ibc-go/v4/modules/light-clients/07-tendermint/types" + ibctestingmock "github.com/cosmos/ibc-go/v4/testing/mock" tmtypes "github.com/tendermint/tendermint/types" ) @@ -25,7 +27,6 @@ func (s *CCVTestSuite) TestHandleConsumerMisbehaviour() { s.setDefaultValSigningInfo(*v) } - // consumerConsState, _ := s.providerChain.GetConsensusState(s.path.EndpointA.ClientID, s.consumerChain.LastHeader.TrustedHeight) altTime := s.providerCtx().BlockTime().Add(time.Minute) clientHeight := s.consumerChain.LastHeader.TrustedHeight @@ -34,7 +35,6 @@ func (s *CCVTestSuite) TestHandleConsumerMisbehaviour() { altValset := tmtypes.NewValidatorSet(s.consumerChain.Vals.Validators[0:2]) altSigners := make(map[string]tmtypes.PrivValidator, 1) - // altSigners[altValset.Validators[0].Address.String()] = altPrivVal altSigners[clientTMValset.Validators[0].Address.String()] = clientSigners[clientTMValset.Validators[0].Address.String()] altSigners[clientTMValset.Validators[1].Address.String()] = clientSigners[clientTMValset.Validators[1].Address.String()] @@ -83,28 +83,25 @@ func (s *CCVTestSuite) TestCheckConsumerMisbehaviour() { // required to have the consumer client revision height greater than 0 s.SendEmptyVSCPacket() - // consumerConsState, _ := s.providerChain.GetConsensusState(s.path.EndpointA.ClientID, s.consumerChain.LastHeader.TrustedHeight) + consumerConsState, ok := s.providerChain.GetConsensusState(s.path.EndpointA.ClientID, s.consumerChain.LastHeader.TrustedHeight) + s.Require().True(ok) clientHeight := s.consumerChain.LastHeader.TrustedHeight clientTMValset := tmtypes.NewValidatorSet(s.consumerChain.Vals.Validators) clientSigners := s.consumerChain.Signers - // altPrivVal := ibctestingmock.NewPV() - // altPubKey, err := altPrivVal.GetPubKey() - // s.Require().NoError(err) - // altVal := tmtypes.NewValidator(altPubKey, 4) + altPrivVal := ibctestingmock.NewPV() + altPubKey, err := altPrivVal.GetPubKey() + s.Require().NoError(err) + altVal := tmtypes.NewValidator(altPubKey, 4) - // altValset := tmtypes.NewValidatorSet([]*tmtypes.Validator{altVal}) - altValset := tmtypes.NewValidatorSet(s.consumerChain.Vals.Validators[0:2]) + altValset := tmtypes.NewValidatorSet([]*tmtypes.Validator{altVal}) altSigners := make(map[string]tmtypes.PrivValidator, 1) - // altSigners[altValset.Validators[0].Address.String()] = altPrivVal - altSigners[clientTMValset.Validators[0].Address.String()] = clientSigners[clientTMValset.Validators[0].Address.String()] - altSigners[clientTMValset.Validators[1].Address.String()] = clientSigners[clientTMValset.Validators[1].Address.String()] + altSigners[altValset.Validators[0].Address.String()] = altPrivVal altTime := s.providerCtx().BlockTime().Add(time.Minute) - // heightPlus5 := ibcclientypes.NewHeight(0, clientHeight.RevisionHeight+5) - - // heightPlus3 := ibcclientypes.NewHeight(0, clientHeight.RevisionHeight+3) + heightPlus5 := ibcclientypes.NewHeight(0, clientHeight.RevisionHeight+5) + heightPlus3 := ibcclientypes.NewHeight(0, clientHeight.RevisionHeight+3) testCases := []struct { name string @@ -112,318 +109,318 @@ func (s *CCVTestSuite) TestCheckConsumerMisbehaviour() { malleate func() expPass bool }{ - // { - // "misbehaviour height is at same height as trusted height", - // func() *ibctmtypes.Misbehaviour { - // return &ibctmtypes.Misbehaviour{ - // ClientId: s.path.EndpointA.ClientID, - // Header1: s.consumerChain.CreateTMClientHeader( - // s.consumerChain.ChainID, - // int64(clientHeight.RevisionHeight), - // clientHeight, - // altTime, - // clientTMValset, - // clientTMValset, - // clientTMValset, - // clientSigners, - // ), - // Header2: s.consumerChain.CreateTMClientHeader( - // s.consumerChain.ChainID, - // int64(clientHeight.RevisionHeight), - // clientHeight, - // s.providerCtx().BlockTime(), - // clientTMValset, - // clientTMValset, - // clientTMValset, - // clientSigners, - // ), - // } - // }, - // func() {}, - // false, - // }, { - // "invalid chain ID", - // func() *ibctmtypes.Misbehaviour { - - // mb := &ibctmtypes.Misbehaviour{ - // ClientId: s.path.EndpointA.ClientID, - // Header1: s.consumerChain.CreateTMClientHeader( - // s.consumerChain.ChainID, - // int64(clientHeight.RevisionHeight+1), - // clientHeight, - // altTime, - // clientTMValset, - // clientTMValset, - // clientTMValset, - // clientSigners, - // ), - // Header2: s.consumerChain.CreateTMClientHeader( - // s.consumerChain.ChainID, - // int64(clientHeight.RevisionHeight+1), - // clientHeight, - // altTime, - // clientTMValset, - // clientTMValset, - // clientTMValset, - // clientSigners, - // ), - // } - - // mb.Header1.Header.ChainID = "wrongchainid" - // return mb - - // }, - // func() {}, - // false, - // }, - // { - // "invalid client ID", - // func() *ibctmtypes.Misbehaviour { - - // mb := &ibctmtypes.Misbehaviour{ - // ClientId: "wrongclientid", - // Header1: s.consumerChain.CreateTMClientHeader( - // s.consumerChain.ChainID, - // int64(clientHeight.RevisionHeight+1), - // clientHeight, - // altTime, - // clientTMValset, - // clientTMValset, - // clientTMValset, - // clientSigners, - // ), - // Header2: s.consumerChain.CreateTMClientHeader( - // s.consumerChain.ChainID, - // int64(clientHeight.RevisionHeight+1), - // clientHeight, - // altTime, - // clientTMValset, - // clientTMValset, - // clientTMValset, - // clientSigners, - // ), - // } - - // return mb - - // }, - // func() {}, - // false, - // }, { - // "different trusted height shouldn't pass", - // func() *ibctmtypes.Misbehaviour { - // return &ibctmtypes.Misbehaviour{ - // ClientId: s.path.EndpointA.ClientID, - // Header1: s.consumerChain.CreateTMClientHeader( - // s.consumerChain.ChainID, - // int64(clientHeight.RevisionHeight+1), - // clientHeight, - // altTime, - // clientTMValset, - // clientTMValset, - // clientTMValset, - // clientSigners, - // ), - // Header2: s.consumerChain.CreateTMClientHeader( - // s.consumerChain.ChainID, - // int64(clientHeight.RevisionHeight+1), - // heightPlus3, - // s.providerCtx().BlockTime(), - // clientTMValset, - // clientTMValset, - // clientTMValset, - // clientSigners, - // ), - // } - // }, - // func() {}, - // false, - // }, { - // "trusting period misbehavior should pass", - // func() *ibctmtypes.Misbehaviour { - // return &ibctmtypes.Misbehaviour{ - // ClientId: s.path.EndpointA.ClientID, - // Header1: s.consumerChain.CreateTMClientHeader( - // s.consumerChain.ChainID, - // int64(clientHeight.RevisionHeight+1), - // clientHeight, - // altTime, - // clientTMValset, - // clientTMValset, - // clientTMValset, - // clientSigners, - // ), - // Header2: s.consumerChain.CreateTMClientHeader( - // s.consumerChain.ChainID, - // int64(clientHeight.RevisionHeight+1), - // clientHeight, - // s.providerCtx().BlockTime(), - // clientTMValset, - // clientTMValset, - // clientTMValset, - // clientSigners, - // ), - // } - // }, - // func() {}, - // true, - // }, - // { - // "time misbehavior should pass", - // func() *ibctmtypes.Misbehaviour { - // return &ibctmtypes.Misbehaviour{ - // ClientId: s.path.EndpointA.ClientID, - // Header1: s.consumerChain.CreateTMClientHeader( - // s.consumerChain.ChainID, - // int64(clientHeight.RevisionHeight+5), - // clientHeight, - // s.providerCtx().BlockTime(), - // clientTMValset, - // clientTMValset, - // clientTMValset, - // clientSigners, - // ), - // Header2: s.consumerChain.CreateTMClientHeader( - // s.consumerChain.ChainID, - // int64(clientHeight.RevisionHeight+1), - // clientHeight, - // altTime, - // clientTMValset, - // clientTMValset, - // clientTMValset, - // clientSigners, - // ), - // } - // }, - // func() {}, - // true, - // }, - // { - // "both later height should pass", - // func() *ibctmtypes.Misbehaviour { - // return &ibctmtypes.Misbehaviour{ - // ClientId: s.path.EndpointA.ClientID, - // Header1: s.consumerChain.CreateTMClientHeader( - // s.consumerChain.ChainID, - // int64(heightPlus5.RevisionHeight+1), - // clientHeight, - // s.providerCtx().BlockTime(), - // clientTMValset, - // clientTMValset, - // clientTMValset, - // clientSigners, - // ), - // Header2: s.consumerChain.CreateTMClientHeader( - // s.consumerChain.ChainID, - // int64(heightPlus5.RevisionHeight+1), - // clientHeight, - // altTime, - // clientTMValset, - // clientTMValset, - // clientTMValset, - // clientSigners, - // ), - // } - // }, - // func() { - - // consumerConsState.(*ibctmtypes.ConsensusState).NextValidatorsHash = clientTMValset.Hash() - // clientState := ibctmtypes.NewClientState(s.consumerChain.ChainID, ibctmtypes.DefaultTrustLevel, trustingPeriod, ubdPeriod, maxClockDrift, clientHeight, commitmenttypes.GetSDKSpecs(), []string{"upgrade", "upgradedIBCState"}, false, false) - - // // store trusted consensus state for Header2 - // intermediateConsState := &ibctmtypes.ConsensusState{ - // Timestamp: altTime, - // NextValidatorsHash: clientTMValset.Hash(), - // } - - // s.providerApp.GetIBCKeeper().ClientKeeper.SetClientConsensusState(s.providerCtx(), s.path.EndpointA.ClientID, heightPlus3, intermediateConsState) - - // clientState.LatestHeight = heightPlus3 - // s.providerApp.GetIBCKeeper().ClientKeeper.SetClientState(s.providerCtx(), s.path.EndpointA.ClientID, clientState) - // }, - // true, - // }, - // { - // "trusted ConsensusState1 not found", - // func() *ibctmtypes.Misbehaviour { - // return &ibctmtypes.Misbehaviour{ - // ClientId: s.path.EndpointA.ClientID, - // Header1: s.consumerChain.CreateTMClientHeader( - // s.consumerChain.ChainID, - // int64(clientHeight.RevisionHeight), - // heightPlus3, - // altTime, - // clientTMValset, - // clientTMValset, - // clientTMValset, - // clientSigners, - // ), - // Header2: s.consumerChain.CreateTMClientHeader( - // s.consumerChain.ChainID, - // int64(clientHeight.RevisionHeight), - // clientHeight, - // s.providerCtx().BlockTime(), - // clientTMValset, - // clientTMValset, - // clientTMValset, - // clientSigners, - // ), - // } - // }, - // func() {}, - // false, - // }, - // { - // "trusted ConsensusState2 not found", - // func() *ibctmtypes.Misbehaviour { - // return &ibctmtypes.Misbehaviour{ - // ClientId: s.path.EndpointA.ClientID, - // Header1: s.consumerChain.CreateTMClientHeader( - // s.consumerChain.ChainID, - // int64(clientHeight.RevisionHeight), - // clientHeight, - // altTime, - // clientTMValset, - // clientTMValset, - // clientTMValset, - // clientSigners, - // ), - // Header2: s.consumerChain.CreateTMClientHeader( - // s.consumerChain.ChainID, - // int64(clientHeight.RevisionHeight), - // heightPlus3, - // s.providerCtx().BlockTime(), - // clientTMValset, - // clientTMValset, - // clientTMValset, - // clientSigners, - // ), - // } - // }, - // func() {}, - // false, - // }, - // { - // "client state not found", - // func() *ibctmtypes.Misbehaviour { - // return &ibctmtypes.Misbehaviour{} - // }, - // func() {}, - // false, - // }, { - // "client already is not active - client is frozen", - // func() *ibctmtypes.Misbehaviour { - // return &ibctmtypes.Misbehaviour{} - // }, - // func() { - // consumerConsState.(*ibctmtypes.ConsensusState).NextValidatorsHash = clientTMValset.Hash() - // clientState := ibctmtypes.NewClientState(s.consumerChain.ChainID, ibctmtypes.DefaultTrustLevel, trustingPeriod, ubdPeriod, maxClockDrift, clientHeight, commitmenttypes.GetSDKSpecs(), []string{"upgrade", "upgradedIBCState"}, false, false) - - // clientState.FrozenHeight = ibcclientypes.NewHeight(0, 1) - // s.providerApp.GetIBCKeeper().ClientKeeper.SetClientState(s.providerCtx(), s.path.EndpointA.ClientID, clientState) - // }, - // false, - // }, + { + "misbehaviour height is at same height as trusted height", + func() *ibctmtypes.Misbehaviour { + return &ibctmtypes.Misbehaviour{ + ClientId: s.path.EndpointA.ClientID, + Header1: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight), + clientHeight, + altTime, + clientTMValset, + clientTMValset, + clientTMValset, + clientSigners, + ), + Header2: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight), + clientHeight, + s.providerCtx().BlockTime(), + clientTMValset, + clientTMValset, + clientTMValset, + clientSigners, + ), + } + }, + func() {}, + false, + }, { + "invalid chain ID", + func() *ibctmtypes.Misbehaviour { + + mb := &ibctmtypes.Misbehaviour{ + ClientId: s.path.EndpointA.ClientID, + Header1: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight+1), + clientHeight, + altTime, + clientTMValset, + clientTMValset, + clientTMValset, + clientSigners, + ), + Header2: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight+1), + clientHeight, + altTime, + clientTMValset, + clientTMValset, + clientTMValset, + clientSigners, + ), + } + + mb.Header1.Header.ChainID = "wrongchainid" + return mb + + }, + func() {}, + false, + }, + { + "invalid client ID", + func() *ibctmtypes.Misbehaviour { + + mb := &ibctmtypes.Misbehaviour{ + ClientId: "wrongclientid", + Header1: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight+1), + clientHeight, + altTime, + clientTMValset, + clientTMValset, + clientTMValset, + clientSigners, + ), + Header2: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight+1), + clientHeight, + altTime, + clientTMValset, + clientTMValset, + clientTMValset, + clientSigners, + ), + } + + return mb + + }, + func() {}, + false, + }, { + "different trusted height shouldn't pass", + func() *ibctmtypes.Misbehaviour { + return &ibctmtypes.Misbehaviour{ + ClientId: s.path.EndpointA.ClientID, + Header1: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight+1), + clientHeight, + altTime, + clientTMValset, + clientTMValset, + clientTMValset, + clientSigners, + ), + Header2: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight+1), + heightPlus3, + s.providerCtx().BlockTime(), + clientTMValset, + clientTMValset, + clientTMValset, + clientSigners, + ), + } + }, + func() {}, + false, + }, { + "trusting period misbehavior should pass", + func() *ibctmtypes.Misbehaviour { + return &ibctmtypes.Misbehaviour{ + ClientId: s.path.EndpointA.ClientID, + Header1: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight+1), + clientHeight, + altTime, + clientTMValset, + clientTMValset, + clientTMValset, + clientSigners, + ), + Header2: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight+1), + clientHeight, + s.providerCtx().BlockTime(), + clientTMValset, + clientTMValset, + clientTMValset, + clientSigners, + ), + } + }, + func() {}, + true, + }, + { + "time misbehavior should pass", + func() *ibctmtypes.Misbehaviour { + return &ibctmtypes.Misbehaviour{ + ClientId: s.path.EndpointA.ClientID, + Header1: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight+5), + clientHeight, + s.providerCtx().BlockTime(), + clientTMValset, + clientTMValset, + clientTMValset, + clientSigners, + ), + Header2: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight+1), + clientHeight, + altTime, + clientTMValset, + clientTMValset, + clientTMValset, + clientSigners, + ), + } + }, + func() {}, + true, + }, + { + "both later height should pass", + func() *ibctmtypes.Misbehaviour { + return &ibctmtypes.Misbehaviour{ + ClientId: s.path.EndpointA.ClientID, + Header1: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(heightPlus5.RevisionHeight+1), + clientHeight, + s.providerCtx().BlockTime(), + clientTMValset, + clientTMValset, + clientTMValset, + clientSigners, + ), + Header2: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(heightPlus5.RevisionHeight+1), + clientHeight, + altTime, + clientTMValset, + clientTMValset, + clientTMValset, + clientSigners, + ), + } + }, + func() { + + consumerConsState.(*ibctmtypes.ConsensusState).NextValidatorsHash = clientTMValset.Hash() + clientState := ibctmtypes.NewClientState(s.consumerChain.ChainID, ibctmtypes.DefaultTrustLevel, trustingPeriod, ubdPeriod, maxClockDrift, clientHeight, commitmenttypes.GetSDKSpecs(), []string{"upgrade", "upgradedIBCState"}, false, false) + + // store trusted consensus state for Header2 + intermediateConsState := &ibctmtypes.ConsensusState{ + Timestamp: altTime, + NextValidatorsHash: clientTMValset.Hash(), + } + + s.providerApp.GetIBCKeeper().ClientKeeper.SetClientConsensusState(s.providerCtx(), s.path.EndpointA.ClientID, heightPlus3, intermediateConsState) + + clientState.LatestHeight = heightPlus3 + s.providerApp.GetIBCKeeper().ClientKeeper.SetClientState(s.providerCtx(), s.path.EndpointA.ClientID, clientState) + }, + true, + }, + { + "trusted ConsensusState1 not found", + func() *ibctmtypes.Misbehaviour { + return &ibctmtypes.Misbehaviour{ + ClientId: s.path.EndpointA.ClientID, + Header1: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight), + heightPlus3, + altTime, + clientTMValset, + clientTMValset, + clientTMValset, + clientSigners, + ), + Header2: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight), + clientHeight, + s.providerCtx().BlockTime(), + clientTMValset, + clientTMValset, + clientTMValset, + clientSigners, + ), + } + }, + func() {}, + false, + }, + { + "trusted ConsensusState2 not found", + func() *ibctmtypes.Misbehaviour { + return &ibctmtypes.Misbehaviour{ + ClientId: s.path.EndpointA.ClientID, + Header1: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight), + clientHeight, + altTime, + clientTMValset, + clientTMValset, + clientTMValset, + clientSigners, + ), + Header2: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight), + heightPlus3, + s.providerCtx().BlockTime(), + clientTMValset, + clientTMValset, + clientTMValset, + clientSigners, + ), + } + }, + func() {}, + false, + }, + { + "client state not found", + func() *ibctmtypes.Misbehaviour { + return &ibctmtypes.Misbehaviour{} + }, + func() {}, + false, + }, { + "client already is not active - client is frozen", + func() *ibctmtypes.Misbehaviour { + return &ibctmtypes.Misbehaviour{} + }, + func() { + consumerConsState.(*ibctmtypes.ConsensusState).NextValidatorsHash = clientTMValset.Hash() + clientState := ibctmtypes.NewClientState(s.consumerChain.ChainID, ibctmtypes.DefaultTrustLevel, trustingPeriod, ubdPeriod, maxClockDrift, clientHeight, commitmenttypes.GetSDKSpecs(), []string{"upgrade", "upgradedIBCState"}, false, false) + + clientState.FrozenHeight = ibcclientypes.NewHeight(0, 1) + s.providerApp.GetIBCKeeper().ClientKeeper.SetClientState(s.providerCtx(), s.path.EndpointA.ClientID, clientState) + }, + false, + }, { "misbehaviour check failed", func() *ibctmtypes.Misbehaviour { @@ -490,7 +487,6 @@ func (s *CCVTestSuite) TestGetByzantineValidators() { // required to have the consumer client revision height greater than 0 s.SendEmptyVSCPacket() - // consumerConsState, _ := s.providerChain.GetConsensusState(s.path.EndpointA.ClientID, s.consumerChain.LastHeader.TrustedHeight) altTime := s.providerCtx().BlockTime().Add(time.Minute) clientHeight := s.consumerChain.LastHeader.TrustedHeight @@ -499,7 +495,6 @@ func (s *CCVTestSuite) TestGetByzantineValidators() { altValset := tmtypes.NewValidatorSet(s.consumerChain.Vals.Validators[0:2]) altSigners := make(map[string]tmtypes.PrivValidator, 1) - // altSigners[altValset.Validators[0].Address.String()] = altPrivVal altSigners[clientTMValset.Validators[0].Address.String()] = clientSigners[clientTMValset.Validators[0].Address.String()] altSigners[clientTMValset.Validators[1].Address.String()] = clientSigners[clientTMValset.Validators[1].Address.String()] @@ -534,50 +529,12 @@ func (s *CCVTestSuite) TestGetByzantineValidators() { s.NoError(err) - val, err := s.providerApp.GetProviderKeeper().GetByzantineValidators( + byzVals, err := s.providerApp.GetProviderKeeper().GetByzantineValidators( s.providerCtx(), *misb, ) - s.NoError(err) + s.Require().Equal(len(altValset.Validators), len(byzVals)) - fmt.Println(len(val)) - fmt.Println(len(s.consumerChain.Vals.Validators)) + // TODO: check that the byzantine validators == altValset.Validators } - -// s.SetupCCVChannel(s.path) -// // required to have the consumer client revision height greater than 0 -// s.SendEmptyVSCPacket() -// s.consumerCtx().BlockHeight() -// // get consumer client state -// // consumerClientState := s.providerChain.GetClientState(s.path.EndpointA.ClientID) - -// // create two conflicting headers and forge them -// // commit new block on consumer - -// s.coordinator.CommitBlock(s.consumerChain) - -// // get trusted height from client state -// trustedHeight := s.providerChain.GetClientState(s.path.EndpointA.ClientID).GetLatestHeight().(clienttypes.Height) -// tmTrustedVals := s.consumerChain.Vals -// // get last consumer header -// header := s.consumerChain.LastHeader - -// header.TrustedHeight = trustedHeight -// trustedVals, err := tmTrustedVals.ToProto() -// s.NoError(err) -// header.TrustedValidators = trustedVals - -// msg, err := clienttypes.NewMsgUpdateClient( -// s.path.EndpointB.ClientID, header, -// s.path.EndpointB.Chain.SenderAccount.GetAddress().String(), -// ) -// s.NoError(err) - -// header2 := *header -// header2.SignedHeader.Commit.BlockID.Hash = []byte("forge_hash") - -// _, err = s.providerChain.SendMsgs(msg) -// s.NoError(err) - -// fmt.Printf("%+v\n", msg.Header) From 42204e18dfabbec6309d8889a97df8792fb9a7b4 Mon Sep 17 00:00:00 2001 From: Simon Noetzlin Date: Fri, 16 Jun 2023 17:47:24 +0200 Subject: [PATCH 16/33] doc --- tests/integration/misbehaviour.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/misbehaviour.go b/tests/integration/misbehaviour.go index 046d03fd16..079f0d996c 100644 --- a/tests/integration/misbehaviour.go +++ b/tests/integration/misbehaviour.go @@ -422,7 +422,7 @@ func (s *CCVTestSuite) TestCheckConsumerMisbehaviour() { false, }, { - "misbehaviour check failed", + "misbehaviour check failed", //TODO: verify as client is already frozen func() *ibctmtypes.Misbehaviour { return &ibctmtypes.Misbehaviour{ ClientId: s.path.EndpointA.ClientID, @@ -449,7 +449,7 @@ func (s *CCVTestSuite) TestCheckConsumerMisbehaviour() { } }, func() {}, - true, + false, }, } From 806a005c7e62d9b070ed634f004d11a79a874ddd Mon Sep 17 00:00:00 2001 From: Simon Noetzlin Date: Wed, 21 Jun 2023 09:30:59 +0200 Subject: [PATCH 17/33] save --- tests/integration/misbehaviour.go | 579 +++++++------------------- testutil/integration/debug_test.go | 8 +- testutil/keeper/mocks.go | 14 + x/ccv/provider/keeper/misbehaviour.go | 162 +++---- x/ccv/provider/keeper/msg_server.go | 2 +- x/ccv/types/expected_keepers.go | 1 + 6 files changed, 228 insertions(+), 538 deletions(-) diff --git a/tests/integration/misbehaviour.go b/tests/integration/misbehaviour.go index 079f0d996c..8ee0a71cde 100644 --- a/tests/integration/misbehaviour.go +++ b/tests/integration/misbehaviour.go @@ -1,14 +1,13 @@ package integration import ( + "fmt" "time" sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/interchain-security/v2/x/ccv/provider/types" - ibcclientypes "github.com/cosmos/ibc-go/v4/modules/core/02-client/types" - commitmenttypes "github.com/cosmos/ibc-go/v4/modules/core/23-commitment/types" ibctmtypes "github.com/cosmos/ibc-go/v4/modules/light-clients/07-tendermint/types" - ibctestingmock "github.com/cosmos/ibc-go/v4/testing/mock" tmtypes "github.com/tendermint/tendermint/types" ) @@ -67,421 +66,23 @@ func (s *CCVTestSuite) TestHandleConsumerMisbehaviour() { for _, v := range altValset.Validators { consuAddr := sdk.ConsAddress(v.Address.Bytes()) - provAddr := s.providerApp.GetProviderKeeper().GetProviderAddrFromConsumerAddr(s.providerCtx(), s.consumerChain.ChainID, consuAddr) - val, ok := s.providerApp.GetE2eStakingKeeper().GetValidatorByConsAddr(s.providerCtx(), provAddr) + provAddr := s.providerApp.GetProviderKeeper().GetProviderAddrFromConsumerAddr(s.providerCtx(), s.consumerChain.ChainID, types.ConsumerConsAddress{consuAddr}) + val, ok := s.providerApp.GetTestStakingKeeper().GetValidatorByConsAddr(s.providerCtx(), provAddr.Address) s.Require().True(ok) s.Require().True(val.Jailed) - s.Require().True(s.providerApp.GetE2eSlashingKeeper().IsTombstoned(s.providerCtx(), provAddr)) + s.Require().True(s.providerApp.GetTestSlashingKeeper().IsTombstoned(s.providerCtx(), provAddr.Address)) } } -// mostly based on TestCheckMisbehaviourAndUpdateState in ibc-go/modules/core/02-client/keeper/client_test.go -func (s *CCVTestSuite) TestCheckConsumerMisbehaviour() { +func (s *CCVTestSuite) TestConstructLigthClientEvidence() { - s.SetupCCVChannel(s.path) - // required to have the consumer client revision height greater than 0 - s.SendEmptyVSCPacket() - - consumerConsState, ok := s.providerChain.GetConsensusState(s.path.EndpointA.ClientID, s.consumerChain.LastHeader.TrustedHeight) - s.Require().True(ok) - - clientHeight := s.consumerChain.LastHeader.TrustedHeight - clientTMValset := tmtypes.NewValidatorSet(s.consumerChain.Vals.Validators) - clientSigners := s.consumerChain.Signers - - altPrivVal := ibctestingmock.NewPV() - altPubKey, err := altPrivVal.GetPubKey() - s.Require().NoError(err) - altVal := tmtypes.NewValidator(altPubKey, 4) - - altValset := tmtypes.NewValidatorSet([]*tmtypes.Validator{altVal}) - altSigners := make(map[string]tmtypes.PrivValidator, 1) - altSigners[altValset.Validators[0].Address.String()] = altPrivVal - - altTime := s.providerCtx().BlockTime().Add(time.Minute) - heightPlus5 := ibcclientypes.NewHeight(0, clientHeight.RevisionHeight+5) - heightPlus3 := ibcclientypes.NewHeight(0, clientHeight.RevisionHeight+3) - - testCases := []struct { - name string - misbehaviour func() *ibctmtypes.Misbehaviour - malleate func() - expPass bool - }{ - { - "misbehaviour height is at same height as trusted height", - func() *ibctmtypes.Misbehaviour { - return &ibctmtypes.Misbehaviour{ - ClientId: s.path.EndpointA.ClientID, - Header1: s.consumerChain.CreateTMClientHeader( - s.consumerChain.ChainID, - int64(clientHeight.RevisionHeight), - clientHeight, - altTime, - clientTMValset, - clientTMValset, - clientTMValset, - clientSigners, - ), - Header2: s.consumerChain.CreateTMClientHeader( - s.consumerChain.ChainID, - int64(clientHeight.RevisionHeight), - clientHeight, - s.providerCtx().BlockTime(), - clientTMValset, - clientTMValset, - clientTMValset, - clientSigners, - ), - } - }, - func() {}, - false, - }, { - "invalid chain ID", - func() *ibctmtypes.Misbehaviour { - - mb := &ibctmtypes.Misbehaviour{ - ClientId: s.path.EndpointA.ClientID, - Header1: s.consumerChain.CreateTMClientHeader( - s.consumerChain.ChainID, - int64(clientHeight.RevisionHeight+1), - clientHeight, - altTime, - clientTMValset, - clientTMValset, - clientTMValset, - clientSigners, - ), - Header2: s.consumerChain.CreateTMClientHeader( - s.consumerChain.ChainID, - int64(clientHeight.RevisionHeight+1), - clientHeight, - altTime, - clientTMValset, - clientTMValset, - clientTMValset, - clientSigners, - ), - } - - mb.Header1.Header.ChainID = "wrongchainid" - return mb - - }, - func() {}, - false, - }, - { - "invalid client ID", - func() *ibctmtypes.Misbehaviour { - - mb := &ibctmtypes.Misbehaviour{ - ClientId: "wrongclientid", - Header1: s.consumerChain.CreateTMClientHeader( - s.consumerChain.ChainID, - int64(clientHeight.RevisionHeight+1), - clientHeight, - altTime, - clientTMValset, - clientTMValset, - clientTMValset, - clientSigners, - ), - Header2: s.consumerChain.CreateTMClientHeader( - s.consumerChain.ChainID, - int64(clientHeight.RevisionHeight+1), - clientHeight, - altTime, - clientTMValset, - clientTMValset, - clientTMValset, - clientSigners, - ), - } - - return mb - - }, - func() {}, - false, - }, { - "different trusted height shouldn't pass", - func() *ibctmtypes.Misbehaviour { - return &ibctmtypes.Misbehaviour{ - ClientId: s.path.EndpointA.ClientID, - Header1: s.consumerChain.CreateTMClientHeader( - s.consumerChain.ChainID, - int64(clientHeight.RevisionHeight+1), - clientHeight, - altTime, - clientTMValset, - clientTMValset, - clientTMValset, - clientSigners, - ), - Header2: s.consumerChain.CreateTMClientHeader( - s.consumerChain.ChainID, - int64(clientHeight.RevisionHeight+1), - heightPlus3, - s.providerCtx().BlockTime(), - clientTMValset, - clientTMValset, - clientTMValset, - clientSigners, - ), - } - }, - func() {}, - false, - }, { - "trusting period misbehavior should pass", - func() *ibctmtypes.Misbehaviour { - return &ibctmtypes.Misbehaviour{ - ClientId: s.path.EndpointA.ClientID, - Header1: s.consumerChain.CreateTMClientHeader( - s.consumerChain.ChainID, - int64(clientHeight.RevisionHeight+1), - clientHeight, - altTime, - clientTMValset, - clientTMValset, - clientTMValset, - clientSigners, - ), - Header2: s.consumerChain.CreateTMClientHeader( - s.consumerChain.ChainID, - int64(clientHeight.RevisionHeight+1), - clientHeight, - s.providerCtx().BlockTime(), - clientTMValset, - clientTMValset, - clientTMValset, - clientSigners, - ), - } - }, - func() {}, - true, - }, - { - "time misbehavior should pass", - func() *ibctmtypes.Misbehaviour { - return &ibctmtypes.Misbehaviour{ - ClientId: s.path.EndpointA.ClientID, - Header1: s.consumerChain.CreateTMClientHeader( - s.consumerChain.ChainID, - int64(clientHeight.RevisionHeight+5), - clientHeight, - s.providerCtx().BlockTime(), - clientTMValset, - clientTMValset, - clientTMValset, - clientSigners, - ), - Header2: s.consumerChain.CreateTMClientHeader( - s.consumerChain.ChainID, - int64(clientHeight.RevisionHeight+1), - clientHeight, - altTime, - clientTMValset, - clientTMValset, - clientTMValset, - clientSigners, - ), - } - }, - func() {}, - true, - }, - { - "both later height should pass", - func() *ibctmtypes.Misbehaviour { - return &ibctmtypes.Misbehaviour{ - ClientId: s.path.EndpointA.ClientID, - Header1: s.consumerChain.CreateTMClientHeader( - s.consumerChain.ChainID, - int64(heightPlus5.RevisionHeight+1), - clientHeight, - s.providerCtx().BlockTime(), - clientTMValset, - clientTMValset, - clientTMValset, - clientSigners, - ), - Header2: s.consumerChain.CreateTMClientHeader( - s.consumerChain.ChainID, - int64(heightPlus5.RevisionHeight+1), - clientHeight, - altTime, - clientTMValset, - clientTMValset, - clientTMValset, - clientSigners, - ), - } - }, - func() { - - consumerConsState.(*ibctmtypes.ConsensusState).NextValidatorsHash = clientTMValset.Hash() - clientState := ibctmtypes.NewClientState(s.consumerChain.ChainID, ibctmtypes.DefaultTrustLevel, trustingPeriod, ubdPeriod, maxClockDrift, clientHeight, commitmenttypes.GetSDKSpecs(), []string{"upgrade", "upgradedIBCState"}, false, false) - - // store trusted consensus state for Header2 - intermediateConsState := &ibctmtypes.ConsensusState{ - Timestamp: altTime, - NextValidatorsHash: clientTMValset.Hash(), - } - - s.providerApp.GetIBCKeeper().ClientKeeper.SetClientConsensusState(s.providerCtx(), s.path.EndpointA.ClientID, heightPlus3, intermediateConsState) - - clientState.LatestHeight = heightPlus3 - s.providerApp.GetIBCKeeper().ClientKeeper.SetClientState(s.providerCtx(), s.path.EndpointA.ClientID, clientState) - }, - true, - }, - { - "trusted ConsensusState1 not found", - func() *ibctmtypes.Misbehaviour { - return &ibctmtypes.Misbehaviour{ - ClientId: s.path.EndpointA.ClientID, - Header1: s.consumerChain.CreateTMClientHeader( - s.consumerChain.ChainID, - int64(clientHeight.RevisionHeight), - heightPlus3, - altTime, - clientTMValset, - clientTMValset, - clientTMValset, - clientSigners, - ), - Header2: s.consumerChain.CreateTMClientHeader( - s.consumerChain.ChainID, - int64(clientHeight.RevisionHeight), - clientHeight, - s.providerCtx().BlockTime(), - clientTMValset, - clientTMValset, - clientTMValset, - clientSigners, - ), - } - }, - func() {}, - false, - }, - { - "trusted ConsensusState2 not found", - func() *ibctmtypes.Misbehaviour { - return &ibctmtypes.Misbehaviour{ - ClientId: s.path.EndpointA.ClientID, - Header1: s.consumerChain.CreateTMClientHeader( - s.consumerChain.ChainID, - int64(clientHeight.RevisionHeight), - clientHeight, - altTime, - clientTMValset, - clientTMValset, - clientTMValset, - clientSigners, - ), - Header2: s.consumerChain.CreateTMClientHeader( - s.consumerChain.ChainID, - int64(clientHeight.RevisionHeight), - heightPlus3, - s.providerCtx().BlockTime(), - clientTMValset, - clientTMValset, - clientTMValset, - clientSigners, - ), - } - }, - func() {}, - false, - }, - { - "client state not found", - func() *ibctmtypes.Misbehaviour { - return &ibctmtypes.Misbehaviour{} - }, - func() {}, - false, - }, { - "client already is not active - client is frozen", - func() *ibctmtypes.Misbehaviour { - return &ibctmtypes.Misbehaviour{} - }, - func() { - consumerConsState.(*ibctmtypes.ConsensusState).NextValidatorsHash = clientTMValset.Hash() - clientState := ibctmtypes.NewClientState(s.consumerChain.ChainID, ibctmtypes.DefaultTrustLevel, trustingPeriod, ubdPeriod, maxClockDrift, clientHeight, commitmenttypes.GetSDKSpecs(), []string{"upgrade", "upgradedIBCState"}, false, false) - - clientState.FrozenHeight = ibcclientypes.NewHeight(0, 1) - s.providerApp.GetIBCKeeper().ClientKeeper.SetClientState(s.providerCtx(), s.path.EndpointA.ClientID, clientState) - }, - false, - }, - { - "misbehaviour check failed", //TODO: verify as client is already frozen - func() *ibctmtypes.Misbehaviour { - return &ibctmtypes.Misbehaviour{ - ClientId: s.path.EndpointA.ClientID, - Header1: s.consumerChain.CreateTMClientHeader( - s.consumerChain.ChainID, - int64(clientHeight.RevisionHeight+1), - clientHeight, - s.providerCtx().BlockTime(), - clientTMValset, - clientTMValset, - clientTMValset, - clientSigners, - ), - Header2: s.consumerChain.CreateTMClientHeader( - s.consumerChain.ChainID, - int64(clientHeight.RevisionHeight+1), - clientHeight, - altTime, - altValset, - altValset, - clientTMValset, - altSigners, - ), - } - }, - func() {}, - false, - }, - } - - for i, tc := range testCases { - - s.Run(tc.name, func() { - // run each test against fresh client states - cCtx, _ := s.providerCtx().CacheContext() + // test cases + // misbehaviour nil + // misbheaviour header 1 nil + // misbehaviour header 2 nil - tc.malleate() - - err := s.providerApp.GetProviderKeeper().CheckConsumerMisbehaviour( - cCtx, - *tc.misbehaviour(), - ) - - // Misbehaviour passed - if tc.expPass { - s.NoError(err, "valid test case %s failed with error %s", tc.name, err) - clientState, found := s.providerApp.GetIBCKeeper().ClientKeeper.GetClientState(cCtx, tc.misbehaviour().ClientId) - s.Require().True(found, "valid test case %d failed: %s", i, tc.name) - s.Require().True(!clientState.(*ibctmtypes.ClientState).FrozenHeight.IsZero(), "valid test case %d failed: %s", i, tc.name) - - } else { - // Misbehaviour rejected - s.Require().Error(err, "invalid test case %d passed: %s", i, tc.name) - } - }) - } -} - -func (s *CCVTestSuite) TestGetByzantineValidators() { + // misbehaviour no common height s.SetupCCVChannel(s.path) // required to have the consumer client revision height greater than 0 @@ -522,19 +123,153 @@ func (s *CCVTestSuite) TestGetByzantineValidators() { ), } - err := s.providerApp.GetProviderKeeper().CheckConsumerMisbehaviour( - s.providerCtx(), - *misb, - ) + _ = misb - s.NoError(err) + // emptyHeader := &ibctmtypes.Header{} - byzVals, err := s.providerApp.GetProviderKeeper().GetByzantineValidators( - s.providerCtx(), - *misb, - ) - s.NoError(err) - s.Require().Equal(len(altValset.Validators), len(byzVals)) + testCases := []struct { + name string + misbehaviour *ibctmtypes.Misbehaviour + expPass bool + }{ + { + "invalid misbehaviour - Header1 is empty", + &ibctmtypes.Misbehaviour{ + Header1: &ibctmtypes.Header{}, + Header2: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight+1), + clientHeight, + altTime, + altValset, + altValset, + clientTMValset, + altSigners, + )}, + false, + }, { + "invalid misbehaviour - Header2 is empty", + &ibctmtypes.Misbehaviour{ + Header1: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight+1), + clientHeight, + altTime, + clientTMValset, + clientTMValset, + clientTMValset, + clientSigners, + ), + Header2: &ibctmtypes.Header{}, + }, + false, + }, { + "invalid misbehaviour - ClientId is empty", + &ibctmtypes.Misbehaviour{ + ClientId: "unknown-client-id", + Header1: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight+1), + clientHeight, + altTime, + clientTMValset, + clientTMValset, + clientTMValset, + clientSigners, + ), + Header2: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight+1), + clientHeight, + altTime, + altValset, + altValset, + clientTMValset, + altSigners, + ), + }, + false, + }, + { + "light client attack - lunatic attack", + &ibctmtypes.Misbehaviour{ + ClientId: s.path.EndpointA.ClientID, + Header1: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight+1), + clientHeight, + altTime, + clientTMValset, + clientTMValset, + clientTMValset, + clientSigners, + ), + Header2: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight+1), + clientHeight, + altTime, + altValset, + altValset, + clientTMValset, + altSigners, + ), + }, + true, + }, { + "light client attack - equivocation", + &ibctmtypes.Misbehaviour{ + ClientId: s.path.EndpointA.ClientID, + Header1: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight+1), + clientHeight, + altTime, + clientTMValset, + clientTMValset, + clientTMValset, + clientSigners, + ), + Header2: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight+1), + clientHeight, + altTime, + clientTMValset, + clientTMValset, + clientTMValset, + clientSigners, + ), + }, + true, + }, + } + + // check how it's tested on CometBFTNewExtensionOptionsDecorator + + for _, tc := range testCases { + s.Run(tc.name, func() { + ev, err := s.providerApp.GetProviderKeeper().ConstructLigthClientEvidence( + s.providerCtx(), + *tc.misbehaviour, + ) + if tc.expPass { + s.NoError(err) + s.Require().Equal(len(altValset.Validators), len(ev.ByzantineValidators)) + fmt.Println("headers 2 validators") + + for _, v := range tc.misbehaviour.Header2.ValidatorSet.Validators { + fmt.Println(v.String()) + } + fmt.Println("byzantine validators") + for _, v := range ev.ByzantineValidators { + fmt.Println(v.String()) + } + // TODO: check that the byzantine validators == altValset.Validators + } else { + s.Error(err) + } + }) + } - // TODO: check that the byzantine validators == altValset.Validators } diff --git a/testutil/integration/debug_test.go b/testutil/integration/debug_test.go index 0b87bdf92a..da2d75355c 100644 --- a/testutil/integration/debug_test.go +++ b/testutil/integration/debug_test.go @@ -265,10 +265,6 @@ func TestHandleConsumerMisbehaviour(t *testing.T) { runCCVTestByName(t, "TestHandleConsumerMisbehaviour") } -func TestCheckConsumerMisbehaviour(t *testing.T) { - runCCVTestByName(t, "TestCheckConsumerMisbehaviour") -} - -func TestGetByzantineValidators(t *testing.T) { - runCCVTestByName(t, "TestGetByzantineValidators") +func TestConstructLigthClientEvidence(t *testing.T) { + runCCVTestByName(t, "TestConstructLigthClientEvidence") } diff --git a/testutil/keeper/mocks.go b/testutil/keeper/mocks.go index dc01a7f094..1e792e3a4a 100644 --- a/testutil/keeper/mocks.go +++ b/testutil/keeper/mocks.go @@ -678,6 +678,20 @@ func (m *MockClientKeeper) EXPECT() *MockClientKeeperMockRecorder { return m.recorder } +// CheckMisbehaviourAndUpdateState mocks base method. +func (m *MockClientKeeper) CheckMisbehaviourAndUpdateState(ctx types.Context, misbehaviour exported.Misbehaviour) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CheckMisbehaviourAndUpdateState", ctx, misbehaviour) + ret0, _ := ret[0].(error) + return ret0 +} + +// CheckMisbehaviourAndUpdateState indicates an expected call of CheckMisbehaviourAndUpdateState. +func (mr *MockClientKeeperMockRecorder) CheckMisbehaviourAndUpdateState(ctx, misbehaviour interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckMisbehaviourAndUpdateState", reflect.TypeOf((*MockClientKeeper)(nil).CheckMisbehaviourAndUpdateState), ctx, misbehaviour) +} + // ClientStore mocks base method. func (m *MockClientKeeper) ClientStore(ctx types.Context, clientID string) types.KVStore { m.ctrl.T.Helper() diff --git a/x/ccv/provider/keeper/misbehaviour.go b/x/ccv/provider/keeper/misbehaviour.go index a57add7564..8df61c4bb5 100644 --- a/x/ccv/provider/keeper/misbehaviour.go +++ b/x/ccv/provider/keeper/misbehaviour.go @@ -4,153 +4,91 @@ import ( "fmt" "time" + "github.com/cosmos/interchain-security/v2/x/ccv/provider/types" + sdk "github.com/cosmos/cosmos-sdk/types" evidencetypes "github.com/cosmos/cosmos-sdk/x/evidence/types" - "github.com/cosmos/ibc-go/v4/modules/core/exported" ibctmtypes "github.com/cosmos/ibc-go/v4/modules/light-clients/07-tendermint/types" tmtypes "github.com/tendermint/tendermint/types" ) +// HandleConsumerMisbehaviour checks whether the given IBC misbehaviour is valid and, if they are, the misbehaving +// CheckConsumerMisbehaviour check that the given IBC misbehaviour headers forms a valid light client attck evidence. +// proceed to the jailing and tombstoning of the bzyantine validators. func (k Keeper) HandleConsumerMisbehaviour(ctx sdk.Context, misbehaviour ibctmtypes.Misbehaviour) error { - if err := k.CheckConsumerMisbehaviour(ctx, misbehaviour); err != nil { - return err - } + logger := ctx.Logger() - byzantineValidators, err := k.GetByzantineValidators(ctx, misbehaviour) - if err != nil { + if err := k.clientKeeper.CheckMisbehaviourAndUpdateState(ctx, &misbehaviour); err != nil { return err } // Since the misbehaviour packet was received within the trusting period // w.r.t to the last trusted consensus it entails that the infraction age // isn't too old. see ibc-go/modules/light-clients/07-tendermint/types/misbehaviour_handle.go - for _, v := range byzantineValidators { - // convert address to key assigned - consuAddr := sdk.ConsAddress(v.Address.Bytes()) - provAddr := k.GetProviderAddrFromConsumerAddr(ctx, misbehaviour.Header1.Header.ChainID, consuAddr) - k.stakingKeeper.ValidatorByConsAddr(ctx, consuAddr) - val, ok := k.stakingKeeper.GetValidatorByConsAddr(ctx, provAddr) - if !ok || val.IsUnbonded() { - // Defensive: Simulation doesn't take unbonding periods into account, and - // Tendermint might break this assumption at some point. - k.Logger(ctx).Error("validator not found or is unbonded", provAddr.String()) - continue - } - // TODO: continue if validator is already tombstoned/jailed + log - k.stakingKeeper.Jail(ctx, provAddr) - k.slashingKeeper.JailUntil(ctx, provAddr, evidencetypes.DoubleSignJailEndTime) - k.slashingKeeper.Tombstone(ctx, provAddr) - // store misbehaviour? - } - - logger := ctx.Logger() - logger.Info( - "confirmed equivocation", - "byzantine validators", byzantineValidators, - ) - - return nil -} - -func (k Keeper) CheckConsumerMisbehaviour(ctx sdk.Context, misbehaviour ibctmtypes.Misbehaviour) error { - - clientID := misbehaviour.GetClientID() - - clientState, found := k.clientKeeper.GetClientState(ctx, clientID) - if !found { - return fmt.Errorf("types.ErrClientNotFound cannot check misbehaviour for client with ID %s", clientID) - } - - clientStore := k.clientKeeper.ClientStore(ctx, misbehaviour.GetClientID()) - - if status := clientState.Status(ctx, clientStore, k.cdc); status != exported.Active { - return fmt.Errorf("types.ErrClientNotActive cannot process misbehaviour for client (%s) with status %s", clientID, status) - } - - if err := misbehaviour.ValidateBasic(); err != nil { - return err - } - clientState, err := clientState.CheckMisbehaviourAndUpdateState(ctx, k.cdc, clientStore, &misbehaviour) + // construct a ligth client attack evidence + evidence, err := k.ConstructLigthClientEvidence(ctx, misbehaviour) if err != nil { return err } - k.clientKeeper.SetClientState(ctx, clientID, clientState) - k.Logger(ctx).Info("client frozen due to misbehaviour", "client-id", clientID) - - // get byzantine validators - sh, err := tmtypes.SignedHeaderFromProto(misbehaviour.Header1.SignedHeader) - if err != nil { - return err - } + // jail and tombstone the byzantine validators + for _, v := range evidence.ByzantineValidators { + // convert consumer consensus address + consuAddr := sdk.ConsAddress(v.Address.Bytes()) + provAddr := k.GetProviderAddrFromConsumerAddr(ctx, misbehaviour.Header1.Header.ChainID, types.ConsumerConsAddress{consuAddr}) + k.stakingKeeper.ValidatorByConsAddr(ctx, consuAddr) + val, ok := k.stakingKeeper.GetValidatorByConsAddr(ctx, provAddr.Address) - vs, err := tmtypes.ValidatorSetFromProto(misbehaviour.Header1.ValidatorSet) - if err != nil { - return err - } - ev := tmtypes.LightClientAttackEvidence{ - ConflictingBlock: &tmtypes.LightBlock{SignedHeader: sh, ValidatorSet: vs}, - } + if !ok || val.IsUnbonded() { + logger.Error("validator not found or is unbonded", provAddr.String()) + continue + } - h2, err := tmtypes.HeaderFromProto(misbehaviour.Header2.Header) - if err != nil { - return err - } + // jail validator if not already + if !val.IsJailed() { + k.stakingKeeper.Jail(ctx, provAddr.Address) + } - // WIP: return byzantine validators according to the light client committed + // tombstone validator if not already + if !k.slashingKeeper.IsTombstoned(ctx, provAddr.Address) { + k.slashingKeeper.Tombstone(ctx, provAddr.Address) + } - // if this is an equivocation or amnesia attack, i.e. the validator sets are the same, then we - // return the height of the conflicting block else if it is a lunatic attack and the validator sets - // are not the same then we send the height of the common header. - if ev.ConflictingHeaderIsInvalid(&h2) { - ev.CommonHeight = misbehaviour.Header2.Header.Height - ev.Timestamp = misbehaviour.Header2.Header.Time - ev.TotalVotingPower = misbehaviour.Header2.ValidatorSet.TotalVotingPower - } else { - ev.CommonHeight = misbehaviour.Header1.Header.Height - ev.Timestamp = misbehaviour.Header1.Header.Time - ev.TotalVotingPower = misbehaviour.Header1.ValidatorSet.TotalVotingPower + // update jail time to end after double sign jail duration + k.slashingKeeper.JailUntil(ctx, provAddr.Address, evidencetypes.DoubleSignJailEndTime) } - ev.ByzantineValidators = ev.GetByzantineValidators(vs, sh) - - logger := ctx.Logger() logger.Info( "confirmed equivocation", - "byzantine validators", ev.ByzantineValidators, + "byzantine validators", evidence.ByzantineValidators, ) - // TBD - // defer func() { - // telemetry.IncrCounterWithLabels( - // []string{"ibc", "client", "misbehaviour"}, - // 1, - // []metrics.Label{ - // telemetry.NewLabel(types.LabelClientType, misbehaviour.ClientType()), - // telemetry.NewLabel(types.LabelClientID, misbehaviour.GetClientID()), - // }, - // ) - // }() - - // EmitSubmitMisbehaviourEvent(ctx, clientID, clientState) return nil } -func (k Keeper) GetByzantineValidators(ctx sdk.Context, misbehaviour ibctmtypes.Misbehaviour) ([]*tmtypes.Validator, error) { - trusted, err := HeaderToLightBlock(*misbehaviour.Header1) +// ConstructLigthClientEvidence constructs and returns a CometBFT Ligth Client Attack(LCA) evidence struct +// from the given misbehaviour +func (k Keeper) ConstructLigthClientEvidence(ctx sdk.Context, misbehaviour ibctmtypes.Misbehaviour) (*tmtypes.LightClientAttackEvidence, error) { + + // construct the trusted and conflicetd ligth blocks + trusted, err := headerToLightBlock(*misbehaviour.Header1) if err != nil { return nil, err } - conflicted, err := HeaderToLightBlock(*misbehaviour.Header2) + conflicted, err := headerToLightBlock(*misbehaviour.Header2) if err != nil { return nil, err } - commonHeight, commonTs, commonValset, err := k.GetCommonFromMisbehaviour(ctx, misbehaviour) + + // get common header using the IBC misbehaviour + commonHeight, commonTs, commonValset, err := k.GetTrustedInfoFromMisbehaviour(ctx, misbehaviour) if err != nil { return nil, err } + // construct the LCA evidence by copying the CometBFT constructor + // see newLightClientAttackEvidence() in tendermint/light/detector.go ev := tmtypes.LightClientAttackEvidence{ ConflictingBlock: conflicted, } @@ -165,11 +103,16 @@ func (k Keeper) GetByzantineValidators(ctx sdk.Context, misbehaviour ibctmtypes. ev.TotalVotingPower = trusted.ValidatorSet.TotalVotingPower() } - return ev.GetByzantineValidators(commonValset, trusted.SignedHeader), nil + ev.ByzantineValidators = ev.GetByzantineValidators(commonValset, trusted.SignedHeader) + + return &ev, nil } -func (k Keeper) GetCommonFromMisbehaviour(ctx sdk.Context, misbehaviour ibctmtypes.Misbehaviour) (int64, time.Time, *tmtypes.ValidatorSet, error) { - // A common trusted height is required +// GetCommonFromMisbehaviour checks whether the given ibc misbehaviour's headers share common trusted height +// and that a consensus state exists for this height. In this case, it returns the associated trusted height, timestamp and valset. +func (k Keeper) GetTrustedInfoFromMisbehaviour(ctx sdk.Context, misbehaviour ibctmtypes.Misbehaviour) (int64, time.Time, *tmtypes.ValidatorSet, error) { + + // a common trusted height is required commonHeight := misbehaviour.Header1.TrustedHeight if !commonHeight.EQ(misbehaviour.Header2.TrustedHeight) { return 0, time.Time{}, nil, fmt.Errorf("misbehaviour headers have different trusted height: %v , %v", commonHeight, misbehaviour.Header2.TrustedHeight) @@ -188,7 +131,8 @@ func (k Keeper) GetCommonFromMisbehaviour(ctx sdk.Context, misbehaviour ibctmtyp return int64(commonHeight.RevisionHeight), time.Unix(0, int64(cs.GetTimestamp())), vs, nil } -func HeaderToLightBlock(h ibctmtypes.Header) (*tmtypes.LightBlock, error) { +// headerToLightBlock returns a CometBFT ligth block from the given IBC header +func headerToLightBlock(h ibctmtypes.Header) (*tmtypes.LightBlock, error) { sh, err := tmtypes.SignedHeaderFromProto(h.SignedHeader) if err != nil { return nil, err diff --git a/x/ccv/provider/keeper/msg_server.go b/x/ccv/provider/keeper/msg_server.go index f675423c69..ca22b66f0d 100644 --- a/x/ccv/provider/keeper/msg_server.go +++ b/x/ccv/provider/keeper/msg_server.go @@ -129,7 +129,7 @@ func (k msgServer) RegisterConsumerRewardDenom(goCtx context.Context, msg *types func (k msgServer) SubmitConsumerMisbehaviour(goCtx context.Context, msg *types.MsgSubmitConsumerMisbehaviour) (*types.MsgSubmitConsumerMisbehaviourResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) - if err := k.Keeper.CheckConsumerMisbehaviour(ctx, *msg.Misbehaviour); err != nil { + if err := k.Keeper.HandleConsumerMisbehaviour(ctx, *msg.Misbehaviour); err != nil { return &types.MsgSubmitConsumerMisbehaviourResponse{}, err } diff --git a/x/ccv/types/expected_keepers.go b/x/ccv/types/expected_keepers.go index d24400b114..b4dea9b670 100644 --- a/x/ccv/types/expected_keepers.go +++ b/x/ccv/types/expected_keepers.go @@ -89,6 +89,7 @@ type ClientKeeper interface { ClientStore(ctx sdk.Context, clientID string) sdk.KVStore SetClientState(ctx sdk.Context, clientID string, clientState ibcexported.ClientState) GetClientConsensusState(ctx sdk.Context, clientID string, height ibcexported.Height) (ibcexported.ConsensusState, bool) + CheckMisbehaviourAndUpdateState(ctx sdk.Context, misbehaviour ibcexported.Misbehaviour) error } // DistributionKeeper defines the expected interface of the distribution keeper From 2c796cd71428358e5df0b2d9c87e0674405f3512 Mon Sep 17 00:00:00 2001 From: Simon Noetzlin Date: Wed, 21 Jun 2023 14:30:21 +0200 Subject: [PATCH 18/33] update e2e tests' --- tests/integration/misbehaviour.go | 83 ++++++++----------------------- 1 file changed, 22 insertions(+), 61 deletions(-) diff --git a/tests/integration/misbehaviour.go b/tests/integration/misbehaviour.go index 8ee0a71cde..39242c68d2 100644 --- a/tests/integration/misbehaviour.go +++ b/tests/integration/misbehaviour.go @@ -1,7 +1,6 @@ package integration import ( - "fmt" "time" sdk "github.com/cosmos/cosmos-sdk/types" @@ -11,12 +10,6 @@ import ( tmtypes "github.com/tendermint/tendermint/types" ) -const ( - trustingPeriod time.Duration = time.Hour * 24 * 7 * 2 - ubdPeriod time.Duration = time.Hour * 24 * 7 * 3 - maxClockDrift time.Duration = time.Second * 10 -) - func (s *CCVTestSuite) TestHandleConsumerMisbehaviour() { s.SetupCCVChannel(s.path) // required to have the consumer client revision height greater than 0 @@ -72,18 +65,9 @@ func (s *CCVTestSuite) TestHandleConsumerMisbehaviour() { s.Require().True(val.Jailed) s.Require().True(s.providerApp.GetTestSlashingKeeper().IsTombstoned(s.providerCtx(), provAddr.Address)) } - } func (s *CCVTestSuite) TestConstructLigthClientEvidence() { - - // test cases - // misbehaviour nil - // misbheaviour header 1 nil - // misbehaviour header 2 nil - - // misbehaviour no common height - s.SetupCCVChannel(s.path) // required to have the consumer client revision height greater than 0 s.SendEmptyVSCPacket() @@ -94,38 +78,11 @@ func (s *CCVTestSuite) TestConstructLigthClientEvidence() { clientTMValset := tmtypes.NewValidatorSet(s.consumerChain.Vals.Validators) clientSigners := s.consumerChain.Signers - altValset := tmtypes.NewValidatorSet(s.consumerChain.Vals.Validators[0:2]) + altValset := tmtypes.NewValidatorSet(s.consumerChain.Vals.Validators[0:3]) altSigners := make(map[string]tmtypes.PrivValidator, 1) altSigners[clientTMValset.Validators[0].Address.String()] = clientSigners[clientTMValset.Validators[0].Address.String()] altSigners[clientTMValset.Validators[1].Address.String()] = clientSigners[clientTMValset.Validators[1].Address.String()] - - misb := &ibctmtypes.Misbehaviour{ - ClientId: s.path.EndpointA.ClientID, - Header1: s.consumerChain.CreateTMClientHeader( - s.consumerChain.ChainID, - int64(clientHeight.RevisionHeight+1), - clientHeight, - altTime, - clientTMValset, - clientTMValset, - clientTMValset, - clientSigners, - ), - Header2: s.consumerChain.CreateTMClientHeader( - s.consumerChain.ChainID, - int64(clientHeight.RevisionHeight+1), - clientHeight, - altTime, - altValset, - altValset, - clientTMValset, - altSigners, - ), - } - - _ = misb - - // emptyHeader := &ibctmtypes.Header{} + altSigners[clientTMValset.Validators[2].Address.String()] = clientSigners[clientTMValset.Validators[2].Address.String()] testCases := []struct { name string @@ -145,9 +102,11 @@ func (s *CCVTestSuite) TestConstructLigthClientEvidence() { altValset, clientTMValset, altSigners, - )}, + ), + }, false, - }, { + }, + { "invalid misbehaviour - Header2 is empty", &ibctmtypes.Misbehaviour{ Header1: s.consumerChain.CreateTMClientHeader( @@ -163,7 +122,8 @@ func (s *CCVTestSuite) TestConstructLigthClientEvidence() { Header2: &ibctmtypes.Header{}, }, false, - }, { + }, + { "invalid misbehaviour - ClientId is empty", &ibctmtypes.Misbehaviour{ ClientId: "unknown-client-id", @@ -216,7 +176,8 @@ func (s *CCVTestSuite) TestConstructLigthClientEvidence() { ), }, true, - }, { + }, + { "light client attack - equivocation", &ibctmtypes.Misbehaviour{ ClientId: s.path.EndpointA.ClientID, @@ -234,7 +195,7 @@ func (s *CCVTestSuite) TestConstructLigthClientEvidence() { s.consumerChain.ChainID, int64(clientHeight.RevisionHeight+1), clientHeight, - altTime, + altTime.Add(time.Minute), clientTMValset, clientTMValset, clientTMValset, @@ -245,8 +206,6 @@ func (s *CCVTestSuite) TestConstructLigthClientEvidence() { }, } - // check how it's tested on CometBFTNewExtensionOptionsDecorator - for _, tc := range testCases { s.Run(tc.name, func() { ev, err := s.providerApp.GetProviderKeeper().ConstructLigthClientEvidence( @@ -255,21 +214,23 @@ func (s *CCVTestSuite) TestConstructLigthClientEvidence() { ) if tc.expPass { s.NoError(err) - s.Require().Equal(len(altValset.Validators), len(ev.ByzantineValidators)) - fmt.Println("headers 2 validators") + // For both lunatic and equivocation attack all the validators + // who signed the bad header (Header2) should be in returned in the evidence + h2Valset := tc.misbehaviour.Header2.ValidatorSet + + s.Equal(len(h2Valset.Validators), len(ev.ByzantineValidators)) + + vs, err := tmtypes.ValidatorSetFromProto(tc.misbehaviour.Header2.ValidatorSet) + s.NoError(err) - for _, v := range tc.misbehaviour.Header2.ValidatorSet.Validators { - fmt.Println(v.String()) - } - fmt.Println("byzantine validators") for _, v := range ev.ByzantineValidators { - fmt.Println(v.String()) + idx, _ := vs.GetByAddress(v.Address) + s.True(idx >= 0) } - // TODO: check that the byzantine validators == altValset.Validators + } else { s.Error(err) } }) } - } From 7310e4217a3f17f5bba9a8d46b5a0642935eb57b Mon Sep 17 00:00:00 2001 From: Simon Noetzlin Date: Mon, 26 Jun 2023 10:29:18 +0200 Subject: [PATCH 19/33] fix typo and improve docs --- .../ccv/provider/v1/tx.proto | 3 +- tests/integration/misbehaviour.go | 6 +- testutil/integration/debug_test.go | 4 +- x/ccv/provider/keeper/double_vote.go | 39 ---------- x/ccv/provider/keeper/misbehaviour.go | 10 +-- x/ccv/provider/types/codec.go | 5 ++ x/ccv/provider/types/tx.pb.go | 77 +++++++++---------- 7 files changed, 54 insertions(+), 90 deletions(-) delete mode 100644 x/ccv/provider/keeper/double_vote.go diff --git a/proto/interchain_security/ccv/provider/v1/tx.proto b/proto/interchain_security/ccv/provider/v1/tx.proto index 1bcfad7cbc..61be3064ea 100644 --- a/proto/interchain_security/ccv/provider/v1/tx.proto +++ b/proto/interchain_security/ccv/provider/v1/tx.proto @@ -8,7 +8,6 @@ import "gogoproto/gogo.proto"; import "cosmos_proto/cosmos.proto"; import "google/protobuf/any.proto"; import "ibc/lightclients/tendermint/v1/tendermint.proto"; -import "tendermint/types/evidence.proto"; // Msg defines the Msg service. service Msg { @@ -46,10 +45,10 @@ message MsgRegisterConsumerRewardDenom { // MsgRegisterConsumerRewardDenomResponse defines the Msg/RegisterConsumerRewardDenom response type. message MsgRegisterConsumerRewardDenomResponse {} -// MsgSubmitConsumerMisbehaviour reports a consumer chain Misbehaviour // MsgSubmitConsumerMisbehaviour defines a message that reports a misbehaviour // observed on a consumer chain +// Note that the misbheaviour' headers must contain the same trusted states message MsgSubmitConsumerMisbehaviour { option (gogoproto.equal) = false; option (gogoproto.goproto_getters) = false; diff --git a/tests/integration/misbehaviour.go b/tests/integration/misbehaviour.go index 39242c68d2..13ad7e6230 100644 --- a/tests/integration/misbehaviour.go +++ b/tests/integration/misbehaviour.go @@ -59,7 +59,7 @@ func (s *CCVTestSuite) TestHandleConsumerMisbehaviour() { for _, v := range altValset.Validators { consuAddr := sdk.ConsAddress(v.Address.Bytes()) - provAddr := s.providerApp.GetProviderKeeper().GetProviderAddrFromConsumerAddr(s.providerCtx(), s.consumerChain.ChainID, types.ConsumerConsAddress{consuAddr}) + provAddr := s.providerApp.GetProviderKeeper().GetProviderAddrFromConsumerAddr(s.providerCtx(), s.consumerChain.ChainID, types.NewConsumerConsAddress(consuAddr)) val, ok := s.providerApp.GetTestStakingKeeper().GetValidatorByConsAddr(s.providerCtx(), provAddr.Address) s.Require().True(ok) s.Require().True(val.Jailed) @@ -67,7 +67,7 @@ func (s *CCVTestSuite) TestHandleConsumerMisbehaviour() { } } -func (s *CCVTestSuite) TestConstructLigthClientEvidence() { +func (s *CCVTestSuite) TestConstructLightClientEvidence() { s.SetupCCVChannel(s.path) // required to have the consumer client revision height greater than 0 s.SendEmptyVSCPacket() @@ -208,7 +208,7 @@ func (s *CCVTestSuite) TestConstructLigthClientEvidence() { for _, tc := range testCases { s.Run(tc.name, func() { - ev, err := s.providerApp.GetProviderKeeper().ConstructLigthClientEvidence( + ev, err := s.providerApp.GetProviderKeeper().ConstructLightClientEvidence( s.providerCtx(), *tc.misbehaviour, ) diff --git a/testutil/integration/debug_test.go b/testutil/integration/debug_test.go index da2d75355c..3bafef8295 100644 --- a/testutil/integration/debug_test.go +++ b/testutil/integration/debug_test.go @@ -265,6 +265,6 @@ func TestHandleConsumerMisbehaviour(t *testing.T) { runCCVTestByName(t, "TestHandleConsumerMisbehaviour") } -func TestConstructLigthClientEvidence(t *testing.T) { - runCCVTestByName(t, "TestConstructLigthClientEvidence") +func TestConstructLightClientEvidence(t *testing.T) { + runCCVTestByName(t, "TestConstructLightClientEvidence") } diff --git a/x/ccv/provider/keeper/double_vote.go b/x/ccv/provider/keeper/double_vote.go deleted file mode 100644 index fc7875009f..0000000000 --- a/x/ccv/provider/keeper/double_vote.go +++ /dev/null @@ -1,39 +0,0 @@ -package keeper - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - ibctmtypes "github.com/cosmos/ibc-go/v4/modules/light-clients/07-tendermint/types" - tmev "github.com/tendermint/tendermint/evidence" - tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - tmtypes "github.com/tendermint/tendermint/types" -) - -func (k Keeper) HandleConsumerDoubleVoting(ctx sdk.Context, evidence *tmproto.DuplicateVoteEvidence, header *ibctmtypes.Header) error { - - // TODO: check header against consumer chain client - - ev, err := tmtypes.DuplicateVoteEvidenceFromProto(evidence) - if err != nil { - return err - } - valset, err := tmtypes.ValidatorSetFromProto(header.TrustedValidators) - if err != nil { - return err - } - - // TODO: figure out if the evidence age must also be checked - if err := tmev.VerifyDuplicateVote(ev, header.Header.ChainID, valset); err != nil { - return err - } - - // TODO: convert misbehaving validator consumer pubkey - // TODO: call k.evidenceKeeper.HandleEquivocationEvidence() using correct infraction height - - logger := ctx.Logger() - logger.Info( - "confirmed equivocation", - "byzantine validator", sdk.ConsAddress(evidence.VoteA.GetValidatorAddress()), - ) - - return nil -} diff --git a/x/ccv/provider/keeper/misbehaviour.go b/x/ccv/provider/keeper/misbehaviour.go index 8df61c4bb5..f616e8fea8 100644 --- a/x/ccv/provider/keeper/misbehaviour.go +++ b/x/ccv/provider/keeper/misbehaviour.go @@ -13,7 +13,7 @@ import ( ) // HandleConsumerMisbehaviour checks whether the given IBC misbehaviour is valid and, if they are, the misbehaving -// CheckConsumerMisbehaviour check that the given IBC misbehaviour headers forms a valid light client attck evidence. +// CheckConsumerMisbehaviour check that the given IBC misbehaviour headers forms a valid light client attack evidence. // proceed to the jailing and tombstoning of the bzyantine validators. func (k Keeper) HandleConsumerMisbehaviour(ctx sdk.Context, misbehaviour ibctmtypes.Misbehaviour) error { logger := ctx.Logger() @@ -27,7 +27,7 @@ func (k Keeper) HandleConsumerMisbehaviour(ctx sdk.Context, misbehaviour ibctmty // isn't too old. see ibc-go/modules/light-clients/07-tendermint/types/misbehaviour_handle.go // construct a ligth client attack evidence - evidence, err := k.ConstructLigthClientEvidence(ctx, misbehaviour) + evidence, err := k.ConstructLightClientEvidence(ctx, misbehaviour) if err != nil { return err } @@ -36,7 +36,7 @@ func (k Keeper) HandleConsumerMisbehaviour(ctx sdk.Context, misbehaviour ibctmty for _, v := range evidence.ByzantineValidators { // convert consumer consensus address consuAddr := sdk.ConsAddress(v.Address.Bytes()) - provAddr := k.GetProviderAddrFromConsumerAddr(ctx, misbehaviour.Header1.Header.ChainID, types.ConsumerConsAddress{consuAddr}) + provAddr := k.GetProviderAddrFromConsumerAddr(ctx, misbehaviour.Header1.Header.ChainID, types.NewConsumerConsAddress(consuAddr)) k.stakingKeeper.ValidatorByConsAddr(ctx, consuAddr) val, ok := k.stakingKeeper.GetValidatorByConsAddr(ctx, provAddr.Address) @@ -67,9 +67,9 @@ func (k Keeper) HandleConsumerMisbehaviour(ctx sdk.Context, misbehaviour ibctmty return nil } -// ConstructLigthClientEvidence constructs and returns a CometBFT Ligth Client Attack(LCA) evidence struct +// ConstructLightClientEvidence constructs and returns a CometBFT Ligth Client Attack(LCA) evidence struct // from the given misbehaviour -func (k Keeper) ConstructLigthClientEvidence(ctx sdk.Context, misbehaviour ibctmtypes.Misbehaviour) (*tmtypes.LightClientAttackEvidence, error) { +func (k Keeper) ConstructLightClientEvidence(ctx sdk.Context, misbehaviour ibctmtypes.Misbehaviour) (*tmtypes.LightClientAttackEvidence, error) { // construct the trusted and conflicetd ligth blocks trusted, err := headerToLightBlock(*misbehaviour.Header1) diff --git a/x/ccv/provider/types/codec.go b/x/ccv/provider/types/codec.go index 3e4b34dd42..0ef3c2d296 100644 --- a/x/ccv/provider/types/codec.go +++ b/x/ccv/provider/types/codec.go @@ -36,6 +36,11 @@ func RegisterInterfaces(registry codectypes.InterfaceRegistry) { &EquivocationProposal{}, ) + registry.RegisterImplementations( + (*sdk.Msg)(nil), + &MsgSubmitConsumerMisbehaviour{}, + ) + msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) } diff --git a/x/ccv/provider/types/tx.pb.go b/x/ccv/provider/types/tx.pb.go index 27757abd0c..f27ab52533 100644 --- a/x/ccv/provider/types/tx.pb.go +++ b/x/ccv/provider/types/tx.pb.go @@ -12,7 +12,6 @@ import ( grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" _ "github.com/regen-network/cosmos-proto" - _ "github.com/tendermint/tendermint/proto/tendermint/types" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" @@ -195,6 +194,7 @@ var xxx_messageInfo_MsgRegisterConsumerRewardDenomResponse proto.InternalMessage // MsgSubmitConsumerMisbehaviour defines a message that reports a misbehaviour // observed on a consumer chain +// Note that the misbheaviour' headers must contain the same trusted states type MsgSubmitConsumerMisbehaviour struct { Submitter string `protobuf:"bytes,1,opt,name=submitter,proto3" json:"submitter,omitempty"` // The Misbehaviour of the consumer chain wrapping @@ -285,44 +285,43 @@ func init() { } var fileDescriptor_43221a4391e9fbf4 = []byte{ - // 578 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0x3f, 0x6f, 0xd3, 0x4e, - 0x18, 0x8e, 0x7f, 0xd5, 0x0f, 0xda, 0x6b, 0x41, 0xc2, 0xea, 0xd0, 0x9a, 0xe0, 0x40, 0x10, 0xd0, - 0xa1, 0xf8, 0x94, 0x30, 0x20, 0x2a, 0x31, 0x24, 0x65, 0x81, 0x2a, 0x12, 0x32, 0x03, 0x12, 0x03, - 0x91, 0x7d, 0x7e, 0xb9, 0x9c, 0x88, 0xef, 0xac, 0xbb, 0xb3, 0xa9, 0xbf, 0x01, 0x23, 0x4c, 0x88, - 0xad, 0x1f, 0x00, 0x89, 0xaf, 0xc1, 0xd8, 0x91, 0x09, 0xa1, 0x64, 0x61, 0x66, 0x64, 0x42, 0xfe, - 0x97, 0xb8, 0x22, 0x44, 0x11, 0xb0, 0xbd, 0x7f, 0x1e, 0x3f, 0xcf, 0xf3, 0xea, 0x3d, 0xbf, 0x68, - 0x9f, 0x71, 0x0d, 0x92, 0x8c, 0x3c, 0xc6, 0x87, 0x0a, 0x48, 0x2c, 0x99, 0x4e, 0x31, 0x21, 0x09, - 0x8e, 0xa4, 0x48, 0x58, 0x00, 0x12, 0x27, 0x1d, 0xac, 0x8f, 0x9d, 0x48, 0x0a, 0x2d, 0xcc, 0xeb, - 0x0b, 0xd0, 0x0e, 0x21, 0x89, 0x53, 0xa1, 0x9d, 0xa4, 0x63, 0x35, 0xa9, 0x10, 0x74, 0x0c, 0xd8, - 0x8b, 0x18, 0xf6, 0x38, 0x17, 0xda, 0xd3, 0x4c, 0x70, 0x55, 0x50, 0x58, 0xdb, 0x54, 0x50, 0x91, - 0x87, 0x38, 0x8b, 0xca, 0xea, 0x2e, 0x11, 0x2a, 0x14, 0x6a, 0x58, 0x34, 0x8a, 0xa4, 0x6a, 0x95, - 0x74, 0x79, 0xe6, 0xc7, 0x2f, 0xb0, 0xc7, 0xd3, 0xb2, 0x85, 0x99, 0x4f, 0xf0, 0x98, 0xd1, 0x91, - 0x26, 0x63, 0x06, 0x5c, 0x2b, 0xac, 0x81, 0x07, 0x20, 0x43, 0xc6, 0x75, 0xee, 0x7b, 0x96, 0x95, - 0x1f, 0xb4, 0x6a, 0x7d, 0x9d, 0x46, 0xa0, 0x30, 0x64, 0xb6, 0x39, 0x81, 0x02, 0xd0, 0x7e, 0x67, - 0xa0, 0xed, 0x81, 0xa2, 0x3d, 0xa5, 0x18, 0xe5, 0x87, 0x82, 0xab, 0x38, 0x04, 0x79, 0x04, 0xa9, - 0xb9, 0x8b, 0xd6, 0x8b, 0xb1, 0x59, 0xb0, 0x63, 0x5c, 0x35, 0xf6, 0x36, 0xdc, 0xf3, 0x79, 0xfe, - 0x30, 0x30, 0xef, 0xa2, 0x0b, 0xd5, 0xf8, 0x43, 0x2f, 0x08, 0xe4, 0xce, 0x7f, 0x59, 0xbf, 0x6f, - 0x7e, 0xff, 0xd2, 0xba, 0x98, 0x7a, 0xe1, 0xf8, 0xa0, 0x9d, 0x55, 0x41, 0xa9, 0xb6, 0xbb, 0x55, - 0x01, 0x7b, 0x41, 0x20, 0xcd, 0x6b, 0x68, 0x8b, 0x94, 0x12, 0xc3, 0x97, 0x90, 0xee, 0xac, 0xe5, - 0xbc, 0x9b, 0x64, 0x2e, 0x7b, 0xb0, 0xfe, 0xfa, 0xa4, 0xd5, 0xf8, 0x76, 0xd2, 0x6a, 0xb4, 0x6d, - 0xd4, 0x5c, 0x64, 0xcc, 0x05, 0x15, 0x09, 0xae, 0xa0, 0xfd, 0x1c, 0xd9, 0x03, 0x45, 0x5d, 0xa0, - 0x4c, 0x69, 0x90, 0x15, 0xc2, 0x85, 0x57, 0x9e, 0x0c, 0x1e, 0x00, 0x17, 0xa1, 0xb9, 0x8d, 0xfe, - 0x0f, 0xb2, 0xa0, 0xf4, 0x5f, 0x24, 0x66, 0x13, 0x6d, 0x04, 0x10, 0x09, 0xc5, 0xb4, 0x28, 0x9d, - 0xbb, 0xf3, 0x42, 0x4d, 0x7f, 0x0f, 0xdd, 0x5c, 0xce, 0x3f, 0x73, 0xf2, 0xde, 0x40, 0x57, 0x06, - 0x8a, 0x3e, 0x89, 0xfd, 0x90, 0xe9, 0x0a, 0x38, 0x60, 0xca, 0x87, 0x91, 0x97, 0x30, 0x11, 0xcb, - 0x4c, 0x53, 0xe5, 0x5d, 0x0d, 0xb2, 0x74, 0x33, 0x2f, 0x98, 0x8f, 0xd1, 0x56, 0x58, 0x43, 0xe7, - 0xa6, 0x36, 0xbb, 0xfb, 0x0e, 0xf3, 0x89, 0x53, 0x5f, 0xb6, 0x53, 0x5b, 0x6f, 0xd2, 0x71, 0xea, - 0x0a, 0xee, 0x19, 0x86, 0xda, 0x14, 0xb7, 0xd0, 0x8d, 0xa5, 0xd6, 0xaa, 0x21, 0xba, 0x3f, 0xd6, - 0xd0, 0xda, 0x40, 0x51, 0xf3, 0xad, 0x81, 0x2e, 0xfd, 0xfa, 0x1a, 0xee, 0x39, 0x2b, 0xfc, 0x08, - 0xce, 0xa2, 0x7d, 0x59, 0xbd, 0x3f, 0xfe, 0xb4, 0xf2, 0x66, 0x7e, 0x34, 0xd0, 0xe5, 0x65, 0x8b, - 0x3e, 0x5c, 0x55, 0x62, 0x09, 0x89, 0x75, 0xf4, 0x0f, 0x48, 0x66, 0x8e, 0x3f, 0x18, 0xc8, 0x5a, - 0xf2, 0x1e, 0xfa, 0xab, 0x6a, 0xfd, 0x9e, 0xc3, 0x7a, 0xf4, 0xf7, 0x1c, 0x95, 0xdd, 0xfe, 0xd3, - 0x4f, 0x13, 0xdb, 0x38, 0x9d, 0xd8, 0xc6, 0xd7, 0x89, 0x6d, 0xbc, 0x99, 0xda, 0x8d, 0xd3, 0xa9, - 0xdd, 0xf8, 0x3c, 0xb5, 0x1b, 0xcf, 0xee, 0x53, 0xa6, 0x47, 0xb1, 0xef, 0x10, 0x11, 0x96, 0x57, - 0x0a, 0xcf, 0x65, 0x6f, 0xcf, 0x0e, 0x68, 0xd2, 0xc5, 0xc7, 0x67, 0xaf, 0x68, 0x7e, 0x6d, 0xfc, - 0x73, 0xf9, 0x95, 0xb9, 0xf3, 0x33, 0x00, 0x00, 0xff, 0xff, 0x7c, 0xb5, 0x5a, 0x59, 0x76, 0x05, - 0x00, 0x00, + // 568 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0x3f, 0x6f, 0x13, 0x4f, + 0x10, 0xf5, 0xfd, 0xa2, 0x1f, 0x24, 0x9b, 0x80, 0xc4, 0xc9, 0x85, 0x73, 0x98, 0x33, 0x18, 0x01, + 0x29, 0xc2, 0xae, 0x6c, 0x0a, 0x44, 0x24, 0x0a, 0x3b, 0x34, 0x10, 0x59, 0x42, 0x47, 0x81, 0x44, + 0x81, 0x75, 0xb7, 0xbb, 0xac, 0x57, 0xf8, 0x76, 0x4f, 0xbb, 0x7b, 0x47, 0xee, 0x1b, 0x50, 0x42, + 0x85, 0xe8, 0xf2, 0x01, 0x90, 0xf8, 0x1a, 0x94, 0x29, 0xa9, 0x10, 0xb2, 0x1b, 0x6a, 0x4a, 0x2a, + 0xe4, 0xfb, 0x63, 0x5f, 0x84, 0xb1, 0x2c, 0xa0, 0xdb, 0x99, 0x79, 0xfb, 0xde, 0x1b, 0xcd, 0x68, + 0xc0, 0x3e, 0x17, 0x86, 0x2a, 0x3c, 0xf2, 0xb9, 0x18, 0x6a, 0x8a, 0x63, 0xc5, 0x4d, 0x8a, 0x30, + 0x4e, 0x50, 0xa4, 0x64, 0xc2, 0x09, 0x55, 0x28, 0xe9, 0x20, 0x73, 0x0c, 0x23, 0x25, 0x8d, 0xb4, + 0xaf, 0x2f, 0x41, 0x43, 0x8c, 0x13, 0x58, 0xa2, 0x61, 0xd2, 0x71, 0x9a, 0x4c, 0x4a, 0x36, 0xa6, + 0xc8, 0x8f, 0x38, 0xf2, 0x85, 0x90, 0xc6, 0x37, 0x5c, 0x0a, 0x9d, 0x53, 0x38, 0x75, 0x26, 0x99, + 0xcc, 0x9e, 0x68, 0xf6, 0x2a, 0xb2, 0xbb, 0x58, 0xea, 0x50, 0xea, 0x61, 0x5e, 0xc8, 0x83, 0xb2, + 0x54, 0xd0, 0x65, 0x51, 0x10, 0xbf, 0x40, 0xbe, 0x48, 0x8b, 0x12, 0xe2, 0x01, 0x46, 0x63, 0xce, + 0x46, 0x06, 0x8f, 0x39, 0x15, 0x46, 0x23, 0x43, 0x05, 0xa1, 0x2a, 0xe4, 0xc2, 0x64, 0xbe, 0xe7, + 0x51, 0xfe, 0xa1, 0xfd, 0xce, 0x02, 0xf5, 0x81, 0x66, 0x3d, 0xad, 0x39, 0x13, 0x87, 0x52, 0xe8, + 0x38, 0xa4, 0xea, 0x88, 0xa6, 0xf6, 0x2e, 0xd8, 0xcc, 0xbb, 0xe2, 0xa4, 0x61, 0x5d, 0xb5, 0xf6, + 0xb6, 0xbc, 0xf3, 0x59, 0xfc, 0x90, 0xd8, 0x77, 0xc1, 0x85, 0xb2, 0xbb, 0xa1, 0x4f, 0x88, 0x6a, + 0xfc, 0x37, 0xab, 0xf7, 0xed, 0xef, 0x5f, 0x5a, 0x17, 0x53, 0x3f, 0x1c, 0x1f, 0xb4, 0x67, 0x59, + 0xaa, 0x75, 0xdb, 0xdb, 0x29, 0x81, 0x3d, 0x42, 0x94, 0x7d, 0x0d, 0xec, 0xe0, 0x42, 0x62, 0xf8, + 0x92, 0xa6, 0x8d, 0x8d, 0x8c, 0x77, 0x1b, 0x2f, 0x64, 0x0f, 0x36, 0x5f, 0x9f, 0xb4, 0x6a, 0xdf, + 0x4e, 0x5a, 0xb5, 0xb6, 0x0b, 0x9a, 0xcb, 0x8c, 0x79, 0x54, 0x47, 0x52, 0x68, 0xda, 0x7e, 0x0e, + 0xdc, 0x81, 0x66, 0x1e, 0x65, 0x5c, 0x1b, 0xaa, 0x4a, 0x84, 0x47, 0x5f, 0xf9, 0x8a, 0x3c, 0xa0, + 0x42, 0x86, 0x76, 0x1d, 0xfc, 0x4f, 0x66, 0x8f, 0xc2, 0x7f, 0x1e, 0xd8, 0x4d, 0xb0, 0x45, 0x68, + 0x24, 0x35, 0x37, 0xb2, 0x70, 0xee, 0x2d, 0x12, 0x15, 0xfd, 0x3d, 0x70, 0x73, 0x35, 0xff, 0xdc, + 0xc9, 0x7b, 0x0b, 0x5c, 0x19, 0x68, 0xf6, 0x24, 0x0e, 0x42, 0x6e, 0x4a, 0xe0, 0x80, 0xeb, 0x80, + 0x8e, 0xfc, 0x84, 0xcb, 0x58, 0xcd, 0x34, 0x75, 0x56, 0x35, 0x54, 0x15, 0x6e, 0x16, 0x09, 0xfb, + 0x31, 0xd8, 0x09, 0x2b, 0xe8, 0xcc, 0xd4, 0x76, 0x77, 0x1f, 0xf2, 0x00, 0xc3, 0xea, 0x2c, 0x61, + 0x65, 0x7a, 0x49, 0x07, 0x56, 0x15, 0xbc, 0x33, 0x0c, 0x95, 0x2e, 0x6e, 0x81, 0x1b, 0x2b, 0xad, + 0x95, 0x4d, 0x74, 0x7f, 0x6c, 0x80, 0x8d, 0x81, 0x66, 0xf6, 0x5b, 0x0b, 0x5c, 0xfa, 0x75, 0x1b, + 0xee, 0xc1, 0x35, 0xf6, 0x1c, 0x2e, 0x9b, 0x97, 0xd3, 0xfb, 0xe3, 0xaf, 0xa5, 0x37, 0xfb, 0xa3, + 0x05, 0x2e, 0xaf, 0x1a, 0xf4, 0xe1, 0xba, 0x12, 0x2b, 0x48, 0x9c, 0xa3, 0x7f, 0x40, 0x32, 0x77, + 0xfc, 0xc1, 0x02, 0xce, 0x8a, 0x7d, 0xe8, 0xaf, 0xab, 0xf5, 0x7b, 0x0e, 0xe7, 0xd1, 0xdf, 0x73, + 0x94, 0x76, 0xfb, 0x4f, 0x3f, 0x4d, 0x5c, 0xeb, 0x74, 0xe2, 0x5a, 0x5f, 0x27, 0xae, 0xf5, 0x66, + 0xea, 0xd6, 0x4e, 0xa7, 0x6e, 0xed, 0xf3, 0xd4, 0xad, 0x3d, 0xbb, 0xcf, 0xb8, 0x19, 0xc5, 0x01, + 0xc4, 0x32, 0x2c, 0x8e, 0x10, 0x5a, 0xc8, 0xde, 0x9e, 0xdf, 0xc7, 0xa4, 0x8b, 0x8e, 0xcf, 0x1e, + 0x49, 0x93, 0x46, 0x54, 0x07, 0xe7, 0xb2, 0x2b, 0x73, 0xe7, 0x67, 0x00, 0x00, 0x00, 0xff, 0xff, + 0xe3, 0x4f, 0x57, 0x26, 0x55, 0x05, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. From 31148077517aa05719e9985abccb1e911531996a Mon Sep 17 00:00:00 2001 From: Simon Noetzlin Date: Thu, 6 Jul 2023 08:47:09 +0200 Subject: [PATCH 20/33] remove unwanted changes --- Dockerfile | 4 +- tests/e2e/actions.go | 15 +- tests/e2e/actions_consumer_misbehaviour.go | 92 ++++++++ tests/e2e/config.go | 48 +++++ tests/e2e/main.go | 17 +- tests/e2e/state.go | 1 + tests/e2e/step_delegation.go | 43 +--- tests/e2e/steps.go | 7 + tests/e2e/steps_consumer_misbehaviour.go | 215 +++++++++++++++++++ tests/e2e/testnet-scripts/fork-consumer.sh | 120 +++++++++++ tests/e2e/testnet-scripts/hermes-config.toml | 18 +- tests/e2e/testnet-scripts/start-chain.sh | 9 +- x/ccv/provider/keeper/misbehaviour.go | 5 +- 13 files changed, 536 insertions(+), 58 deletions(-) create mode 100644 tests/e2e/actions_consumer_misbehaviour.go create mode 100644 tests/e2e/steps_consumer_misbehaviour.go create mode 100644 tests/e2e/testnet-scripts/fork-consumer.sh diff --git a/Dockerfile b/Dockerfile index 4d81392316..ba351f2e78 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,7 +28,7 @@ RUN go mod tidy RUN make install # Get Hermes build -FROM ghcr.io/informalsystems/hermes:1.4.1 AS hermes-builder +FROM otacrew/hermes-ics:latest AS hermes-builder # Get CometMock FROM informalofftermatt/cometmock:latest as cometmock-builder @@ -36,7 +36,7 @@ FROM informalofftermatt/cometmock:latest as cometmock-builder # Get GoRelayer FROM informalofftermatt/gorelayer:nogas AS gorelayer-builder -FROM --platform=linux/amd64 fedora:36 +FROM --platform=linux/arm64 fedora:36 RUN dnf update -y RUN dnf install -y which iproute iputils procps-ng vim-minimal tmux net-tools htop jq USER root diff --git a/tests/e2e/actions.go b/tests/e2e/actions.go index 06bcb7f5f7..803feaa174 100644 --- a/tests/e2e/actions.go +++ b/tests/e2e/actions.go @@ -63,7 +63,7 @@ type StartChainAction struct { validators []StartChainValidator // Genesis changes specific to this action, appended to genesis changes defined in chain config genesisChanges string - skipGentx bool + consumerCfg bool } type StartChainValidator struct { @@ -133,7 +133,7 @@ func (tr TestRun) startChain( cmd := exec.Command("docker", "exec", tr.containerConfig.instanceName, "/bin/bash", "/testnet-scripts/start-chain.sh", chainConfig.binaryName, string(vals), string(chainConfig.chainId), chainConfig.ipPrefix, genesisChanges, - fmt.Sprint(action.skipGentx), + fmt.Sprint(action.consumerCfg), // override config/config.toml for each node on chain // usually timeout_commit and peer_gossip_sleep_duration are changed to vary the test run duration // lower timeout_commit means the blocks are produced faster making the test run shorter @@ -170,6 +170,7 @@ func (tr TestRun) startChain( tr.addChainToRelayer(addChainToRelayerAction{ chain: action.chain, validator: action.validators[0].id, + consumer: action.consumerCfg, }, verbose) } @@ -521,7 +522,7 @@ func (tr TestRun) voteGovProposal( } wg.Wait() - time.Sleep(time.Duration(tr.chainConfigs[action.chain].votingWaitTime) * time.Second) + time.Sleep((time.Duration(tr.chainConfigs[action.chain].votingWaitTime) + 5) * time.Second) } type startConsumerChainAction struct { @@ -564,7 +565,7 @@ func (tr TestRun) startConsumerChain( chain: action.consumerChain, validators: action.validators, genesisChanges: consumerGenesis, - skipGentx: true, + consumerCfg: true, }, verbose) } @@ -698,6 +699,7 @@ func (tr TestRun) startChangeover( type addChainToRelayerAction struct { chain chainID validator validatorID + consumer bool } const hermesChainConfigTemplate = ` @@ -715,6 +717,7 @@ rpc_timeout = "10s" store_prefix = "ibc" trusting_period = "14days" websocket_addr = "%s" +ccv_consumer_chain = %v [chains.gas_price] denom = "stake" @@ -813,7 +816,7 @@ func (tr TestRun) addChainToHermes( keyName, rpcAddr, wsAddr, - // action.consumer, + action.consumer, ) bashCommand := fmt.Sprintf(`echo '%s' >> %s`, chainConfig, "/root/.hermes/config.toml") @@ -1664,7 +1667,7 @@ func (tr TestRun) invokeDoublesignSlash( string(chainConfig.chainId), chainConfig.ipPrefix).CombinedOutput() if err != nil { log.Fatal(err, "\n", string(bz)) - } + tr.waitBlocks("provi", 10, 2*time.Minute) } diff --git a/tests/e2e/actions_consumer_misbehaviour.go b/tests/e2e/actions_consumer_misbehaviour.go new file mode 100644 index 0000000000..1bf8b0a2d5 --- /dev/null +++ b/tests/e2e/actions_consumer_misbehaviour.go @@ -0,0 +1,92 @@ +package main + +import ( + "bufio" + "fmt" + "log" + "os/exec" + "time" +) + +type forkConsumerChainAction struct { + consumerChain chainID + providerChain chainID + validator validatorID +} + +func (tr TestRun) forkConsumerChain(action forkConsumerChainAction, verbose bool) { + valCfg := tr.validatorConfigs[action.validator] + + fmt.Println(valCfg.mnemonic) + + //#nosec G204 -- Bypass linter warning for spawning subprocess with cmd arguments. + configureNodeCmd := exec.Command("docker", "exec", tr.containerConfig.instanceName, "/bin/bash", + "/testnet-scripts/fork-consumer.sh", tr.chainConfigs[action.consumerChain].binaryName, + string(action.validator), string(action.consumerChain), + tr.chainConfigs[action.consumerChain].ipPrefix, + tr.chainConfigs[action.providerChain].ipPrefix, + valCfg.mnemonic, + ) + + if verbose { + fmt.Println("forkConsumerChain - reconfigure node cmd:", configureNodeCmd.String()) + } + + cmdReader, err := configureNodeCmd.StdoutPipe() + if err != nil { + log.Fatal(err) + } + configureNodeCmd.Stderr = configureNodeCmd.Stdout + + if err := configureNodeCmd.Start(); err != nil { + log.Fatal(err) + } + + scanner := bufio.NewScanner(cmdReader) + + for scanner.Scan() { + out := scanner.Text() + if verbose { + fmt.Println("fork consumer validator : " + out) + } + if out == done { + break + } + } + if err := scanner.Err(); err != nil { + log.Fatal(err) + } + + time.Sleep(5 * time.Second) +} + +type updateLightClientAction struct { + hostChain chainID + hermesConfig string + clientID string +} + +func (tr TestRun) updateLightClient( + action updateLightClientAction, + verbose bool, +) { + // hermes clear packets ibc0 transfer channel-13 + //#nosec G204 -- Bypass linter warning for spawning subprocess with cmd arguments. + cmd := exec.Command("docker", "exec", tr.containerConfig.instanceName, "hermes", + "--config", action.hermesConfig, + "update", + "client", + "--client", action.clientID, + "--host-chain", string(action.hostChain), + ) + if verbose { + log.Println("updateLightClientAction cmd:", cmd.String()) + } + + bz, err := cmd.CombinedOutput() + if err != nil { + log.Fatal(err, "\n", string(bz)) + } + + tr.waitBlocks(action.hostChain, 1, 30*time.Second) +} diff --git a/tests/e2e/config.go b/tests/e2e/config.go index 3038f69f4e..7c03d9d2a5 100644 --- a/tests/e2e/config.go +++ b/tests/e2e/config.go @@ -376,6 +376,54 @@ func ChangeoverTestRun() TestRun { } } +func ConsumerMisbehaviourTestRun() TestRun { + return TestRun{ + name: "misbehaviour", + containerConfig: ContainerConfig{ + containerName: "interchain-security-container", + instanceName: "interchain-security-instance", + ccvVersion: "1", + now: time.Now(), + }, + validatorConfigs: map[validatorID]ValidatorConfig{ + validatorID("alice"): getDefaultValidators()["alice"], + validatorID("bob"): getDefaultValidators()["bob"], + }, + chainConfigs: map[chainID]ChainConfig{ + chainID("provi"): { + chainId: chainID("provi"), + binaryName: "interchain-security-pd", + ipPrefix: "7.7.7", + votingWaitTime: 20, + genesisChanges: ".app_state.gov.voting_params.voting_period = \"20s\" | " + + // Custom slashing parameters for testing validator downtime functionality + // See https://docs.cosmos.network/main/modules/slashing/04_begin_block.html#uptime-tracking + ".app_state.slashing.params.signed_blocks_window = \"10\" | " + + ".app_state.slashing.params.min_signed_per_window = \"0.500000000000000000\" | " + + ".app_state.slashing.params.downtime_jail_duration = \"2s\" | " + + ".app_state.slashing.params.slash_fraction_downtime = \"0.010000000000000000\" | " + + ".app_state.provider.params.slash_meter_replenish_fraction = \"1.0\" | " + // This disables slash packet throttling + ".app_state.provider.params.slash_meter_replenish_period = \"3s\"", + }, + chainID("consu"): { + chainId: chainID("consu"), + binaryName: "interchain-security-cd", + ipPrefix: "7.7.8", + votingWaitTime: 20, + genesisChanges: ".app_state.gov.voting_params.voting_period = \"20s\" | " + + ".app_state.slashing.params.signed_blocks_window = \"15\" | " + + ".app_state.slashing.params.min_signed_per_window = \"0.500000000000000000\" | " + + ".app_state.slashing.params.downtime_jail_duration = \"2s\" | " + + ".app_state.slashing.params.slash_fraction_downtime = \"0.010000000000000000\"", + }, + }, + tendermintConfigOverride: `s/timeout_commit = "5s"/timeout_commit = "1s"/;` + + `s/peer_gossip_sleep_duration = "100ms"/peer_gossip_sleep_duration = "50ms"/;` + + // Required to start consumer chain by running a single big validator + `s/fast_sync = true/fast_sync = false/;`, + } +} + func (s *TestRun) SetDockerConfig(localSdkPath string, useGaia bool, gaiaTag string) { if localSdkPath != "" { fmt.Println("USING LOCAL SDK", localSdkPath) diff --git a/tests/e2e/main.go b/tests/e2e/main.go index 737a318de2..631d7802d7 100644 --- a/tests/e2e/main.go +++ b/tests/e2e/main.go @@ -57,11 +57,12 @@ func main() { } testRuns := []testRunWithSteps{ - {ChangeoverTestRun(), changeoverSteps}, - {DefaultTestRun(), happyPathSteps}, - {DemocracyTestRun(true), democracySteps}, - {DemocracyTestRun(false), rewardDenomConsumerSteps}, - {SlashThrottleTestRun(), slashThrottleSteps}, + // {ChangeoverTestRun(), changeoverSteps}, + // {DefaultTestRun(), happyPathSteps}, + // {DemocracyTestRun(true), democracySteps}, + // {DemocracyTestRun(false), rewardDenomConsumerSteps}, + // {SlashThrottleTestRun(), slashThrottleSteps}, + {ConsumerMisbehaviourTestRun(), consumerMisbehaviourSteps}, } if includeMultiConsumer != nil && *includeMultiConsumer { testRuns = append(testRuns, testRunWithSteps{MultiConsumerTestRun(), multipleConsumers}) @@ -101,7 +102,7 @@ func (tr *TestRun) Run(steps []Step, localSdkPath string, useGaia bool, gaiaTag tr.validateStringLiterals() tr.startDocker() tr.executeSteps(steps) - tr.teardownDocker() + // tr.teardownDocker() } type testRunWithSteps struct { @@ -173,6 +174,10 @@ func (tr *TestRun) runStep(step Step, verbose bool) { tr.startRelayer(action, verbose) case registerConsumerRewardDenomAction: tr.registerConsumerRewardDenom(action, verbose) + case forkConsumerChainAction: + tr.forkConsumerChain(action, verbose) + case updateLightClientAction: + tr.updateLightClient(action, verbose) default: log.Fatalf("unknown action in testRun %s: %#v", tr.name, action) } diff --git a/tests/e2e/state.go b/tests/e2e/state.go index 15500dd01f..b458048269 100644 --- a/tests/e2e/state.go +++ b/tests/e2e/state.go @@ -28,6 +28,7 @@ type ChainState struct { ConsumerChainQueueSizes *map[chainID]uint GlobalSlashQueueSize *uint RegisteredConsumerRewardDenoms *[]string + // ClientState ibctmtypes.ClientState. } type Proposal interface { diff --git a/tests/e2e/step_delegation.go b/tests/e2e/step_delegation.go index f33fc136d4..05c963d81a 100644 --- a/tests/e2e/step_delegation.go +++ b/tests/e2e/step_delegation.go @@ -14,32 +14,13 @@ func stepsDelegate(consumerName string) []Step { chainID("provi"): ChainState{ ValPowers: &map[validatorID]uint{ validatorID("alice"): 511, - validatorID("bob"): 500, - validatorID("carol"): 500, + validatorID("bob"): 20, }, }, chainID(consumerName): ChainState{ ValPowers: &map[validatorID]uint{ validatorID("alice"): 500, - validatorID("bob"): 500, - validatorID("carol"): 500, - }, - }, - }, - }, - { - action: SendTokensAction{ - chain: chainID(consumerName), - from: validatorID("alice"), - to: validatorID("bob"), - amount: 1, - }, - state: State{ - chainID(consumerName): ChainState{ - // Tx should not go through, ICS channel is not setup until first VSC packet has been relayed to consumer - ValBalances: &map[validatorID]uint{ - validatorID("alice"): 10000000000, - validatorID("bob"): 10000000000, + validatorID("bob"): 20, }, }, }, @@ -55,25 +36,7 @@ func stepsDelegate(consumerName string) []Step { chainID(consumerName): ChainState{ ValPowers: &map[validatorID]uint{ validatorID("alice"): 511, - validatorID("bob"): 500, - validatorID("carol"): 500, - }, - }, - }, - }, - { - action: SendTokensAction{ - chain: chainID(consumerName), - from: validatorID("alice"), - to: validatorID("bob"), - amount: 1, - }, - state: State{ - chainID(consumerName): ChainState{ - // Now tx should execute - ValBalances: &map[validatorID]uint{ - validatorID("alice"): 9999999999, - validatorID("bob"): 10000000001, + validatorID("bob"): 20, }, }, }, diff --git a/tests/e2e/steps.go b/tests/e2e/steps.go index 7613b05558..78a56654e6 100644 --- a/tests/e2e/steps.go +++ b/tests/e2e/steps.go @@ -87,3 +87,10 @@ var changeoverSteps = concatSteps( stepsPostChangeoverDelegate("sover"), ) + +var consumerMisbehaviourSteps = concatSteps( + // start provider and consumer chain + stepsStartChainsWithSoftOptOut("consu"), + // make consumer validator to misbehave and get jail + stepsCauseConsumerMisbehaviour("consu"), +) diff --git a/tests/e2e/steps_consumer_misbehaviour.go b/tests/e2e/steps_consumer_misbehaviour.go new file mode 100644 index 0000000000..25beda169a --- /dev/null +++ b/tests/e2e/steps_consumer_misbehaviour.go @@ -0,0 +1,215 @@ +package main + +import clienttypes "github.com/cosmos/ibc-go/v4/modules/core/02-client/types" + +// starts a provider chain and a consumer chain with two validators, +// where the voting power distributed in order that the smallest validator +// can soft opt-out of validating the consumer chain. +func stepsStartChainsWithSoftOptOut(consumerName string) []Step { + s := []Step{ + { + // Create a provider chain with two validators, where one validator holds 96% of the voting power + // and the other validator holds 4% of the voting power. + action: StartChainAction{ + chain: chainID("provi"), + validators: []StartChainValidator{ + {id: validatorID("alice"), stake: 500000000, allocation: 10000000000}, + {id: validatorID("bob"), stake: 20000000, allocation: 10000000000}, + }, + }, + state: State{ + chainID("provi"): ChainState{ + ValBalances: &map[validatorID]uint{ + validatorID("alice"): 9500000000, + validatorID("bob"): 9980000000, + }, + }, + }, + }, + { + action: submitConsumerAdditionProposalAction{ + chain: chainID("provi"), + from: validatorID("alice"), + deposit: 10000001, + consumerChain: chainID(consumerName), + spawnTime: 0, + initialHeight: clienttypes.Height{RevisionNumber: 0, RevisionHeight: 1}, + }, + state: State{ + chainID("provi"): ChainState{ + ValBalances: &map[validatorID]uint{ + validatorID("alice"): 9489999999, + validatorID("bob"): 9980000000, + }, + Proposals: &map[uint]Proposal{ + 1: ConsumerAdditionProposal{ + Deposit: 10000001, + Chain: chainID(consumerName), + SpawnTime: 0, + InitialHeight: clienttypes.Height{RevisionNumber: 0, RevisionHeight: 1}, + Status: "PROPOSAL_STATUS_VOTING_PERIOD", + }, + }, + }, + }, + }, + { + action: voteGovProposalAction{ + chain: chainID("provi"), + from: []validatorID{validatorID("alice"), validatorID("bob")}, + vote: []string{"yes", "yes"}, + propNumber: 1, + }, + state: State{ + chainID("provi"): ChainState{ + Proposals: &map[uint]Proposal{ + 1: ConsumerAdditionProposal{ + Deposit: 10000001, + Chain: chainID(consumerName), + SpawnTime: 0, + InitialHeight: clienttypes.Height{RevisionNumber: 0, RevisionHeight: 1}, + Status: "PROPOSAL_STATUS_PASSED", + }, + }, + ValBalances: &map[validatorID]uint{ + validatorID("alice"): 9500000000, + validatorID("bob"): 9980000000, + }, + }, + }, + }, + { + // start a consumer chain using a single big validator knowing that it holds more than 2/3 of the voting power + // and that the other validators hold less than 5% so they won't get jailed thanks to the sof opt-out mechanism. + action: startConsumerChainAction{ + consumerChain: chainID(consumerName), + providerChain: chainID("provi"), + validators: []StartChainValidator{ + {id: validatorID("alice"), stake: 500000000, allocation: 10000000000}, + }, + // For consumers that're launching with the provider being on an earlier version + // of ICS before the soft opt-out threshold was introduced, we need to set the + // soft opt-out threshold to 0.05 in the consumer genesis to ensure that the + // consumer binary doesn't panic. Sdk requires that all params are set to valid + // values from the genesis file. + genesisChanges: ".app_state.ccvconsumer.params.soft_opt_out_threshold = \"0.05\"", + }, + state: State{ + chainID("provi"): ChainState{ + ValBalances: &map[validatorID]uint{ + validatorID("alice"): 9500000000, + validatorID("bob"): 9980000000, + }, + }, + chainID(consumerName): ChainState{ + ValBalances: &map[validatorID]uint{ + validatorID("alice"): 10000000000, + }, + }, + }, + }, + { + action: addIbcConnectionAction{ + chainA: chainID(consumerName), + chainB: chainID("provi"), + clientA: 0, + clientB: 0, + }, + state: State{}, + }, + { + action: addIbcChannelAction{ + chainA: chainID(consumerName), + chainB: chainID("provi"), + connectionA: 0, + portA: "consumer", // TODO: check port mapping + portB: "provider", + order: "ordered", + }, + state: State{}, + }, + // delegate some token and relay the resulting VSC packets + // in oder to initiates the CCV channel + { + action: delegateTokensAction{ + chain: chainID("provi"), + from: validatorID("alice"), + to: validatorID("alice"), + amount: 11000000, + }, + state: State{ + chainID("provi"): ChainState{ + ValPowers: &map[validatorID]uint{ + validatorID("alice"): 511, + validatorID("bob"): 20, + }, + }, + chainID(consumerName): ChainState{ + ValPowers: &map[validatorID]uint{ + validatorID("alice"): 500, + validatorID("bob"): 20, + }, + }, + }, + }, + { + action: relayPacketsAction{ + chainA: chainID("provi"), + chainB: chainID(consumerName), + port: "provider", + channel: 0, + }, + state: State{ + chainID(consumerName): ChainState{ + ValPowers: &map[validatorID]uint{ + validatorID("alice"): 511, + validatorID("bob"): 20, + }, + }, + }, + }, + } + + return s +} + +// stepsCauseConsumerMisbehaviour causes a consumer chain to misbehave by creating a fork, +// and relays the light client attack evidence to the provider +func stepsCauseConsumerMisbehaviour(consumerName string) []Step { + return []Step{ + { + action: forkConsumerChainAction{ + consumerChain: chainID(consumerName), + providerChain: chainID("provi"), + validator: validatorID("alice"), + }, + state: State{}, + }, + { + action: startRelayerAction{}, + state: State{}, + }, + { + action: updateLightClientAction{ + hostChain: chainID("provi"), + hermesConfig: "/root/.hermes/config_fork.toml", + clientID: "07-tendermint-0", + }, + state: State{ + chainID("provi"): ChainState{ + ValPowers: &map[validatorID]uint{ + validatorID("alice"): 511, + validatorID("bob"): 20, + }, + // TODO check client is frozen + }, + chainID(consumerName): ChainState{ + ValPowers: &map[validatorID]uint{ + validatorID("alice"): 511, + validatorID("bob"): 20, + }, + }, + }, + }, + } +} diff --git a/tests/e2e/testnet-scripts/fork-consumer.sh b/tests/e2e/testnet-scripts/fork-consumer.sh new file mode 100644 index 0000000000..d1654997d7 --- /dev/null +++ b/tests/e2e/testnet-scripts/fork-consumer.sh @@ -0,0 +1,120 @@ +#!/bin/bash +set -eux + +# The gaiad binary +BIN=$1 + +# the validator ID used to perform the fork +VAL_ID=$2 + +# The consumer chain ID +CHAIN_ID=$3 + +# chain's IP address prefix; $PROV_CHAIN_PREFIX, $CONS_CHAIN_PREFIX... +# see chain config for details +CONS_CHAIN_PREFIX=$4 + +PROV_CHAIN_PREFIX=$5 + +VAL_MNEMONIC=$6 + +FORK_NODE_DIR=/$CHAIN_ID/validatorfork + +# create directory for forking/double-signing node +mkdir $FORK_NODE_DIR +cp -r /$CHAIN_ID/validator$VAL_ID/* $FORK_NODE_DIR + +# remove persistent peers +rm -f $FORK_NODE_DIR/addrbook.json + +# add fork to hermes relayer +tee ~/.hermes/config_fork.toml< mnemonic.txt + +# Connecting new peers to Hermes relayer requires somehow to add the account keys again +hermes keys add --mnemonic-file mnemonic.txt --chain consu --overwrite + +sleep 1 + +hermes keys add --mnemonic-file mnemonic.txt --chain provi --overwrite + +sleep 1 + + +# Start validator forking the consumer chain by +# reuse the consumer sybil IP allocation +ip netns exec $CHAIN_ID-sybil $BIN \ + --home $FORK_NODE_DIR \ + --address tcp://$CONS_CHAIN_PREFIX.252:26655 \ + --rpc.laddr tcp://$CONS_CHAIN_PREFIX.252:26658 \ + --grpc.address $CONS_CHAIN_PREFIX.252:9091 \ + --log_level info \ + --p2p.laddr tcp://$CONS_CHAIN_PREFIX.252:26656 \ + --grpc-web.enable=false start &> /consu/validatorfork/logs & + diff --git a/tests/e2e/testnet-scripts/hermes-config.toml b/tests/e2e/testnet-scripts/hermes-config.toml index eb8154d95b..89c1f0a0bb 100644 --- a/tests/e2e/testnet-scripts/hermes-config.toml +++ b/tests/e2e/testnet-scripts/hermes-config.toml @@ -1,2 +1,18 @@ [global] - log_level = "info" \ No newline at end of file +log_level = "debug" + +[mode] + +[mode.clients] +enabled = true +refresh = true +misbehaviour = true + +[mode.connections] +enabled = false + +[mode.channels] +enabled = false + +[mode.packets] +enabled = true \ No newline at end of file diff --git a/tests/e2e/testnet-scripts/start-chain.sh b/tests/e2e/testnet-scripts/start-chain.sh index 9d6e73fdbb..8bc0dbadca 100644 --- a/tests/e2e/testnet-scripts/start-chain.sh +++ b/tests/e2e/testnet-scripts/start-chain.sh @@ -198,6 +198,7 @@ do #'s/foo/bar/;s/abc/def/' sed -i "$TENDERMINT_CONFIG_TRANSFORM" $CHAIN_ID/validator$VAL_ID/config/config.toml fi + done @@ -257,8 +258,12 @@ do fi done - # Remove leading comma and concat to flag - PERSISTENT_PEERS="--p2p.persistent_peers ${PERSISTENT_PEERS:1}" + + if [ "$PERSISTENT_PEERS" != "" ]; then + # Remove leading comma and concat to flag + PERSISTENT_PEERS="--p2p.persistent_peers ${PERSISTENT_PEERS:1}" + fi + ARGS="$GAIA_HOME $LISTEN_ADDRESS $RPC_ADDRESS $GRPC_ADDRESS $LOG_LEVEL $P2P_ADDRESS $ENABLE_WEBGRPC $PERSISTENT_PEERS" if [[ "$USE_COMETMOCK" == "true" ]]; then diff --git a/x/ccv/provider/keeper/misbehaviour.go b/x/ccv/provider/keeper/misbehaviour.go index f616e8fea8..e285adf652 100644 --- a/x/ccv/provider/keeper/misbehaviour.go +++ b/x/ccv/provider/keeper/misbehaviour.go @@ -19,9 +19,10 @@ func (k Keeper) HandleConsumerMisbehaviour(ctx sdk.Context, misbehaviour ibctmty logger := ctx.Logger() if err := k.clientKeeper.CheckMisbehaviourAndUpdateState(ctx, &misbehaviour); err != nil { + logger.Info("Misbehaviour rejected", err.Error()) + return err } - // Since the misbehaviour packet was received within the trusting period // w.r.t to the last trusted consensus it entails that the infraction age // isn't too old. see ibc-go/modules/light-clients/07-tendermint/types/misbehaviour_handle.go @@ -32,6 +33,8 @@ func (k Keeper) HandleConsumerMisbehaviour(ctx sdk.Context, misbehaviour ibctmty return err } + logger.Info("ConstructLightClientEvidence", fmt.Sprintf("%#+v\n", evidence)) + // jail and tombstone the byzantine validators for _, v := range evidence.ByzantineValidators { // convert consumer consensus address From fffeb07e1dcec4c580905e4473801e2c1957ca85 Mon Sep 17 00:00:00 2001 From: Simon Noetzlin Date: Thu, 6 Jul 2023 15:29:05 +0200 Subject: [PATCH 21/33] fix hermes config with assigned key --- tests/e2e/actions.go | 19 +++++-- tests/e2e/actions_consumer_misbehaviour.go | 14 ++--- tests/e2e/config.go | 40 ++++++++++++++- tests/e2e/state.go | 40 ++++++++++++++- tests/e2e/steps_consumer_misbehaviour.go | 59 +++++++++++++++++++--- tests/e2e/testnet-scripts/fork-consumer.sh | 4 +- 6 files changed, 155 insertions(+), 21 deletions(-) diff --git a/tests/e2e/actions.go b/tests/e2e/actions.go index 803feaa174..2e1863f070 100644 --- a/tests/e2e/actions.go +++ b/tests/e2e/actions.go @@ -281,6 +281,8 @@ func (tr TestRun) submitConsumerAdditionProposal( if err != nil { log.Fatal(err, "\n", string(bz)) } + + tr.waitBlocks(action.chain, 1, 5*time.Second) } type submitConsumerRemovalProposalAction struct { @@ -522,7 +524,7 @@ func (tr TestRun) voteGovProposal( } wg.Wait() - time.Sleep((time.Duration(tr.chainConfigs[action.chain].votingWaitTime) + 5) * time.Second) + time.Sleep((time.Duration(tr.chainConfigs[action.chain].votingWaitTime)) * time.Second) } type startConsumerChainAction struct { @@ -830,7 +832,16 @@ func (tr TestRun) addChainToHermes( } // Save mnemonic to file within container - saveMnemonicCommand := fmt.Sprintf(`echo '%s' > %s`, tr.validatorConfigs[action.validator].mnemonic, "/root/.hermes/mnemonic.txt") + var mnemonic string + if tr.validatorConfigs[action.validator].useConsumerKey && action.consumer { + mnemonic = tr.validatorConfigs[action.validator].consumerMnemonic + } else { + mnemonic = tr.validatorConfigs[action.validator].mnemonic + } + + saveMnemonicCommand := fmt.Sprintf(`echo '%s' > %s`, mnemonic, "/root/.hermes/mnemonic.txt") + fmt.Println("Add to hermes", action.validator) + fmt.Println(mnemonic) //#nosec G204 -- Bypass linter warning for spawning subprocess with cmd arguments. bz, err = exec.Command("docker", "exec", tr.containerConfig.instanceName, "bash", "-c", saveMnemonicCommand, @@ -1667,7 +1678,7 @@ func (tr TestRun) invokeDoublesignSlash( string(chainConfig.chainId), chainConfig.ipPrefix).CombinedOutput() if err != nil { log.Fatal(err, "\n", string(bz)) - + } tr.waitBlocks("provi", 10, 2*time.Minute) } @@ -1770,6 +1781,8 @@ func (tr TestRun) assignConsumerPubKey(action assignConsumerPubKeyAction, verbos valCfg.useConsumerKey = true tr.validatorConfigs[action.validator] = valCfg } + + time.Sleep(1 * time.Second) } // slashThrottleDequeue polls slash queue sizes until nextQueueSize is achieved diff --git a/tests/e2e/actions_consumer_misbehaviour.go b/tests/e2e/actions_consumer_misbehaviour.go index 1bf8b0a2d5..2b01c2818e 100644 --- a/tests/e2e/actions_consumer_misbehaviour.go +++ b/tests/e2e/actions_consumer_misbehaviour.go @@ -12,13 +12,12 @@ type forkConsumerChainAction struct { consumerChain chainID providerChain chainID validator validatorID + relayerConfig string } func (tr TestRun) forkConsumerChain(action forkConsumerChainAction, verbose bool) { valCfg := tr.validatorConfigs[action.validator] - fmt.Println(valCfg.mnemonic) - //#nosec G204 -- Bypass linter warning for spawning subprocess with cmd arguments. configureNodeCmd := exec.Command("docker", "exec", tr.containerConfig.instanceName, "/bin/bash", "/testnet-scripts/fork-consumer.sh", tr.chainConfigs[action.consumerChain].binaryName, @@ -26,6 +25,7 @@ func (tr TestRun) forkConsumerChain(action forkConsumerChainAction, verbose bool tr.chainConfigs[action.consumerChain].ipPrefix, tr.chainConfigs[action.providerChain].ipPrefix, valCfg.mnemonic, + action.relayerConfig, ) if verbose { @@ -61,9 +61,9 @@ func (tr TestRun) forkConsumerChain(action forkConsumerChainAction, verbose bool } type updateLightClientAction struct { - hostChain chainID - hermesConfig string - clientID string + hostChain chainID + relayerConfig string + clientID string } func (tr TestRun) updateLightClient( @@ -73,7 +73,7 @@ func (tr TestRun) updateLightClient( // hermes clear packets ibc0 transfer channel-13 //#nosec G204 -- Bypass linter warning for spawning subprocess with cmd arguments. cmd := exec.Command("docker", "exec", tr.containerConfig.instanceName, "hermes", - "--config", action.hermesConfig, + "--config", action.relayerConfig, "update", "client", "--client", action.clientID, @@ -88,5 +88,5 @@ func (tr TestRun) updateLightClient( log.Fatal(err, "\n", string(bz)) } - tr.waitBlocks(action.hostChain, 1, 30*time.Second) + tr.waitBlocks(action.hostChain, 5, 30*time.Second) } diff --git a/tests/e2e/config.go b/tests/e2e/config.go index 7c03d9d2a5..efed270ce7 100644 --- a/tests/e2e/config.go +++ b/tests/e2e/config.go @@ -386,8 +386,44 @@ func ConsumerMisbehaviourTestRun() TestRun { now: time.Now(), }, validatorConfigs: map[validatorID]ValidatorConfig{ - validatorID("alice"): getDefaultValidators()["alice"], - validatorID("bob"): getDefaultValidators()["bob"], + validatorID("alice"): { + mnemonic: "pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear", + delAddress: "cosmos19pe9pg5dv9k5fzgzmsrgnw9rl9asf7ddwhu7lm", + valoperAddress: "cosmosvaloper19pe9pg5dv9k5fzgzmsrgnw9rl9asf7ddtrgtng", + valconsAddress: "cosmosvalcons1qmq08eruchr5sf5s3rwz7djpr5a25f7xw4mceq", + privValidatorKey: `{"address":"06C0F3E47CC5C748269088DC2F36411D3AAA27C6","pub_key":{"type":"tendermint/PubKeyEd25519","value":"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10="},"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ=="}}`, + nodeKey: `{"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA=="}}`, + ipSuffix: "4", + + // consumer chain assigned key + consumerMnemonic: "exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty", + consumerDelAddress: "cosmos1eeeggku6dzk3mv7wph3zq035rhtd890sjswszd", + consumerValoperAddress: "cosmosvaloper1eeeggku6dzk3mv7wph3zq035rhtd890shy69w7", + consumerValconsAddress: "cosmosvalcons1muys5jyqk4xd27e208nym85kn0t4zjcfeu63fe", + consumerValPubKey: `{"@type":"/cosmos.crypto.ed25519.PubKey","key":"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes="}`, + consumerPrivValidatorKey: `{"address":"DF090A4880B54CD57B2A79E64D9E969BD7514B09","pub_key":{"type":"tendermint/PubKeyEd25519","value":"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes="},"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w=="}}`, + consumerNodeKey: `{"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"F966RL9pi20aXRzEBe4D0xRQJtZt696Xxz44XUON52cFc83FMn1WXJbP6arvA2JPyn2LA3DLKCFHSgALrCGXGA=="}}`, + useConsumerKey: true, + }, + validatorID("bob"): { + mnemonic: "glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel", + delAddress: "cosmos1dkas8mu4kyhl5jrh4nzvm65qz588hy9qcz08la", + valoperAddress: "cosmosvaloper1dkas8mu4kyhl5jrh4nzvm65qz588hy9qakmjnw", + valconsAddress: "cosmosvalcons1nx7n5uh0ztxsynn4sje6eyq2ud6rc6klc96w39", + privValidatorKey: `{"address":"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF","pub_key":{"type":"tendermint/PubKeyEd25519","value":"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI="},"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g=="}}`, + nodeKey: `{"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw=="}}`, + ipSuffix: "5", + + // consumer chain assigned key + consumerMnemonic: "grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere", + consumerDelAddress: "cosmos1q90l6j6lzzgt460ehjj56azknlt5yrd4s38n97", + consumerValoperAddress: "cosmosvaloper1q90l6j6lzzgt460ehjj56azknlt5yrd449nxfd", + consumerValconsAddress: "cosmosvalcons1uuec3cjxajv5te08p220usrjhkfhg9wyvqn0tm", + consumerValPubKey: `{"@type":"/cosmos.crypto.ed25519.PubKey","key":"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o="}`, + consumerPrivValidatorKey: `{"address":"E73388E246EC9945E5E70A94FE4072BD937415C4","pub_key":{"type":"tendermint/PubKeyEd25519","value":"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o="},"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg=="}}`, + consumerNodeKey: `{"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"uhPCqnL2KE8m/8OFNLQ5bN3CJr6mds+xfBi0E4umT/s2uWiJhet+vbYx88DHSdof3gGFNTIzAIxSppscBKX96w=="}}`, + useConsumerKey: false, + }, }, chainConfigs: map[chainID]ChainConfig{ chainID("provi"): { diff --git a/tests/e2e/state.go b/tests/e2e/state.go index b458048269..8d9ba9a81e 100644 --- a/tests/e2e/state.go +++ b/tests/e2e/state.go @@ -28,7 +28,7 @@ type ChainState struct { ConsumerChainQueueSizes *map[chainID]uint GlobalSlashQueueSize *uint RegisteredConsumerRewardDenoms *[]string - // ClientState ibctmtypes.ClientState. + ClientsFrozenHeights *map[string]clienttypes.Height } type Proposal interface { @@ -185,6 +185,14 @@ func (tr TestRun) getChainState(chain chainID, modelState ChainState) ChainState chainState.RegisteredConsumerRewardDenoms = ®isteredConsumerRewardDenoms } + if modelState.ClientsFrozenHeights != nil { + chainClientsFrozenHeights := map[string]clienttypes.Height{} + for id := range *modelState.ClientsFrozenHeights { + chainClientsFrozenHeights[id] = tr.getClientFrozenHeight(chain, id) + } + chainState.ClientsFrozenHeights = &chainClientsFrozenHeights + } + return chainState } @@ -738,3 +746,33 @@ func (tr TestRun) getQueryNodeIP(chain chainID) string { } return fmt.Sprintf("%s.253", tr.chainConfigs[chain].ipPrefix) } + +// getClientFrozenHeight returns the frozen height for a client with the given client ID +// by querying the hosting chain with the given chainID +func (tr TestRun) getClientFrozenHeight(chain chainID, clientID string) clienttypes.Height { + //#nosec G204 -- Bypass linter warning for spawning subprocess with cmd arguments. + cmd := exec.Command("docker", "exec", tr.containerConfig.instanceName, tr.chainConfigs[chainID("provi")].binaryName, + "query", "ibc", "client", "state", clientID, + `--node`, tr.getQueryNode(chainID("provi")), + `-o`, `json`, + ) + + bz, err := cmd.CombinedOutput() + if err != nil { + log.Fatal(err, "\n", string(bz)) + } + + frozenHeight := gjson.Get(string(bz), "client_state.frozen_height") + + revHeight, err := strconv.Atoi(frozenHeight.Get("revision_height").String()) + if err != nil { + log.Fatal(err, "\n", string(bz)) + } + + revNumber, err := strconv.Atoi(frozenHeight.Get("revision_number").String()) + if err != nil { + log.Fatal(err, "\n", string(bz)) + } + + return clienttypes.Height{RevisionHeight: uint64(revHeight), RevisionNumber: uint64(revNumber)} +} diff --git a/tests/e2e/steps_consumer_misbehaviour.go b/tests/e2e/steps_consumer_misbehaviour.go index 25beda169a..13ac2d9361 100644 --- a/tests/e2e/steps_consumer_misbehaviour.go +++ b/tests/e2e/steps_consumer_misbehaviour.go @@ -1,6 +1,8 @@ package main -import clienttypes "github.com/cosmos/ibc-go/v4/modules/core/02-client/types" +import ( + clienttypes "github.com/cosmos/ibc-go/v4/modules/core/02-client/types" +) // starts a provider chain and a consumer chain with two validators, // where the voting power distributed in order that the smallest validator @@ -53,6 +55,29 @@ func stepsStartChainsWithSoftOptOut(consumerName string) []Step { }, }, }, + // add a consumer key before the chain starts + // the key will be present in consumer genesis initial_val_set + { + action: assignConsumerPubKeyAction{ + chain: chainID(consumerName), + validator: validatorID("alice"), + consumerPubkey: `{"@type":"/cosmos.crypto.ed25519.PubKey","key":"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes="}`, + // consumer chain has not started + // we don't need to reconfigure the node + // since it will start with consumer key + reconfigureNode: false, + }, + state: State{ + chainID(consumerName): ChainState{ + AssignedKeys: &map[validatorID]string{ + validatorID("alice"): "cosmosvalcons1muys5jyqk4xd27e208nym85kn0t4zjcfeu63fe", + }, + ProviderKeys: &map[validatorID]string{ + validatorID("alice"): "cosmosvalcons1qmq08eruchr5sf5s3rwz7djpr5a25f7xw4mceq", + }, + }, + }, + }, { action: voteGovProposalAction{ chain: chainID("provi"), @@ -176,32 +201,52 @@ func stepsStartChainsWithSoftOptOut(consumerName string) []Step { // stepsCauseConsumerMisbehaviour causes a consumer chain to misbehave by creating a fork, // and relays the light client attack evidence to the provider func stepsCauseConsumerMisbehaviour(consumerName string) []Step { + consumerClientID := "07-tendermint-0" + forkRelayerConfig := "/root/.hermes/config_fork.toml" + return []Step{ { action: forkConsumerChainAction{ consumerChain: chainID(consumerName), providerChain: chainID("provi"), validator: validatorID("alice"), + relayerConfig: forkRelayerConfig, }, state: State{}, }, { action: startRelayerAction{}, - state: State{}, + state: State{ + // The consumer client shouldn't be frozen on the provider yet since + // no client update packet was sent by the fork yet + chainID("provi"): ChainState{ + ClientsFrozenHeights: &map[string]clienttypes.Height{ + "07-tendermint-0": { + RevisionNumber: 0, + RevisionHeight: 0, + }, + }, + }, + }, }, { action: updateLightClientAction{ - hostChain: chainID("provi"), - hermesConfig: "/root/.hermes/config_fork.toml", - clientID: "07-tendermint-0", + hostChain: chainID("provi"), + relayerConfig: forkRelayerConfig, + clientID: consumerClientID, }, state: State{ chainID("provi"): ChainState{ ValPowers: &map[validatorID]uint{ - validatorID("alice"): 511, + validatorID("alice"): 0, validatorID("bob"): 20, }, - // TODO check client is frozen + ClientsFrozenHeights: &map[string]clienttypes.Height{ + "07-tendermint-0": { + RevisionNumber: 0, + RevisionHeight: 1, + }, + }, }, chainID(consumerName): ChainState{ ValPowers: &map[validatorID]uint{ diff --git a/tests/e2e/testnet-scripts/fork-consumer.sh b/tests/e2e/testnet-scripts/fork-consumer.sh index d1654997d7..b05417760b 100644 --- a/tests/e2e/testnet-scripts/fork-consumer.sh +++ b/tests/e2e/testnet-scripts/fork-consumer.sh @@ -18,6 +18,8 @@ PROV_CHAIN_PREFIX=$5 VAL_MNEMONIC=$6 +FORK_HERMES_CONFIG=$7 + FORK_NODE_DIR=/$CHAIN_ID/validatorfork # create directory for forking/double-signing node @@ -28,7 +30,7 @@ cp -r /$CHAIN_ID/validator$VAL_ID/* $FORK_NODE_DIR rm -f $FORK_NODE_DIR/addrbook.json # add fork to hermes relayer -tee ~/.hermes/config_fork.toml< Date: Thu, 6 Jul 2023 15:33:54 +0200 Subject: [PATCH 22/33] revert unwanted changes --- output.log | 238 +++++++++++++++++++++ tests/e2e/main.go | 12 +- tests/e2e/testnet-scripts/fork-consumer.sh | 4 +- 3 files changed, 246 insertions(+), 8 deletions(-) create mode 100644 output.log diff --git a/output.log b/output.log new file mode 100644 index 0000000000..c80a19a575 --- /dev/null +++ b/output.log @@ -0,0 +1,238 @@ +=============== building misbehaviour testRun =============== +startDocker: + CONTAINER_NAME=interchain-security-container +startDocker: + INSTANCE_NAME=interchain-security-instance +startDocker: + LOCAL_SDK_PATH=default +startDocker: + USE_GAIA_PROVIDER=false +startDocker: + USE_GAIA_TAG= +startDocker: + set +e +startDocker: + docker rm -f interchain-security-instance +startDocker: Error: No such container: interchain-security-instance +startDocker: + set -e +startDocker: + '[' -d ./cosmos-sdk ']' +startDocker: + [[ default != \d\e\f\a\u\l\t ]] +startDocker: + printf '\n\nUsing default sdk version\n\n\n' +startDocker: +startDocker: +startDocker: Using default sdk version +startDocker: +startDocker: +startDocker: + [[ false = \t\r\u\e ]] +startDocker: + printf '\n\nUsing ICS provider app as provider\n\n\n' +startDocker: +startDocker: +startDocker: Using ICS provider app as provider +startDocker: +startDocker: +startDocker: + docker build -f Dockerfile -t interchain-security-container . +startDocker: #1 [internal] load build definition from Dockerfile +startDocker: #1 sha256:a0cee17e78737057a68d25b4fd49811c89dc8afcadafdd1978b58d35b3c0da1c +startDocker: #1 transferring dockerfile: 37B done +startDocker: #1 DONE 0.0s +startDocker: +startDocker: #2 [internal] load .dockerignore +startDocker: #2 sha256:4c4a3b3312107dd6ab7a39c973b7650daef786e96bf7e7f90e4f84afc3cd1ffb +startDocker: #2 transferring context: 2B done +startDocker: #2 DONE 0.0s +startDocker: +startDocker: #3 resolve image config for docker.io/docker/dockerfile:1 +startDocker: #3 sha256:5511bf222770ecb09bae16a5e9dc6ddaf6633b05719203c5e2b00644727cd62f +startDocker: #3 ... +startDocker: +startDocker: #4 [auth] docker/dockerfile:pull token for registry-1.docker.io +startDocker: #4 sha256:30fc96cb12100d8493a24d77ed92e49a75e81d80bc2ad263760bc9d91e119c18 +startDocker: #4 DONE 0.0s +startDocker: +startDocker: #3 resolve image config for docker.io/docker/dockerfile:1 +startDocker: #3 sha256:5511bf222770ecb09bae16a5e9dc6ddaf6633b05719203c5e2b00644727cd62f +startDocker: #3 DONE 1.4s +startDocker: +startDocker: #5 docker-image://docker.io/docker/dockerfile:1@sha256:39b85bbfa7536a5feceb7372a0817649ecb2724562a38360f4d6a7782a409b14 +startDocker: #5 sha256:9a158a4603558c8d1260a1837f34e5dcdc934c3e44e35af38132f4449f9ebf12 +startDocker: #5 CACHED +startDocker: +startDocker: #6 [internal] load build definition from Dockerfile +startDocker: #6 sha256:d6915fd1e878024a7f1105667a7027d32b197b81dd06bb0b1aa56f5319f1fff0 +startDocker: #6 DONE 0.0s +startDocker: +startDocker: #7 [internal] load .dockerignore +startDocker: #7 sha256:507fef730b5510b7762bd5267360b4086c98a34ec3afb696bf3d2d7d21f2e335 +startDocker: #7 DONE 0.0s +startDocker: +startDocker: #12 [internal] load metadata for docker.io/library/golang:1.19-alpine +startDocker: #12 sha256:db341117c17817e8ff2360c3624eceaf927c5431ea3a1010182351ebafcce418 +startDocker: #12 ... +startDocker: +startDocker: #13 [auth] otacrew/hermes-ics:pull token for registry-1.docker.io +startDocker: #13 sha256:6ed335be6e0b794f59599ba8f783918f21a3bff490550210b7c34e3756e3e195 +startDocker: #13 DONE 0.0s +startDocker: +startDocker: #11 [internal] load metadata for docker.io/informalofftermatt/gorelayer:nogas +startDocker: #11 sha256:30a212e25818399fd4de4628ba986abb3f9acfd2726260309d56d93987463b56 +startDocker: #11 ... +startDocker: +startDocker: #14 [auth] informalofftermatt/cometmock:pull token for registry-1.docker.io +startDocker: #14 sha256:5fe3f6fa6d571d44b170a802e970087617b30812cb8b6ae792e3f39f2562eaad +startDocker: #14 DONE 0.0s +startDocker: +startDocker: #15 [auth] informalofftermatt/gorelayer:pull token for registry-1.docker.io +startDocker: #15 sha256:d3c3cea6f1547c6f57b1357cc69c68aa48bd5cc5daeb0a706258abed13ebbffd +startDocker: #15 DONE 0.0s +startDocker: +startDocker: #16 [auth] library/golang:pull token for registry-1.docker.io +startDocker: #16 sha256:1c552d38b1c261b51b57ea468bcaf9cc5ef0af53c871cf41a32432c988d71224 +startDocker: #16 DONE 0.0s +startDocker: +startDocker: #17 [auth] library/fedora:pull token for registry-1.docker.io +startDocker: #17 sha256:6e505c3f2bcd08fe61c4a2357be97910227d3968c871825298b6a084b8f4f8da +startDocker: #17 DONE 0.0s +startDocker: +startDocker: #10 [internal] load metadata for docker.io/informalofftermatt/cometmock:latest +startDocker: #10 sha256:a32af4bf747a6e3115819b8c6d8c80abeeab270d805016bddd63d8f85c61be0b +startDocker: #10 ... +startDocker: +startDocker: #8 [internal] load metadata for docker.io/otacrew/hermes-ics:latest +startDocker: #8 sha256:1619a8f499c95bd5af09b73b1d3a2ab9c6d7d6780852f9a079269b6c182f3235 +startDocker: #8 DONE 1.5s +startDocker: +startDocker: #9 [internal] load metadata for docker.io/library/fedora:36 +startDocker: #9 sha256:73cd5a5ed47fc791d26860a9f6452dd61c51470638f517e9fa5cdca15792d916 +startDocker: #9 DONE 2.0s +startDocker: +startDocker: #11 [internal] load metadata for docker.io/informalofftermatt/gorelayer:nogas +startDocker: #11 sha256:30a212e25818399fd4de4628ba986abb3f9acfd2726260309d56d93987463b56 +startDocker: #11 DONE 2.2s +startDocker: +startDocker: #10 [internal] load metadata for docker.io/informalofftermatt/cometmock:latest +startDocker: #10 sha256:a32af4bf747a6e3115819b8c6d8c80abeeab270d805016bddd63d8f85c61be0b +startDocker: #10 DONE 2.3s +startDocker: +startDocker: #12 [internal] load metadata for docker.io/library/golang:1.19-alpine +startDocker: #12 sha256:db341117c17817e8ff2360c3624eceaf927c5431ea3a1010182351ebafcce418 +startDocker: #12 DONE 2.3s +startDocker: +startDocker: #23 [cometmock-builder 1/1] FROM docker.io/informalofftermatt/cometmock:latest@sha256:c8f54f54b14fda1ffa737fb6ab02fe3b8423cfc308f99bdace7539f920a14682 +startDocker: #23 sha256:5b578f98ce1950c9b6ae50ca290be9f6ee3a5b7249a23285ac729337998afa36 +startDocker: #23 DONE 0.0s +startDocker: +startDocker: #21 [hermes-builder 1/1] FROM docker.io/otacrew/hermes-ics:latest@sha256:36806114ec58b4dca2173974f09d73cd4b9ff02d81ba882f6f152cba02bae139 +startDocker: #21 sha256:a9171665a53c60610d8881bfbfc46df6ba80ba890eb5fd04bd66c9cb7ae6622e +startDocker: #21 DONE 0.0s +startDocker: +startDocker: #25 [gorelayer-builder 1/1] FROM docker.io/informalofftermatt/gorelayer:nogas@sha256:07c8ccd57ade48a407be6e2f503e5f12bf6f5c61e8deafd402ff8c15b04ab8a1 +startDocker: #25 sha256:8a76aed9c101ebff920e322f3580b0413fc7630dafbf47400ab561109204de5c +startDocker: #25 DONE 0.0s +startDocker: +startDocker: #27 [is-builder 1/10] FROM docker.io/library/golang:1.19-alpine@sha256:470c8d0638c5b7007a6118baee531c30e0516a18e45b35bff1f8ab92cf8f896d +startDocker: #27 sha256:5223bfcab5806439b55371a6102f93203b8b4171a586251c641310088838642c +startDocker: #27 DONE 0.0s +startDocker: +startDocker: #18 [stage-4 1/12] FROM docker.io/library/fedora:36@sha256:64cd00a0e2b92d527c0a0954162a73e85f160e3a53c38325b51e87d6aab4e266 +startDocker: #18 sha256:5031400c012ded166194f592f4fbbc517b0a7051caa9252048f537694d4110e9 +startDocker: #18 DONE 0.0s +startDocker: +startDocker: #29 [internal] load build context +startDocker: #29 sha256:9858b29b84f4e1025f7cc79d42ba1f3504a9ce43ae34349f9e2d53f8c0ce5356 +startDocker: #29 transferring context: 4.10MB 0.7s done +startDocker: #29 DONE 0.7s +startDocker: +startDocker: #28 [is-builder 2/10] RUN apk add --no-cache curl make git libc-dev bash gcc linux-headers +startDocker: #28 sha256:fc221a60c9fdcdff81c09910439fb67a92187557122616a1e063d42019cb7b7a +startDocker: #28 CACHED +startDocker: +startDocker: #30 [is-builder 3/10] COPY go.mod /go.mod +startDocker: #30 sha256:e15d65a5e35ce272d87314eeb9ff6402cf320438dc4853f28107e0eee5cee485 +startDocker: #30 CACHED +startDocker: +startDocker: #31 [is-builder 4/10] COPY go.sum /go.sum +startDocker: #31 sha256:c17d002021834ee7c7b0f764463fc18efdc4330da247e5eaad14400772d3b4f3 +startDocker: #31 CACHED +startDocker: +startDocker: #32 [is-builder 5/10] RUN go mod download +startDocker: #32 sha256:d71b3adff54b3875295530a71bb43ecc276eb17cda3b7c2f410ca8ce6b1f680c +startDocker: #32 CACHED +startDocker: +startDocker: #33 [is-builder 6/10] ADD . /interchain-security +startDocker: #33 sha256:a0e52ca9b60725e98f4f8e3f86cb21bc0dddda7ac1660bebd3e9c8f0f995d849 +startDocker: #33 DONE 5.1s +startDocker: +startDocker: #34 [is-builder 7/10] WORKDIR /interchain-security +startDocker: #34 sha256:56097d24d06233dc29e88cc2a6cca993360742f2111f4dc337b7bcbc4e8632e8 +startDocker: #34 DONE 0.0s +startDocker: +startDocker: #35 [is-builder 8/10] RUN if [ -d "./cosmos-sdk" ]; then go mod edit -replace github.com/cosmos/cosmos-sdk=./cosmos-sdk; fi +startDocker: #35 sha256:187bbf219916465d89aeccab99de791859cc9ee8aaf1b44d603fb805f3d0a60d +startDocker: #35 DONE 0.2s +startDocker: +startDocker: #36 [is-builder 9/10] RUN go mod tidy +startDocker: #36 sha256:a195eb6dbcba834e5ea847fa85ec1789a834a2a40720905c6286f0d2f884d121 +startDocker: #36 1.148 go: downloading github.com/frankban/quicktest v1.14.4 +startDocker: #36 1.148 go: downloading github.com/otiai10/copy v1.6.0 +startDocker: #36 1.215 go: downloading gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c +startDocker: #36 1.233 go: downloading github.com/google/go-cmp v0.5.9 +startDocker: #36 1.335 go: downloading github.com/pascaldekloe/goe v0.1.0 +startDocker: #36 1.336 go: downloading github.com/btcsuite/btcd/btcutil v1.1.2 +startDocker: #36 1.337 go: downloading github.com/jhump/protoreflect v1.13.1-0.20220928232736-101791cb1b4c +startDocker: #36 1.367 go: downloading github.com/facebookgo/ensure v0.0.0-20200202191622-63f1cf65ac4c +startDocker: #36 1.380 go: downloading github.com/btcsuite/btcd v0.22.1 +startDocker: #36 1.455 go: downloading github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1 +startDocker: #36 1.479 go: downloading github.com/fortytw2/leaktest v1.3.0 +startDocker: #36 1.545 go: downloading github.com/regen-network/gocuke v0.6.2 +startDocker: #36 1.560 go: downloading gotest.tools/v3 v3.4.0 +startDocker: #36 1.592 go: downloading gotest.tools v2.2.0+incompatible +startDocker: #36 1.633 go: downloading github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f +startDocker: #36 1.646 go: downloading github.com/adlio/schema v1.3.3 +startDocker: #36 1.652 go: downloading github.com/ory/dockertest v3.3.5+incompatible +startDocker: #36 1.671 go: downloading github.com/stretchr/objx v0.5.0 +startDocker: #36 1.693 go: downloading github.com/facebookgo/stack v0.0.0-20160209184415-751773369052 +startDocker: #36 1.695 go: downloading github.com/facebookgo/subset v0.0.0-20200203212716-c811ad88dec4 +startDocker: #36 1.708 go: downloading github.com/decred/dcrd/crypto/blake256 v1.0.0 +startDocker: #36 1.712 go: downloading github.com/VividCortex/gohistogram v1.0.0 +startDocker: #36 1.728 go: downloading github.com/cucumber/common/gherkin/go/v22 v22.0.0 +startDocker: #36 1.728 go: downloading github.com/cockroachdb/apd/v3 v3.1.0 +startDocker: #36 1.731 go: downloading github.com/cucumber/common/messages/go/v17 v17.1.1 +startDocker: #36 1.735 go: downloading pgregory.net/rapid v0.5.3 +startDocker: #36 1.761 go: downloading github.com/gin-gonic/gin v1.8.1 +startDocker: #36 1.784 go: downloading golang.org/x/sync v0.1.0 +startDocker: #36 1.790 go: downloading github.com/nxadm/tail v1.4.8 +startDocker: #36 1.790 go: downloading github.com/cenkalti/backoff v2.2.1+incompatible +startDocker: #36 1.795 go: downloading github.com/Microsoft/go-winio v0.6.0 +startDocker: #36 1.797 go: downloading github.com/docker/go-units v0.5.0 +startDocker: #36 1.804 go: downloading github.com/OneOfOne/xxhash v1.2.2 +startDocker: #36 1.805 go: downloading github.com/spaolacci/murmur3 v1.1.0 +startDocker: #36 1.820 go: downloading github.com/alecthomas/participle/v2 v2.0.0-alpha7 +startDocker: #36 1.821 go: downloading github.com/gofrs/uuid v4.3.0+incompatible +startDocker: #36 1.822 go: downloading github.com/gobwas/httphead v0.1.0 +startDocker: #36 1.840 go: downloading github.com/gobwas/pool v0.2.1 +startDocker: #36 1.840 go: downloading gonum.org/v1/gonum v0.8.2 +startDocker: #36 1.850 go: downloading github.com/gin-contrib/sse v0.1.0 +startDocker: #36 1.852 go: downloading gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 +startDocker: #36 1.855 go: downloading github.com/sirupsen/logrus v1.9.0 +startDocker: #36 1.861 go: downloading github.com/opencontainers/runc v1.1.3 +startDocker: #36 1.864 go: downloading github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5 +startDocker: #36 1.877 go: downloading github.com/opencontainers/image-spec v1.1.0-rc2 +startDocker: #36 1.909 go: downloading golang.org/x/tools v0.4.0 +startDocker: #36 1.927 go: downloading github.com/go-errors/errors v1.4.2 +startDocker: #36 1.954 go: downloading github.com/pingcap/errors v0.11.4 +startDocker: #36 2.063 go: downloading github.com/go-playground/validator/v10 v10.11.1 +startDocker: #36 2.067 go: downloading github.com/ugorji/go/codec v1.2.7 +startDocker: #36 2.224 go: downloading github.com/goccy/go-json v0.9.11 +startDocker: #36 2.226 go: downloading github.com/ugorji/go v1.1.7 +startDocker: #36 2.250 go: downloading github.com/json-iterator/go v1.1.12 +startDocker: #36 2.272 go: downloading github.com/docker/go-connections v0.4.0 +startDocker: #36 2.288 go: downloading github.com/containerd/continuity v0.3.0 +startDocker: #36 2.291 go: downloading github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 +startDocker: #36 2.309 go: downloading github.com/opencontainers/go-digest v1.0.0 +startDocker: #36 2.321 go: downloading github.com/go-playground/universal-translator v0.18.0 +startDocker: #36 2.323 go: downloading github.com/leodido/go-urn v1.2.1 +startDocker: #36 2.337 go: downloading github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd +startDocker: #36 2.338 go: downloading github.com/modern-go/reflect2 v1.0.2 +startDocker: #36 2.376 go: downloading github.com/go-playground/locales v0.14.0 +startDocker: #36 2.421 go: downloading golang.org/x/mod v0.7.0 +startDocker: #36 DONE 3.2s +startDocker: +startDocker: #37 [is-builder 10/10] RUN make install +startDocker: #37 sha256:c8211a74abcd858f0148b5eca1e5aaf2c3530e39a4ef15c0544480913264cb86 +startDocker: #37 0.326 export GOFLAGS='-buildmode=pie' +startDocker: #37 0.327 export CGO_CPPFLAGS="-D_FORTIFY_SOURCE=2" +startDocker: #37 0.327 export CGO_LDFLAGS="-Wl,-z,relro,-z,now -fstack-protector" +startDocker: #37 0.328 go install ./cmd/interchain-security-pd diff --git a/tests/e2e/main.go b/tests/e2e/main.go index 631d7802d7..4c7b6722cd 100644 --- a/tests/e2e/main.go +++ b/tests/e2e/main.go @@ -57,11 +57,11 @@ func main() { } testRuns := []testRunWithSteps{ - // {ChangeoverTestRun(), changeoverSteps}, - // {DefaultTestRun(), happyPathSteps}, - // {DemocracyTestRun(true), democracySteps}, - // {DemocracyTestRun(false), rewardDenomConsumerSteps}, - // {SlashThrottleTestRun(), slashThrottleSteps}, + {ChangeoverTestRun(), changeoverSteps}, + {DefaultTestRun(), happyPathSteps}, + {DemocracyTestRun(true), democracySteps}, + {DemocracyTestRun(false), rewardDenomConsumerSteps}, + {SlashThrottleTestRun(), slashThrottleSteps}, {ConsumerMisbehaviourTestRun(), consumerMisbehaviourSteps}, } if includeMultiConsumer != nil && *includeMultiConsumer { @@ -102,7 +102,7 @@ func (tr *TestRun) Run(steps []Step, localSdkPath string, useGaia bool, gaiaTag tr.validateStringLiterals() tr.startDocker() tr.executeSteps(steps) - // tr.teardownDocker() + tr.teardownDocker() } type testRunWithSteps struct { diff --git a/tests/e2e/testnet-scripts/fork-consumer.sh b/tests/e2e/testnet-scripts/fork-consumer.sh index b05417760b..a08872a303 100644 --- a/tests/e2e/testnet-scripts/fork-consumer.sh +++ b/tests/e2e/testnet-scripts/fork-consumer.sh @@ -100,9 +100,9 @@ EOF echo $VAL_MNEMONIC > mnemonic.txt # Connecting new peers to Hermes relayer requires somehow to add the account keys again -hermes keys add --mnemonic-file mnemonic.txt --chain consu --overwrite +# hermes keys add --mnemonic-file mnemonic.txt --chain consu --overwrite -sleep 1 +# sleep 1 hermes keys add --mnemonic-file mnemonic.txt --chain provi --overwrite From a11ee290957da4f942db00335aa16cfd02cf11d0 Mon Sep 17 00:00:00 2001 From: Simon Noetzlin Date: Thu, 6 Jul 2023 15:44:50 +0200 Subject: [PATCH 23/33] revert local setup --- Dockerfile | 2 +- go.mod | 3 +- go.sum | 14 +- output.log | 1227 ++++++++++++++++++-- tests/e2e/testnet-scripts/fork-consumer.sh | 14 +- 5 files changed, 1111 insertions(+), 149 deletions(-) diff --git a/Dockerfile b/Dockerfile index ba351f2e78..03939617be 100644 --- a/Dockerfile +++ b/Dockerfile @@ -36,7 +36,7 @@ FROM informalofftermatt/cometmock:latest as cometmock-builder # Get GoRelayer FROM informalofftermatt/gorelayer:nogas AS gorelayer-builder -FROM --platform=linux/arm64 fedora:36 +FROM --platform=linux/amd64 fedora:36 RUN dnf update -y RUN dnf install -y which iproute iputils procps-ng vim-minimal tmux net-tools htop jq USER root diff --git a/go.mod b/go.mod index 7ef3e43ffb..58b8eaa667 100644 --- a/go.mod +++ b/go.mod @@ -80,7 +80,6 @@ require ( github.com/go-kit/kit v0.12.0 // indirect github.com/go-kit/log v0.2.1 // indirect github.com/go-logfmt/logfmt v0.5.1 // indirect - github.com/gobwas/ws v1.1.0 // indirect github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect github.com/gogo/gateway v1.1.0 // indirect github.com/golang/glog v1.0.0 // indirect @@ -116,7 +115,7 @@ require ( github.com/minio/highwayhash v1.0.2 // indirect github.com/mitchellh/mapstructure v1.5.0 // indirect github.com/mtibben/percent v0.2.1 // indirect - github.com/onsi/ginkgo v1.16.5 // indirect + github.com/onsi/ginkgo v1.16.4 // indirect github.com/onsi/gomega v1.20.0 // indirect github.com/pelletier/go-toml v1.9.5 // indirect github.com/pelletier/go-toml/v2 v2.0.5 // indirect diff --git a/go.sum b/go.sum index 5afd840ee9..ed38bf1bab 100644 --- a/go.sum +++ b/go.sum @@ -382,15 +382,12 @@ github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG github.com/go-sql-driver/mysql v1.4.1/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE= +github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee h1:s+21KNqlpePfkah2I+gwHF8xmJWRjooY+5248k6m4A0= github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee/go.mod h1:L0fX3K22YWvt/FAX9NnzrNzcI4wNYi9Yku4O0LKYflo= -github.com/gobwas/httphead v0.1.0 h1:exrUm0f4YX0L7EBwZHuCF4GDp8aJfVeBrlLQrs6NqWU= -github.com/gobwas/httphead v0.1.0/go.mod h1:O/RXo79gxV8G+RqlR/otEwx4Q36zl9rqC5u12GKvMCM= +github.com/gobwas/pool v0.2.0 h1:QEmUOlnSjWtnpRGHF3SauEiOsy82Cup83Vf2LcMlnc8= github.com/gobwas/pool v0.2.0/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6WezmKEw= -github.com/gobwas/pool v0.2.1 h1:xfeeEhW7pwmX8nuLVlqbzVc7udMDrwetjEv+TZIz1og= -github.com/gobwas/pool v0.2.1/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6WezmKEw= +github.com/gobwas/ws v1.0.2 h1:CoAavW/wd/kulfZmSIBt6p24n4j7tHgNVCjsfHVNUbo= github.com/gobwas/ws v1.0.2/go.mod h1:szmBTxLgaFppYjEmNtny/v3w89xOydFnnZMcgRRu/EM= -github.com/gobwas/ws v1.1.0 h1:7RFti/xnNkMJnrK7D1yQ/iCIB5OrrY/54/H930kIbHA= -github.com/gobwas/ws v1.1.0/go.mod h1:nzvNcVha5eUziGrbxFCo6qFIojQHjJV5cLYIbezhfL0= github.com/goccy/go-json v0.9.11 h1:/pAaQDLHEoCq/5FFmSKBswWmK6H0e8g4159Kc/X/nqk= github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 h1:ZpnhV/YsD2/4cESfV5+Hoeu/iUR3ruzNvZ+yQfO03a0= github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2/go.mod h1:bBOAhwG1umN6/6ZUMtDFBMQR8jRg9O75tm9K00oMsK4= @@ -780,8 +777,8 @@ github.com/onsi/ginkgo v1.10.3/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+ github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk= github.com/onsi/ginkgo v1.13.0/go.mod h1:+REjRxOmWfHCjfv9TTWB1jD1Frx4XydAD3zm1lskyM0= github.com/onsi/ginkgo v1.14.0/go.mod h1:iSB4RoI2tjJc9BBv4NKIKWKya62Rps+oPG/Lv9klQyY= -github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE= -github.com/onsi/ginkgo v1.16.5/go.mod h1:+E8gABHa3K6zRBolWtd+ROzc/U5bkGt0FwiG042wbpU= +github.com/onsi/ginkgo v1.16.4 h1:29JGrr5oVBm5ulCWet69zQkzWipVXIol6ygQUe/EzNc= +github.com/onsi/ginkgo v1.16.4/go.mod h1:dX+/inL/fNMqNlz0e9LfyB9TswhZpCVdJM/Z6Vvnwo0= github.com/onsi/gomega v1.4.1/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA= github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= @@ -1268,7 +1265,6 @@ golang.org/x/sys v0.0.0-20200923182605-d9f96fdee20d/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201207223542-d4d67f95c62d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210112080510-489259a85091/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= diff --git a/output.log b/output.log index c80a19a575..a6fcfee86e 100644 --- a/output.log +++ b/output.log @@ -25,12 +25,12 @@ startDocker: startDocker: startDocker: + docker build -f Dockerfile -t interchain-security-container . startDocker: #1 [internal] load build definition from Dockerfile -startDocker: #1 sha256:a0cee17e78737057a68d25b4fd49811c89dc8afcadafdd1978b58d35b3c0da1c +startDocker: #1 sha256:604789e44fdefbf6a2dd97add254061623de5e810ef734b454eaad26b1b17035 startDocker: #1 transferring dockerfile: 37B done startDocker: #1 DONE 0.0s startDocker: startDocker: #2 [internal] load .dockerignore -startDocker: #2 sha256:4c4a3b3312107dd6ab7a39c973b7650daef786e96bf7e7f90e4f84afc3cd1ffb +startDocker: #2 sha256:a6a91216b943fbd1ec8d7a2718cffa89481ad20be8a239282297ba938665353d startDocker: #2 transferring context: 2B done startDocker: #2 DONE 0.0s startDocker: @@ -39,80 +39,88 @@ startDocker: #3 sha256:5511bf222770ecb09bae16a5e9dc6ddaf6633b05719203c5e2b006447 startDocker: #3 ... startDocker: startDocker: #4 [auth] docker/dockerfile:pull token for registry-1.docker.io -startDocker: #4 sha256:30fc96cb12100d8493a24d77ed92e49a75e81d80bc2ad263760bc9d91e119c18 +startDocker: #4 sha256:2d344823d8ee21eef1762bba24fd226d4bf4f3da25259e99ac9eb49d6e3e83ab startDocker: #4 DONE 0.0s startDocker: startDocker: #3 resolve image config for docker.io/docker/dockerfile:1 startDocker: #3 sha256:5511bf222770ecb09bae16a5e9dc6ddaf6633b05719203c5e2b00644727cd62f -startDocker: #3 DONE 1.4s +startDocker: #3 DONE 1.3s startDocker: startDocker: #5 docker-image://docker.io/docker/dockerfile:1@sha256:39b85bbfa7536a5feceb7372a0817649ecb2724562a38360f4d6a7782a409b14 startDocker: #5 sha256:9a158a4603558c8d1260a1837f34e5dcdc934c3e44e35af38132f4449f9ebf12 startDocker: #5 CACHED startDocker: startDocker: #6 [internal] load build definition from Dockerfile -startDocker: #6 sha256:d6915fd1e878024a7f1105667a7027d32b197b81dd06bb0b1aa56f5319f1fff0 +startDocker: #6 sha256:a63b93256cb6ed954f95b300797b968540e3f4a5ff2167243929fb5ab9ef1688 startDocker: #6 DONE 0.0s startDocker: startDocker: #7 [internal] load .dockerignore -startDocker: #7 sha256:507fef730b5510b7762bd5267360b4086c98a34ec3afb696bf3d2d7d21f2e335 +startDocker: #7 sha256:19eb6aa0ebe549a586fa466b986b6bdf048ead2e77f288d0357fc7acbd7f8ef6 startDocker: #7 DONE 0.0s startDocker: -startDocker: #12 [internal] load metadata for docker.io/library/golang:1.19-alpine -startDocker: #12 sha256:db341117c17817e8ff2360c3624eceaf927c5431ea3a1010182351ebafcce418 +startDocker: #12 [internal] load metadata for docker.io/informalofftermatt/gorelayer:nogas +startDocker: #12 sha256:30a212e25818399fd4de4628ba986abb3f9acfd2726260309d56d93987463b56 startDocker: #12 ... startDocker: -startDocker: #13 [auth] otacrew/hermes-ics:pull token for registry-1.docker.io -startDocker: #13 sha256:6ed335be6e0b794f59599ba8f783918f21a3bff490550210b7c34e3756e3e195 +startDocker: #13 [auth] library/fedora:pull token for registry-1.docker.io +startDocker: #13 sha256:345423550f620a41155d9d62c5c908c31000562442585e89f3321fdbe93332c3 startDocker: #13 DONE 0.0s startDocker: -startDocker: #11 [internal] load metadata for docker.io/informalofftermatt/gorelayer:nogas -startDocker: #11 sha256:30a212e25818399fd4de4628ba986abb3f9acfd2726260309d56d93987463b56 +startDocker: #11 [internal] load metadata for docker.io/library/golang:1.19-alpine +startDocker: #11 sha256:db341117c17817e8ff2360c3624eceaf927c5431ea3a1010182351ebafcce418 startDocker: #11 ... startDocker: -startDocker: #14 [auth] informalofftermatt/cometmock:pull token for registry-1.docker.io -startDocker: #14 sha256:5fe3f6fa6d571d44b170a802e970087617b30812cb8b6ae792e3f39f2562eaad +startDocker: #14 [auth] library/golang:pull token for registry-1.docker.io +startDocker: #14 sha256:75bbb50a63355318c3918a33c2d87b1de50da14e632c4735ca9c59b663095b6a startDocker: #14 DONE 0.0s startDocker: -startDocker: #15 [auth] informalofftermatt/gorelayer:pull token for registry-1.docker.io -startDocker: #15 sha256:d3c3cea6f1547c6f57b1357cc69c68aa48bd5cc5daeb0a706258abed13ebbffd +startDocker: #15 [auth] otacrew/hermes-ics:pull token for registry-1.docker.io +startDocker: #15 sha256:803bb594f550c4774b41e0d6fc8ffd77bb355ec62871833ff945f6a44be67739 startDocker: #15 DONE 0.0s startDocker: -startDocker: #16 [auth] library/golang:pull token for registry-1.docker.io -startDocker: #16 sha256:1c552d38b1c261b51b57ea468bcaf9cc5ef0af53c871cf41a32432c988d71224 +startDocker: #16 [auth] informalofftermatt/gorelayer:pull token for registry-1.docker.io +startDocker: #16 sha256:e7abcff988820d001e3df0bdd1d70b33bfd259e435e33d3b39c73d09a3d055c8 startDocker: #16 DONE 0.0s startDocker: -startDocker: #17 [auth] library/fedora:pull token for registry-1.docker.io -startDocker: #17 sha256:6e505c3f2bcd08fe61c4a2357be97910227d3968c871825298b6a084b8f4f8da +startDocker: #17 [auth] informalofftermatt/cometmock:pull token for registry-1.docker.io +startDocker: #17 sha256:cde7de5d11268f14fcf526aa5378d79b5ae6424beb3382ef94ba73eda3fa3461 startDocker: #17 DONE 0.0s startDocker: -startDocker: #10 [internal] load metadata for docker.io/informalofftermatt/cometmock:latest -startDocker: #10 sha256:a32af4bf747a6e3115819b8c6d8c80abeeab270d805016bddd63d8f85c61be0b +startDocker: #10 [internal] load metadata for docker.io/otacrew/hermes-ics:latest +startDocker: #10 sha256:1619a8f499c95bd5af09b73b1d3a2ab9c6d7d6780852f9a079269b6c182f3235 startDocker: #10 ... startDocker: -startDocker: #8 [internal] load metadata for docker.io/otacrew/hermes-ics:latest -startDocker: #8 sha256:1619a8f499c95bd5af09b73b1d3a2ab9c6d7d6780852f9a079269b6c182f3235 +startDocker: #8 [internal] load metadata for docker.io/library/fedora:36 +startDocker: #8 sha256:73cd5a5ed47fc791d26860a9f6452dd61c51470638f517e9fa5cdca15792d916 startDocker: #8 DONE 1.5s startDocker: -startDocker: #9 [internal] load metadata for docker.io/library/fedora:36 -startDocker: #9 sha256:73cd5a5ed47fc791d26860a9f6452dd61c51470638f517e9fa5cdca15792d916 -startDocker: #9 DONE 2.0s +startDocker: #9 [internal] load metadata for docker.io/informalofftermatt/cometmock:latest +startDocker: #9 sha256:a32af4bf747a6e3115819b8c6d8c80abeeab270d805016bddd63d8f85c61be0b +startDocker: #9 ... startDocker: -startDocker: #11 [internal] load metadata for docker.io/informalofftermatt/gorelayer:nogas -startDocker: #11 sha256:30a212e25818399fd4de4628ba986abb3f9acfd2726260309d56d93987463b56 -startDocker: #11 DONE 2.2s +startDocker: #11 [internal] load metadata for docker.io/library/golang:1.19-alpine +startDocker: #11 sha256:db341117c17817e8ff2360c3624eceaf927c5431ea3a1010182351ebafcce418 +startDocker: #11 DONE 1.9s startDocker: -startDocker: #10 [internal] load metadata for docker.io/informalofftermatt/cometmock:latest -startDocker: #10 sha256:a32af4bf747a6e3115819b8c6d8c80abeeab270d805016bddd63d8f85c61be0b -startDocker: #10 DONE 2.3s +startDocker: #12 [internal] load metadata for docker.io/informalofftermatt/gorelayer:nogas +startDocker: #12 sha256:30a212e25818399fd4de4628ba986abb3f9acfd2726260309d56d93987463b56 +startDocker: #12 ... startDocker: -startDocker: #12 [internal] load metadata for docker.io/library/golang:1.19-alpine -startDocker: #12 sha256:db341117c17817e8ff2360c3624eceaf927c5431ea3a1010182351ebafcce418 -startDocker: #12 DONE 2.3s +startDocker: #10 [internal] load metadata for docker.io/otacrew/hermes-ics:latest +startDocker: #10 sha256:1619a8f499c95bd5af09b73b1d3a2ab9c6d7d6780852f9a079269b6c182f3235 +startDocker: #10 DONE 2.1s startDocker: -startDocker: #23 [cometmock-builder 1/1] FROM docker.io/informalofftermatt/cometmock:latest@sha256:c8f54f54b14fda1ffa737fb6ab02fe3b8423cfc308f99bdace7539f920a14682 -startDocker: #23 sha256:5b578f98ce1950c9b6ae50ca290be9f6ee3a5b7249a23285ac729337998afa36 -startDocker: #23 DONE 0.0s +startDocker: #12 [internal] load metadata for docker.io/informalofftermatt/gorelayer:nogas +startDocker: #12 sha256:30a212e25818399fd4de4628ba986abb3f9acfd2726260309d56d93987463b56 +startDocker: #12 DONE 2.2s +startDocker: +startDocker: #9 [internal] load metadata for docker.io/informalofftermatt/cometmock:latest +startDocker: #9 sha256:a32af4bf747a6e3115819b8c6d8c80abeeab270d805016bddd63d8f85c61be0b +startDocker: #9 DONE 2.2s +startDocker: +startDocker: #27 [is-builder 1/10] FROM docker.io/library/golang:1.19-alpine@sha256:470c8d0638c5b7007a6118baee531c30e0516a18e45b35bff1f8ab92cf8f896d +startDocker: #27 sha256:5223bfcab5806439b55371a6102f93203b8b4171a586251c641310088838642c +startDocker: #27 DONE 0.0s startDocker: startDocker: #21 [hermes-builder 1/1] FROM docker.io/otacrew/hermes-ics:latest@sha256:36806114ec58b4dca2173974f09d73cd4b9ff02d81ba882f6f152cba02bae139 startDocker: #21 sha256:a9171665a53c60610d8881bfbfc46df6ba80ba890eb5fd04bd66c9cb7ae6622e @@ -122,117 +130,1086 @@ startDocker: #25 [gorelayer-builder 1/1] FROM docker.io/informalofftermatt/gorel startDocker: #25 sha256:8a76aed9c101ebff920e322f3580b0413fc7630dafbf47400ab561109204de5c startDocker: #25 DONE 0.0s startDocker: -startDocker: #27 [is-builder 1/10] FROM docker.io/library/golang:1.19-alpine@sha256:470c8d0638c5b7007a6118baee531c30e0516a18e45b35bff1f8ab92cf8f896d -startDocker: #27 sha256:5223bfcab5806439b55371a6102f93203b8b4171a586251c641310088838642c -startDocker: #27 DONE 0.0s -startDocker: startDocker: #18 [stage-4 1/12] FROM docker.io/library/fedora:36@sha256:64cd00a0e2b92d527c0a0954162a73e85f160e3a53c38325b51e87d6aab4e266 startDocker: #18 sha256:5031400c012ded166194f592f4fbbc517b0a7051caa9252048f537694d4110e9 startDocker: #18 DONE 0.0s startDocker: +startDocker: #23 [cometmock-builder 1/1] FROM docker.io/informalofftermatt/cometmock:latest@sha256:c8f54f54b14fda1ffa737fb6ab02fe3b8423cfc308f99bdace7539f920a14682 +startDocker: #23 sha256:5b578f98ce1950c9b6ae50ca290be9f6ee3a5b7249a23285ac729337998afa36 +startDocker: #23 DONE 0.0s +startDocker: startDocker: #29 [internal] load build context -startDocker: #29 sha256:9858b29b84f4e1025f7cc79d42ba1f3504a9ce43ae34349f9e2d53f8c0ce5356 -startDocker: #29 transferring context: 4.10MB 0.7s done -startDocker: #29 DONE 0.7s +startDocker: #29 sha256:e24e809151049144d7746f068858d6bd02e1b9ab87aa76ec9891180df317089e +startDocker: #29 transferring context: 6.72MB 0.7s done +startDocker: #29 DONE 0.8s startDocker: startDocker: #28 [is-builder 2/10] RUN apk add --no-cache curl make git libc-dev bash gcc linux-headers startDocker: #28 sha256:fc221a60c9fdcdff81c09910439fb67a92187557122616a1e063d42019cb7b7a startDocker: #28 CACHED startDocker: startDocker: #30 [is-builder 3/10] COPY go.mod /go.mod -startDocker: #30 sha256:e15d65a5e35ce272d87314eeb9ff6402cf320438dc4853f28107e0eee5cee485 +startDocker: #30 sha256:81221ca3eaedec795bc8e82f11d4b3fe4d8c08a7330c61d62ff0b9574def631e startDocker: #30 CACHED startDocker: startDocker: #31 [is-builder 4/10] COPY go.sum /go.sum -startDocker: #31 sha256:c17d002021834ee7c7b0f764463fc18efdc4330da247e5eaad14400772d3b4f3 +startDocker: #31 sha256:eb2c409650fb516a2d904aaf777a75be1bd7c44176cd2f08c16c80029193fabf startDocker: #31 CACHED startDocker: startDocker: #32 [is-builder 5/10] RUN go mod download -startDocker: #32 sha256:d71b3adff54b3875295530a71bb43ecc276eb17cda3b7c2f410ca8ce6b1f680c +startDocker: #32 sha256:aa181ddcc677349350511fbc343e4f7c038625d951fd72125ed98d7037340118 startDocker: #32 CACHED startDocker: startDocker: #33 [is-builder 6/10] ADD . /interchain-security -startDocker: #33 sha256:a0e52ca9b60725e98f4f8e3f86cb21bc0dddda7ac1660bebd3e9c8f0f995d849 -startDocker: #33 DONE 5.1s +startDocker: #33 sha256:7f74c20ebdf2b3a21ad65b325af107c303810e0d52cb05519ce96d36c2123db0 +startDocker: #33 DONE 5.2s startDocker: startDocker: #34 [is-builder 7/10] WORKDIR /interchain-security -startDocker: #34 sha256:56097d24d06233dc29e88cc2a6cca993360742f2111f4dc337b7bcbc4e8632e8 -startDocker: #34 DONE 0.0s +startDocker: #34 sha256:bc2b67e8c61a62aa224034431cc91ef875819fb0f1ef58a6576b5f5250fb4d8d +startDocker: #34 DONE 0.1s startDocker: startDocker: #35 [is-builder 8/10] RUN if [ -d "./cosmos-sdk" ]; then go mod edit -replace github.com/cosmos/cosmos-sdk=./cosmos-sdk; fi -startDocker: #35 sha256:187bbf219916465d89aeccab99de791859cc9ee8aaf1b44d603fb805f3d0a60d -startDocker: #35 DONE 0.2s +startDocker: #35 sha256:11d8f2d4a0e47a82e838a86fc8a155a449ee9f3132b398f6b9c7f00f48a83b34 +startDocker: #35 DONE 0.1s startDocker: startDocker: #36 [is-builder 9/10] RUN go mod tidy -startDocker: #36 sha256:a195eb6dbcba834e5ea847fa85ec1789a834a2a40720905c6286f0d2f884d121 -startDocker: #36 1.148 go: downloading github.com/frankban/quicktest v1.14.4 -startDocker: #36 1.148 go: downloading github.com/otiai10/copy v1.6.0 -startDocker: #36 1.215 go: downloading gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c -startDocker: #36 1.233 go: downloading github.com/google/go-cmp v0.5.9 -startDocker: #36 1.335 go: downloading github.com/pascaldekloe/goe v0.1.0 -startDocker: #36 1.336 go: downloading github.com/btcsuite/btcd/btcutil v1.1.2 -startDocker: #36 1.337 go: downloading github.com/jhump/protoreflect v1.13.1-0.20220928232736-101791cb1b4c -startDocker: #36 1.367 go: downloading github.com/facebookgo/ensure v0.0.0-20200202191622-63f1cf65ac4c -startDocker: #36 1.380 go: downloading github.com/btcsuite/btcd v0.22.1 -startDocker: #36 1.455 go: downloading github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1 -startDocker: #36 1.479 go: downloading github.com/fortytw2/leaktest v1.3.0 -startDocker: #36 1.545 go: downloading github.com/regen-network/gocuke v0.6.2 -startDocker: #36 1.560 go: downloading gotest.tools/v3 v3.4.0 -startDocker: #36 1.592 go: downloading gotest.tools v2.2.0+incompatible -startDocker: #36 1.633 go: downloading github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f -startDocker: #36 1.646 go: downloading github.com/adlio/schema v1.3.3 -startDocker: #36 1.652 go: downloading github.com/ory/dockertest v3.3.5+incompatible -startDocker: #36 1.671 go: downloading github.com/stretchr/objx v0.5.0 -startDocker: #36 1.693 go: downloading github.com/facebookgo/stack v0.0.0-20160209184415-751773369052 -startDocker: #36 1.695 go: downloading github.com/facebookgo/subset v0.0.0-20200203212716-c811ad88dec4 -startDocker: #36 1.708 go: downloading github.com/decred/dcrd/crypto/blake256 v1.0.0 -startDocker: #36 1.712 go: downloading github.com/VividCortex/gohistogram v1.0.0 -startDocker: #36 1.728 go: downloading github.com/cucumber/common/gherkin/go/v22 v22.0.0 -startDocker: #36 1.728 go: downloading github.com/cockroachdb/apd/v3 v3.1.0 -startDocker: #36 1.731 go: downloading github.com/cucumber/common/messages/go/v17 v17.1.1 -startDocker: #36 1.735 go: downloading pgregory.net/rapid v0.5.3 -startDocker: #36 1.761 go: downloading github.com/gin-gonic/gin v1.8.1 -startDocker: #36 1.784 go: downloading golang.org/x/sync v0.1.0 -startDocker: #36 1.790 go: downloading github.com/nxadm/tail v1.4.8 -startDocker: #36 1.790 go: downloading github.com/cenkalti/backoff v2.2.1+incompatible -startDocker: #36 1.795 go: downloading github.com/Microsoft/go-winio v0.6.0 -startDocker: #36 1.797 go: downloading github.com/docker/go-units v0.5.0 -startDocker: #36 1.804 go: downloading github.com/OneOfOne/xxhash v1.2.2 -startDocker: #36 1.805 go: downloading github.com/spaolacci/murmur3 v1.1.0 -startDocker: #36 1.820 go: downloading github.com/alecthomas/participle/v2 v2.0.0-alpha7 -startDocker: #36 1.821 go: downloading github.com/gofrs/uuid v4.3.0+incompatible -startDocker: #36 1.822 go: downloading github.com/gobwas/httphead v0.1.0 -startDocker: #36 1.840 go: downloading github.com/gobwas/pool v0.2.1 -startDocker: #36 1.840 go: downloading gonum.org/v1/gonum v0.8.2 -startDocker: #36 1.850 go: downloading github.com/gin-contrib/sse v0.1.0 -startDocker: #36 1.852 go: downloading gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 -startDocker: #36 1.855 go: downloading github.com/sirupsen/logrus v1.9.0 -startDocker: #36 1.861 go: downloading github.com/opencontainers/runc v1.1.3 -startDocker: #36 1.864 go: downloading github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5 -startDocker: #36 1.877 go: downloading github.com/opencontainers/image-spec v1.1.0-rc2 -startDocker: #36 1.909 go: downloading golang.org/x/tools v0.4.0 -startDocker: #36 1.927 go: downloading github.com/go-errors/errors v1.4.2 -startDocker: #36 1.954 go: downloading github.com/pingcap/errors v0.11.4 -startDocker: #36 2.063 go: downloading github.com/go-playground/validator/v10 v10.11.1 -startDocker: #36 2.067 go: downloading github.com/ugorji/go/codec v1.2.7 -startDocker: #36 2.224 go: downloading github.com/goccy/go-json v0.9.11 -startDocker: #36 2.226 go: downloading github.com/ugorji/go v1.1.7 -startDocker: #36 2.250 go: downloading github.com/json-iterator/go v1.1.12 -startDocker: #36 2.272 go: downloading github.com/docker/go-connections v0.4.0 -startDocker: #36 2.288 go: downloading github.com/containerd/continuity v0.3.0 -startDocker: #36 2.291 go: downloading github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 -startDocker: #36 2.309 go: downloading github.com/opencontainers/go-digest v1.0.0 -startDocker: #36 2.321 go: downloading github.com/go-playground/universal-translator v0.18.0 -startDocker: #36 2.323 go: downloading github.com/leodido/go-urn v1.2.1 -startDocker: #36 2.337 go: downloading github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd -startDocker: #36 2.338 go: downloading github.com/modern-go/reflect2 v1.0.2 -startDocker: #36 2.376 go: downloading github.com/go-playground/locales v0.14.0 -startDocker: #36 2.421 go: downloading golang.org/x/mod v0.7.0 -startDocker: #36 DONE 3.2s +startDocker: #36 sha256:b36cdd4126a91860927fa6f04e5185afee360d5c5b6d52befaa0c04bd1712985 +startDocker: #36 1.196 go: downloading github.com/otiai10/copy v1.6.0 +startDocker: #36 1.196 go: downloading github.com/frankban/quicktest v1.14.4 +startDocker: #36 1.270 go: downloading gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c +startDocker: #36 1.305 go: downloading github.com/google/go-cmp v0.5.9 +startDocker: #36 1.380 go: downloading github.com/pascaldekloe/goe v0.1.0 +startDocker: #36 1.383 go: downloading github.com/btcsuite/btcd/btcutil v1.1.2 +startDocker: #36 1.399 go: downloading github.com/jhump/protoreflect v1.13.1-0.20220928232736-101791cb1b4c +startDocker: #36 1.419 go: downloading github.com/btcsuite/btcd v0.22.1 +startDocker: #36 1.457 go: downloading github.com/facebookgo/ensure v0.0.0-20200202191622-63f1cf65ac4c +startDocker: #36 1.543 go: downloading github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1 +startDocker: #36 1.576 go: downloading github.com/fortytw2/leaktest v1.3.0 +startDocker: #36 1.703 go: downloading github.com/regen-network/gocuke v0.6.2 +startDocker: #36 1.712 go: downloading gotest.tools/v3 v3.4.0 +startDocker: #36 1.745 go: downloading gotest.tools v2.2.0+incompatible +startDocker: #36 1.778 go: downloading github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f +startDocker: #36 1.783 go: downloading github.com/adlio/schema v1.3.3 +startDocker: #36 1.784 go: downloading github.com/ory/dockertest v3.3.5+incompatible +startDocker: #36 1.801 go: downloading github.com/stretchr/objx v0.5.0 +startDocker: #36 1.840 go: downloading github.com/decred/dcrd/crypto/blake256 v1.0.0 +startDocker: #36 1.841 go: downloading github.com/facebookgo/stack v0.0.0-20160209184415-751773369052 +startDocker: #36 1.842 go: downloading github.com/facebookgo/subset v0.0.0-20200203212716-c811ad88dec4 +startDocker: #36 1.844 go: downloading github.com/VividCortex/gohistogram v1.0.0 +startDocker: #36 1.856 go: downloading github.com/cockroachdb/apd/v3 v3.1.0 +startDocker: #36 1.856 go: downloading github.com/cucumber/common/gherkin/go/v22 v22.0.0 +startDocker: #36 1.857 go: downloading github.com/cucumber/common/messages/go/v17 v17.1.1 +startDocker: #36 1.858 go: downloading pgregory.net/rapid v0.5.3 +startDocker: #36 1.878 go: downloading golang.org/x/sync v0.1.0 +startDocker: #36 1.890 go: downloading github.com/gin-gonic/gin v1.8.1 +startDocker: #36 1.910 go: downloading github.com/OneOfOne/xxhash v1.2.2 +startDocker: #36 1.911 go: downloading github.com/spaolacci/murmur3 v1.1.0 +startDocker: #36 1.912 go: downloading github.com/nxadm/tail v1.4.8 +startDocker: #36 1.925 go: downloading github.com/cenkalti/backoff v2.2.1+incompatible +startDocker: #36 1.926 go: downloading github.com/Microsoft/go-winio v0.6.0 +startDocker: #36 1.929 go: downloading github.com/docker/go-units v0.5.0 +startDocker: #36 1.940 go: downloading github.com/alecthomas/participle/v2 v2.0.0-alpha7 +startDocker: #36 1.951 go: downloading github.com/gofrs/uuid v4.3.0+incompatible +startDocker: #36 1.967 go: downloading gonum.org/v1/gonum v0.8.2 +startDocker: #36 1.973 go: downloading github.com/gobwas/httphead v0.1.0 +startDocker: #36 1.974 go: downloading github.com/gobwas/pool v0.2.1 +startDocker: #36 1.988 go: downloading github.com/gin-contrib/sse v0.1.0 +startDocker: #36 1.988 go: downloading gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 +startDocker: #36 1.997 go: downloading github.com/sirupsen/logrus v1.9.0 +startDocker: #36 2.002 go: downloading github.com/opencontainers/runc v1.1.3 +startDocker: #36 2.002 go: downloading github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5 +startDocker: #36 2.018 go: downloading github.com/opencontainers/image-spec v1.1.0-rc2 +startDocker: #36 2.027 go: downloading golang.org/x/tools v0.4.0 +startDocker: #36 2.080 go: downloading github.com/go-errors/errors v1.4.2 +startDocker: #36 2.090 go: downloading github.com/pingcap/errors v0.11.4 +startDocker: #36 2.218 go: downloading github.com/go-playground/validator/v10 v10.11.1 +startDocker: #36 2.220 go: downloading github.com/ugorji/go/codec v1.2.7 +startDocker: #36 2.347 go: downloading github.com/ugorji/go v1.1.7 +startDocker: #36 2.355 go: downloading github.com/goccy/go-json v0.9.11 +startDocker: #36 2.359 go: downloading github.com/json-iterator/go v1.1.12 +startDocker: #36 2.395 go: downloading github.com/docker/go-connections v0.4.0 +startDocker: #36 2.399 go: downloading github.com/containerd/continuity v0.3.0 +startDocker: #36 2.411 go: downloading github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 +startDocker: #36 2.413 go: downloading github.com/opencontainers/go-digest v1.0.0 +startDocker: #36 2.427 go: downloading github.com/go-playground/universal-translator v0.18.0 +startDocker: #36 2.429 go: downloading github.com/leodido/go-urn v1.2.1 +startDocker: #36 2.430 go: downloading github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd +startDocker: #36 2.444 go: downloading github.com/modern-go/reflect2 v1.0.2 +startDocker: #36 2.445 go: downloading github.com/go-playground/locales v0.14.0 +startDocker: #36 2.489 go: downloading golang.org/x/mod v0.7.0 +startDocker: #36 DONE 3.3s startDocker: startDocker: #37 [is-builder 10/10] RUN make install -startDocker: #37 sha256:c8211a74abcd858f0148b5eca1e5aaf2c3530e39a4ef15c0544480913264cb86 -startDocker: #37 0.326 export GOFLAGS='-buildmode=pie' -startDocker: #37 0.327 export CGO_CPPFLAGS="-D_FORTIFY_SOURCE=2" -startDocker: #37 0.327 export CGO_LDFLAGS="-Wl,-z,relro,-z,now -fstack-protector" -startDocker: #37 0.328 go install ./cmd/interchain-security-pd +startDocker: #37 sha256:99cd3210764060d55710862281626a89d6501bf467b1fd30ef92daeb77f8dd99 +startDocker: #37 0.318 export GOFLAGS='-buildmode=pie' +startDocker: #37 0.319 export CGO_CPPFLAGS="-D_FORTIFY_SOURCE=2" +startDocker: #37 0.319 export CGO_LDFLAGS="-Wl,-z,relro,-z,now -fstack-protector" +startDocker: #37 0.320 go install ./cmd/interchain-security-pd +startDocker: #37 26.69 go install ./cmd/interchain-security-cd +startDocker: #37 28.97 go install ./cmd/interchain-security-cdd +startDocker: #37 31.19 go install ./cmd/interchain-security-sd +startDocker: #37 DONE 33.4s +startDocker: +startDocker: #24 [stage-4 5/12] COPY --from=cometmock-builder /usr/local/bin/cometmock /usr/local/bin/cometmock +startDocker: #24 sha256:4faacbe52af399143e4464c8eff9225096d035b7b2163a40ece5160b230b2d8d +startDocker: #24 CACHED +startDocker: +startDocker: #40 [stage-4 9/12] COPY --from=is-builder /go/bin/interchain-security-cdd /usr/local/bin/interchain-security-cdd +startDocker: #40 sha256:fdfc304213cac7c2141267ca4c395a63f35dc903e11ea9c835b2b96a2aae8cea +startDocker: #40 CACHED +startDocker: +startDocker: #20 [stage-4 3/12] RUN dnf install -y which iproute iputils procps-ng vim-minimal tmux net-tools htop jq +startDocker: #20 sha256:181d17ee3af8a58f0fd82482bf68a5ac818d63f17d17b4bf9b1c7b02fc110d92 +startDocker: #20 CACHED +startDocker: +startDocker: #22 [stage-4 4/12] COPY --from=hermes-builder /usr/bin/hermes /usr/local/bin/ +startDocker: #22 sha256:cb1015a05795e8b3c9413ebf6489c2ab6b572a54b12f0948b0e88301fc3d63c6 +startDocker: #22 CACHED +startDocker: +startDocker: #38 [stage-4 7/12] COPY --from=is-builder /go/bin/interchain-security-pd /usr/local/bin/interchain-security-pd +startDocker: #38 sha256:e2c9be27e1187864cbd099ff98358466986c1ca238767742b8fe4671785f55f8 +startDocker: #38 CACHED +startDocker: +startDocker: #39 [stage-4 8/12] COPY --from=is-builder /go/bin/interchain-security-cd /usr/local/bin/interchain-security-cd +startDocker: #39 sha256:0183ab65ddb36a37a144bad652dfd76fe4d401974b199fbfbab5464d00c5f00a +startDocker: #39 CACHED +startDocker: +startDocker: #19 [stage-4 2/12] RUN dnf update -y +startDocker: #19 sha256:48c74673a1005785b4cbb054320b87b03cc31318dddcee6c7aa71b73052f2fe4 +startDocker: #19 CACHED +startDocker: +startDocker: #26 [stage-4 6/12] COPY --from=gorelayer-builder /bin/rly /usr/local/bin/ +startDocker: #26 sha256:7d396d0a9b2aa5963565510ac65d26ec8583051ab3066d77baabd0b2deeb2bd3 +startDocker: #26 CACHED +startDocker: +startDocker: #41 [stage-4 10/12] COPY --from=is-builder /go/bin/interchain-security-sd /usr/local/bin/interchain-security-sd +startDocker: #41 sha256:89b48ad7749c0e5baaaa2860c1e449b4f0276bc213139ebd39948d083af7b358 +startDocker: #41 CACHED +startDocker: +startDocker: #42 [stage-4 11/12] ADD ./tests/e2e/testnet-scripts /testnet-scripts +startDocker: #42 sha256:4459f5721261de8968f694df2df3227e651519cf56866f84158d89e33499f985 +startDocker: #42 DONE 0.0s +startDocker: +startDocker: #43 [stage-4 12/12] ADD ./tests/e2e/testnet-scripts/hermes-config.toml /root/.hermes/config.toml +startDocker: #43 sha256:4e74d5e7e4fe21e5e500cb7db68b8fad5a7c99d932f0e2a21f34f97bde9200f9 +startDocker: #43 DONE 0.0s +startDocker: +startDocker: #44 exporting to image +startDocker: #44 sha256:e8c613e07b0b7ff33893b694f7759a10d42e180f2b4dc349fb57dc6b71dcab00 +startDocker: #44 exporting layers 0.0s done +startDocker: #44 writing image sha256:c42e913f32a8e5d1ba19c48fa1e05d4778192821838abd51b285f2ba098577f9 done +startDocker: #44 naming to docker.io/library/interchain-security-container done +startDocker: #44 DONE 0.0s +startDocker: + rm -rf ./cosmos-sdk/ +startDocker: + docker run --name interchain-security-instance --cap-add=NET_ADMIN --privileged interchain-security-container /bin/bash /testnet-scripts/beacon.sh +startDocker: beacon!!!!!!!!!! +=============== started misbehaviour tests =============== +running misbehaviour: step 1 == StartChainAction +startChain: + BIN=interchain-security-pd +startChain: + VALIDATORS='[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' +startChain: + CHAIN_ID=provi +startChain: + CHAIN_IP_PREFIX=7.7.7 +startChain: + GENESIS_TRANSFORM='.app_state.gov.voting_params.voting_period = "20s" | .app_state.slashing.params.signed_blocks_window = "10" | .app_state.slashing.params.min_signed_per_window = "0.500000000000000000" | .app_state.slashing.params.downtime_jail_duration = "2s" | .app_state.slashing.params.slash_fraction_downtime = "0.010000000000000000" | .app_state.provider.params.slash_meter_replenish_fraction = "1.0" | .app_state.provider.params.slash_meter_replenish_period = "3s"' +startChain: + SKIP_GENTX=false +startChain: + TENDERMINT_CONFIG_TRANSFORM='s/timeout_commit = "5s"/timeout_commit = "1s"/;s/peer_gossip_sleep_duration = "100ms"/peer_gossip_sleep_duration = "50ms"/;s/fast_sync = true/fast_sync = false/;' +startChain: + USE_COMETMOCK=false +startChain: + NODE_LISTEN_ADDR_STR= +startChain: + NODE_HOMES= +startChain: ++ jq '. | length' +startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' +startChain: + NODES=2 +startChain: + ip link add name virtual-bridge type bridge +startChain: ++ seq 0 1 +startChain: + for i in $(seq 0 $(($NODES - 1))) +startChain: ++ jq -r '.[0].val_id' +startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' +startChain: + VAL_ID=alice +startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' +startChain: ++ jq -r '.[0].ip_suffix' +startChain: + VAL_IP_SUFFIX=4 +startChain: + NET_NAMESPACE_NAME=provi-alice +startChain: + IP_ADDR=7.7.7.4/24 +startChain: + ip netns add provi-alice +startChain: + ip link add provi-alice-in type veth peer name provi-alice-out +startChain: + ip link set provi-alice-in netns provi-alice +startChain: + ip netns exec provi-alice ip addr add 7.7.7.4/24 dev provi-alice-in +startChain: + ip link set provi-alice-out master virtual-bridge +startChain: + for i in $(seq 0 $(($NODES - 1))) +startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' +startChain: ++ jq -r '.[1].val_id' +startChain: + VAL_ID=bob +startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' +startChain: ++ jq -r '.[1].ip_suffix' +startChain: + VAL_IP_SUFFIX=5 +startChain: + NET_NAMESPACE_NAME=provi-bob +startChain: + IP_ADDR=7.7.7.5/24 +startChain: + ip netns add provi-bob +startChain: + ip link add provi-bob-in type veth peer name provi-bob-out +startChain: + ip link set provi-bob-in netns provi-bob +startChain: + ip netns exec provi-bob ip addr add 7.7.7.5/24 dev provi-bob-in +startChain: + ip link set provi-bob-out master virtual-bridge +startChain: + ip link set virtual-bridge up +startChain: ++ seq 0 1 +startChain: + for i in $(seq 0 $(($NODES - 1))) +startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' +startChain: ++ jq -r '.[0].val_id' +startChain: + VAL_ID=alice +startChain: + NET_NAMESPACE_NAME=provi-alice +startChain: + ip link set provi-alice-out up +startChain: + ip netns exec provi-alice ip link set dev provi-alice-in up +startChain: + ip netns exec provi-alice ip link set dev lo up +startChain: + for i in $(seq 0 $(($NODES - 1))) +startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' +startChain: ++ jq -r '.[1].val_id' +startChain: + VAL_ID=bob +startChain: + NET_NAMESPACE_NAME=provi-bob +startChain: + ip link set provi-bob-out up +startChain: + ip netns exec provi-bob ip link set dev provi-bob-in up +startChain: + ip netns exec provi-bob ip link set dev lo up +startChain: + BRIDGE_IP=7.7.7.254/24 +startChain: + ip addr add 7.7.7.254/24 dev virtual-bridge +startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' +startChain: ++ jq -r '.[0].val_id' +startChain: + FIRST_VAL_ID=alice +startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' +startChain: ++ jq -r '.[0].ip_suffix' +startChain: + FIRST_VAL_IP_SUFFIX=4 +startChain: + echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' +startChain: + interchain-security-pd init --home /provi/validatoralice --chain-id=provi validatoralice --recover +startChain: + jq -r '.[0].mnemonic' +startChain: {"app_message":{"auth":{"accounts":[],"params":{"max_memo_characters":"256","sig_verify_cost_ed25519":"590","sig_verify_cost_secp256k1":"1000","tx_sig_limit":"7","tx_size_cost_per_byte":"10"}},"bank":{"balances":[],"denom_metadata":[],"params":{"default_send_enabled":true,"send_enabled":[]},"supply":[]},"capability":{"index":"1","owners":[]},"crisis":{"constant_fee":{"amount":"1000","denom":"stake"}},"distribution":{"delegator_starting_infos":[],"delegator_withdraw_infos":[],"fee_pool":{"community_pool":[]},"outstanding_rewards":[],"params":{"base_proposer_reward":"0.010000000000000000","bonus_proposer_reward":"0.040000000000000000","community_tax":"0.020000000000000000","withdraw_addr_enabled":true},"previous_proposer":"","validator_accumulated_commissions":[],"validator_current_rewards":[],"validator_historical_rewards":[],"validator_slash_events":[]},"evidence":{"evidence":[]},"genutil":{"gen_txs":[]},"gov":{"deposit_params":{"max_deposit_period":"172800s","min_deposit":[{"amount":"10000000","denom":"stake"}]},"deposits":[],"proposals":[],"starting_proposal_id":"1","tally_params":{"quorum":"0.334000000000000000","threshold":"0.500000000000000000","veto_threshold":"0.334000000000000000"},"votes":[],"voting_params":{"voting_period":"172800s"}},"ibc":{"channel_genesis":{"ack_sequences":[],"acknowledgements":[],"channels":[],"commitments":[],"next_channel_sequence":"0","receipts":[],"recv_sequences":[],"send_sequences":[]},"client_genesis":{"clients":[],"clients_consensus":[],"clients_metadata":[],"create_localhost":false,"next_client_sequence":"0","params":{"allowed_clients":["06-solomachine","07-tendermint"]}},"connection_genesis":{"client_connection_paths":[],"connections":[],"next_connection_sequence":"0","params":{"max_expected_time_per_block":"30000000000"}}},"mint":{"minter":{"annual_provisions":"0.000000000000000000","inflation":"0.130000000000000000"},"params":{"blocks_per_year":"6311520","goal_bonded":"0.670000000000000000","inflation_max":"0.200000000000000000","inflation_min":"0.070000000000000000","inflation_rate_change":"0.130000000000000000","mint_denom":"stake"}},"params":null,"provider":{"consumer_addition_proposals":[],"consumer_addrs_to_prune":[],"consumer_removal_proposals":[],"consumer_states":[],"mature_unbonding_ops":null,"params":{"ccv_timeout_period":"2419200s","consumer_reward_denom_registration_fee":{"amount":"10000000","denom":"stake"},"init_timeout_period":"604800s","max_throttled_packets":"100000","slash_meter_replenish_fraction":"0.05","slash_meter_replenish_period":"3600s","template_client":{"allow_update_after_expiry":true,"allow_update_after_misbehaviour":true,"chain_id":"","frozen_height":{"revision_height":"0","revision_number":"0"},"latest_height":{"revision_height":"0","revision_number":"0"},"max_clock_drift":"10s","proof_specs":[{"inner_spec":{"child_order":[0,1],"child_size":33,"empty_child":null,"hash":"SHA256","max_prefix_length":12,"min_prefix_length":4},"leaf_spec":{"hash":"SHA256","length":"VAR_PROTO","prefix":"AA==","prehash_key":"NO_HASH","prehash_value":"SHA256"},"max_depth":0,"min_depth":0},{"inner_spec":{"child_order":[0,1],"child_size":32,"empty_child":null,"hash":"SHA256","max_prefix_length":1,"min_prefix_length":1},"leaf_spec":{"hash":"SHA256","length":"VAR_PROTO","prefix":"AA==","prehash_key":"NO_HASH","prehash_value":"SHA256"},"max_depth":0,"min_depth":0}],"trust_level":{"denominator":"3","numerator":"1"},"trusting_period":"0s","unbonding_period":"0s","upgrade_path":["upgrade","upgradedIBCState"]},"trusting_period_fraction":"0.66","vsc_timeout_period":"3024000s"},"unbonding_ops":[],"validator_consumer_pubkeys":[],"validators_by_consumer_addr":[],"valset_update_id":"1","valset_update_id_to_height":[]},"slashing":{"missed_blocks":[],"params":{"downtime_jail_duration":"600s","min_signed_per_window":"0.500000000000000000","signed_blocks_window":"100","slash_fraction_double_sign":"0.050000000000000000","slash_fraction_downtime":"0.010000000000000000"},"signing_infos":[]},"staking":{"delegations":[],"exported":false,"last_total_power":"0","last_validator_powers":[],"params":{"bond_denom":"stake","historical_entries":10000,"max_entries":7,"max_validators":100,"unbonding_time":"1814400s"},"redelegations":[],"unbonding_delegations":[],"validators":[]},"transfer":{"denom_traces":[],"params":{"receive_enabled":true,"send_enabled":true},"port_id":"transfer"},"upgrade":{},"vesting":{}},"chain_id":"provi","gentxs_dir":"","moniker":"validatoralice","node_id":"a9062fce9ac64223aeff285292790283de59b0d0"} +startChain: + jq '.app_state.gov.voting_params.voting_period = "20s" | .app_state.slashing.params.signed_blocks_window = "10" | .app_state.slashing.params.min_signed_per_window = "0.500000000000000000" | .app_state.slashing.params.downtime_jail_duration = "2s" | .app_state.slashing.params.slash_fraction_downtime = "0.010000000000000000" | .app_state.provider.params.slash_meter_replenish_fraction = "1.0" | .app_state.provider.params.slash_meter_replenish_period = "3s"' /provi/validatoralice/config/genesis.json +startChain: + mv /provi/edited-genesis.json /provi/genesis.json +startChain: ++ seq 0 1 +startChain: + for i in $(seq 0 $(($NODES - 1))) +startChain: ++ jq -r '.[0].val_id' +startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' +startChain: + VAL_ID=alice +startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' +startChain: ++ jq -r '.[0].start_with_consumer_key' +startChain: + START_WITH_CONSUMER_KEY=true +startChain: + [[ provi != \p\r\o\v\i ]] +startChain: + echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' +startChain: + jq -r '.[0].mnemonic' +startChain: + interchain-security-pd keys add validatoralice --home /provi/validatoralice --keyring-backend test --recover +startChain: +startChain: + mv /provi/genesis.json /provi/validatoralice/config/genesis.json +startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' +startChain: ++ jq -r '.[0].allocation' +startChain: + ALLOCATION=10000000000stake +startChain: + interchain-security-pd add-genesis-account validatoralice 10000000000stake --home /provi/validatoralice --keyring-backend test +startChain: + mv /provi/validatoralice/config/genesis.json /provi/genesis.json +startChain: + for i in $(seq 0 $(($NODES - 1))) +startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' +startChain: ++ jq -r '.[1].val_id' +startChain: + VAL_ID=bob +startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' +startChain: ++ jq -r '.[1].start_with_consumer_key' +startChain: + START_WITH_CONSUMER_KEY=false +startChain: + [[ provi != \p\r\o\v\i ]] +startChain: + echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' +startChain: + jq -r '.[1].mnemonic' +startChain: + interchain-security-pd keys add validatorbob --home /provi/validatorbob --keyring-backend test --recover +startChain: +startChain: + mv /provi/genesis.json /provi/validatorbob/config/genesis.json +startChain: ++ jq -r '.[1].allocation' +startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' +startChain: + ALLOCATION=10000000000stake +startChain: + interchain-security-pd add-genesis-account validatorbob 10000000000stake --home /provi/validatorbob --keyring-backend test +startChain: + mv /provi/validatorbob/config/genesis.json /provi/genesis.json +startChain: ++ seq 0 1 +startChain: + for i in $(seq 0 $(($NODES - 1))) +startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' +startChain: ++ jq -r '.[0].val_id' +startChain: + VAL_ID=alice +startChain: + cp /provi/genesis.json /provi/validatoralice/config/genesis.json +startChain: + echo '{"height": "0","round": 0,"step": 0}' +startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' +startChain: ++ jq -r '.[0].start_with_consumer_key' +startChain: + START_WITH_CONSUMER_KEY=true +startChain: + [[ provi != \p\r\o\v\i ]] +startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' +startChain: ++ jq -r '.[0].priv_validator_key' +startChain: + PRIV_VALIDATOR_KEY='{"address":"06C0F3E47CC5C748269088DC2F36411D3AAA27C6","pub_key":{"type":"tendermint/PubKeyEd25519","value":"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10="},"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ=="}}' +startChain: + [[ -n {"address":"06C0F3E47CC5C748269088DC2F36411D3AAA27C6","pub_key":{"type":"tendermint/PubKeyEd25519","value":"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10="},"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ=="}} ]] +startChain: + echo '{"address":"06C0F3E47CC5C748269088DC2F36411D3AAA27C6","pub_key":{"type":"tendermint/PubKeyEd25519","value":"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10="},"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ=="}}' +startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' +startChain: ++ jq -r '.[0].node_key' +startChain: + NODE_KEY='{"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA=="}}' +startChain: + [[ -n {"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA=="}} ]] +startChain: + echo '{"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA=="}}' +startChain: + '[' false = false ']' +startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' +startChain: ++ jq -r '.[0].stake' +startChain: + STAKE_AMOUNT=500000000stake +startChain: + interchain-security-pd gentx validatoralice 500000000stake --home /provi/validatoralice --keyring-backend test --moniker validatoralice --chain-id=provi +startChain: Genesis transaction written to "/provi/validatoralice/config/gentx/gentx-8339e14baab81c2a2350e261962263397a8d7fb0.json" +startChain: + '[' alice '!=' alice ']' +startChain: + '[' 's/timeout_commit = "5s"/timeout_commit = "1s"/;s/peer_gossip_sleep_duration = "100ms"/peer_gossip_sleep_duration = "50ms"/;s/fast_sync = true/fast_sync = false/;' '!=' '' ']' +startChain: + sed -i 's/timeout_commit = "5s"/timeout_commit = "1s"/;s/peer_gossip_sleep_duration = "100ms"/peer_gossip_sleep_duration = "50ms"/;s/fast_sync = true/fast_sync = false/;' provi/validatoralice/config/config.toml +startChain: + for i in $(seq 0 $(($NODES - 1))) +startChain: ++ jq -r '.[1].val_id' +startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' +startChain: + VAL_ID=bob +startChain: + cp /provi/genesis.json /provi/validatorbob/config/genesis.json +startChain: + echo '{"height": "0","round": 0,"step": 0}' +startChain: ++ jq -r '.[1].start_with_consumer_key' +startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' +startChain: + START_WITH_CONSUMER_KEY=false +startChain: + [[ provi != \p\r\o\v\i ]] +startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' +startChain: ++ jq -r '.[1].priv_validator_key' +startChain: + PRIV_VALIDATOR_KEY='{"address":"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF","pub_key":{"type":"tendermint/PubKeyEd25519","value":"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI="},"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g=="}}' +startChain: + [[ -n {"address":"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF","pub_key":{"type":"tendermint/PubKeyEd25519","value":"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI="},"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g=="}} ]] +startChain: + echo '{"address":"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF","pub_key":{"type":"tendermint/PubKeyEd25519","value":"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI="},"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g=="}}' +startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' +startChain: ++ jq -r '.[1].node_key' +startChain: + NODE_KEY='{"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw=="}}' +startChain: + [[ -n {"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw=="}} ]] +startChain: + echo '{"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw=="}}' +startChain: + '[' false = false ']' +startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' +startChain: ++ jq -r '.[1].stake' +startChain: + STAKE_AMOUNT=20000000stake +startChain: + interchain-security-pd gentx validatorbob 20000000stake --home /provi/validatorbob --keyring-backend test --moniker validatorbob --chain-id=provi +startChain: Genesis transaction written to "/provi/validatorbob/config/gentx/gentx-c14eeb0edbe700fde55583538420d12ac0c8d77c.json" +startChain: + '[' bob '!=' alice ']' +startChain: + cp /provi/validatorbob/config/gentx/gentx-c14eeb0edbe700fde55583538420d12ac0c8d77c.json /provi/validatoralice/config/gentx/ +startChain: + '[' 's/timeout_commit = "5s"/timeout_commit = "1s"/;s/peer_gossip_sleep_duration = "100ms"/peer_gossip_sleep_duration = "50ms"/;s/fast_sync = true/fast_sync = false/;' '!=' '' ']' +startChain: + sed -i 's/timeout_commit = "5s"/timeout_commit = "1s"/;s/peer_gossip_sleep_duration = "100ms"/peer_gossip_sleep_duration = "50ms"/;s/fast_sync = true/fast_sync = false/;' provi/validatorbob/config/config.toml +startChain: + '[' false = false ']' +startChain: + interchain-security-pd collect-gentxs --home /provi/validatoralice +startChain: {"app_message":{"auth":{"accounts":[{"@type":"/cosmos.auth.v1beta1.BaseAccount","account_number":"0","address":"cosmos19pe9pg5dv9k5fzgzmsrgnw9rl9asf7ddwhu7lm","pub_key":null,"sequence":"0"},{"@type":"/cosmos.auth.v1beta1.BaseAccount","account_number":"0","address":"cosmos1dkas8mu4kyhl5jrh4nzvm65qz588hy9qcz08la","pub_key":null,"sequence":"0"}],"params":{"max_memo_characters":"256","sig_verify_cost_ed25519":"590","sig_verify_cost_secp256k1":"1000","tx_sig_limit":"7","tx_size_cost_per_byte":"10"}},"bank":{"balances":[{"address":"cosmos19pe9pg5dv9k5fzgzmsrgnw9rl9asf7ddwhu7lm","coins":[{"amount":"10000000000","denom":"stake"}]},{"address":"cosmos1dkas8mu4kyhl5jrh4nzvm65qz588hy9qcz08la","coins":[{"amount":"10000000000","denom":"stake"}]}],"denom_metadata":[],"params":{"default_send_enabled":true,"send_enabled":[]},"supply":[{"amount":"20000000000","denom":"stake"}]},"capability":{"index":"1","owners":[]},"crisis":{"constant_fee":{"amount":"1000","denom":"stake"}},"distribution":{"delegator_starting_infos":[],"delegator_withdraw_infos":[],"fee_pool":{"community_pool":[]},"outstanding_rewards":[],"params":{"base_proposer_reward":"0.010000000000000000","bonus_proposer_reward":"0.040000000000000000","community_tax":"0.020000000000000000","withdraw_addr_enabled":true},"previous_proposer":"","validator_accumulated_commissions":[],"validator_current_rewards":[],"validator_historical_rewards":[],"validator_slash_events":[]},"evidence":{"evidence":[]},"genutil":{"gen_txs":[{"auth_info":{"fee":{"amount":[],"gas_limit":"200000","granter":"","payer":""},"signer_infos":[{"mode_info":{"single":{"mode":"SIGN_MODE_DIRECT"}},"public_key":{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"AsFC8tmbGGQSHthsVStbsQ13/+Yza9IT8KCSXXEN7y9f"},"sequence":"0"}]},"body":{"extension_options":[],"memo":"8339e14baab81c2a2350e261962263397a8d7fb0@7.7.7.254:26656","messages":[{"@type":"/cosmos.staking.v1beta1.MsgCreateValidator","commission":{"max_change_rate":"0.010000000000000000","max_rate":"0.200000000000000000","rate":"0.100000000000000000"},"delegator_address":"cosmos19pe9pg5dv9k5fzgzmsrgnw9rl9asf7ddwhu7lm","description":{"details":"","identity":"","moniker":"validatoralice","security_contact":"","website":""},"min_self_delegation":"1","pubkey":{"@type":"/cosmos.crypto.ed25519.PubKey","key":"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10="},"validator_address":"cosmosvaloper19pe9pg5dv9k5fzgzmsrgnw9rl9asf7ddtrgtng","value":{"amount":"500000000","denom":"stake"}}],"non_critical_extension_options":[],"timeout_height":"0"},"signatures":["D06i2qqq2HathlT7cy+PDLTDuYKAmzw5Ne+Ehvzr9bVy3jpm2h8deDGeSXTSrhdP04UpFXerSn+zIPth5TKNrg=="]},{"auth_info":{"fee":{"amount":[],"gas_limit":"200000","granter":"","payer":""},"signer_infos":[{"mode_info":{"single":{"mode":"SIGN_MODE_DIRECT"}},"public_key":{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"ArCv6pseaIkP8SbRqnT4kKylCz5mgAyhwXp8V1q/zU3p"},"sequence":"0"}]},"body":{"extension_options":[],"memo":"c14eeb0edbe700fde55583538420d12ac0c8d77c@7.7.7.254:26656","messages":[{"@type":"/cosmos.staking.v1beta1.MsgCreateValidator","commission":{"max_change_rate":"0.010000000000000000","max_rate":"0.200000000000000000","rate":"0.100000000000000000"},"delegator_address":"cosmos1dkas8mu4kyhl5jrh4nzvm65qz588hy9qcz08la","description":{"details":"","identity":"","moniker":"validatorbob","security_contact":"","website":""},"min_self_delegation":"1","pubkey":{"@type":"/cosmos.crypto.ed25519.PubKey","key":"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI="},"validator_address":"cosmosvaloper1dkas8mu4kyhl5jrh4nzvm65qz588hy9qakmjnw","value":{"amount":"20000000","denom":"stake"}}],"non_critical_extension_options":[],"timeout_height":"0"},"signatures":["sZhES43m+6IxbKNvrw6HQxLsEHWHsBInieGeJn8KRTI2yUo2TNDUZnqSnGnqBvklxcEu5PxzxEyojV4cxItXCQ=="]}]},"gov":{"deposit_params":{"max_deposit_period":"172800s","min_deposit":[{"amount":"10000000","denom":"stake"}]},"deposits":[],"proposals":[],"starting_proposal_id":"1","tally_params":{"quorum":"0.334000000000000000","threshold":"0.500000000000000000","veto_threshold":"0.334000000000000000"},"votes":[],"voting_params":{"voting_period":"20s"}},"ibc":{"channel_genesis":{"ack_sequences":[],"acknowledgements":[],"channels":[],"commitments":[],"next_channel_sequence":"0","receipts":[],"recv_sequences":[],"send_sequences":[]},"client_genesis":{"clients":[],"clients_consensus":[],"clients_metadata":[],"create_localhost":false,"next_client_sequence":"0","params":{"allowed_clients":["06-solomachine","07-tendermint"]}},"connection_genesis":{"client_connection_paths":[],"connections":[],"next_connection_sequence":"0","params":{"max_expected_time_per_block":"30000000000"}}},"mint":{"minter":{"annual_provisions":"0.000000000000000000","inflation":"0.130000000000000000"},"params":{"blocks_per_year":"6311520","goal_bonded":"0.670000000000000000","inflation_max":"0.200000000000000000","inflation_min":"0.070000000000000000","inflation_rate_change":"0.130000000000000000","mint_denom":"stake"}},"params":null,"provider":{"consumer_addition_proposals":[],"consumer_addrs_to_prune":[],"consumer_removal_proposals":[],"consumer_states":[],"mature_unbonding_ops":null,"params":{"ccv_timeout_period":"2419200s","consumer_reward_denom_registration_fee":{"amount":"10000000","denom":"stake"},"init_timeout_period":"604800s","max_throttled_packets":"100000","slash_meter_replenish_fraction":"1.0","slash_meter_replenish_period":"3s","template_client":{"allow_update_after_expiry":true,"allow_update_after_misbehaviour":true,"chain_id":"","frozen_height":{"revision_height":"0","revision_number":"0"},"latest_height":{"revision_height":"0","revision_number":"0"},"max_clock_drift":"10s","proof_specs":[{"inner_spec":{"child_order":[0,1],"child_size":33,"empty_child":null,"hash":"SHA256","max_prefix_length":12,"min_prefix_length":4},"leaf_spec":{"hash":"SHA256","length":"VAR_PROTO","prefix":"AA==","prehash_key":"NO_HASH","prehash_value":"SHA256"},"max_depth":0,"min_depth":0},{"inner_spec":{"child_order":[0,1],"child_size":32,"empty_child":null,"hash":"SHA256","max_prefix_length":1,"min_prefix_length":1},"leaf_spec":{"hash":"SHA256","length":"VAR_PROTO","prefix":"AA==","prehash_key":"NO_HASH","prehash_value":"SHA256"},"max_depth":0,"min_depth":0}],"trust_level":{"denominator":"3","numerator":"1"},"trusting_period":"0s","unbonding_period":"0s","upgrade_path":["upgrade","upgradedIBCState"]},"trusting_period_fraction":"0.66","vsc_timeout_period":"3024000s"},"unbonding_ops":[],"validator_consumer_pubkeys":[],"validators_by_consumer_addr":[],"valset_update_id":"1","valset_update_id_to_height":[]},"slashing":{"missed_blocks":[],"params":{"downtime_jail_duration":"2s","min_signed_per_window":"0.500000000000000000","signed_blocks_window":"10","slash_fraction_double_sign":"0.050000000000000000","slash_fraction_downtime":"0.010000000000000000"},"signing_infos":[]},"staking":{"delegations":[],"exported":false,"last_total_power":"0","last_validator_powers":[],"params":{"bond_denom":"stake","historical_entries":10000,"max_entries":7,"max_validators":100,"unbonding_time":"1814400s"},"redelegations":[],"unbonding_delegations":[],"validators":[]},"transfer":{"denom_traces":[],"params":{"receive_enabled":true,"send_enabled":true},"port_id":"transfer"},"upgrade":{},"vesting":{}},"chain_id":"provi","gentxs_dir":"/provi/validatoralice/config/gentx","moniker":"validatoralice","node_id":"8339e14baab81c2a2350e261962263397a8d7fb0"} +startChain: + cp /provi/validatoralice/config/genesis.json /provi/genesis.json +startChain: ++ seq 1 1 +startChain: + for i in $(seq 1 $(($NODES - 1))) +startChain: ++ jq -r '.[1].val_id' +startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' +startChain: + VAL_ID=bob +startChain: + cp /provi/genesis.json /provi/validatorbob/config/genesis.json +startChain: ++ seq 0 1 +startChain: + for i in $(seq 0 $(($NODES - 1))) +startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' +startChain: ++ jq -r '.[0].val_id' +startChain: + VAL_ID=alice +startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' +startChain: ++ jq -r '.[0].ip_suffix' +startChain: + VAL_IP_SUFFIX=4 +startChain: + NET_NAMESPACE_NAME=provi-alice +startChain: + NODE_HOME=/provi/validatoralice +startChain: + GAIA_HOME='--home /provi/validatoralice' +startChain: + NODE_HOMES=/provi/validatoralice, +startChain: + RPC_ADDRESS='--rpc.laddr tcp://7.7.7.4:26658' +startChain: + GRPC_ADDRESS='--grpc.address 7.7.7.4:9091' +startChain: + LISTEN_ADDRESS='--address tcp://7.7.7.4:26655' +startChain: + NODE_LISTEN_ADDR_STR=7.7.7.4:26655, +startChain: + P2P_ADDRESS='--p2p.laddr tcp://7.7.7.4:26656' +startChain: + LOG_LEVEL='--log_level info' +startChain: + ENABLE_WEBGRPC=--grpc-web.enable=false +startChain: + PERSISTENT_PEERS= +startChain: ++ seq 0 1 +startChain: + for j in $(seq 0 $(($NODES - 1))) +startChain: + '[' 0 -ne 0 ']' +startChain: + for j in $(seq 0 $(($NODES - 1))) +startChain: + '[' 0 -ne 1 ']' +startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' +startChain: ++ jq -r '.[1].val_id' +startChain: + PEER_VAL_ID=bob +startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' +startChain: ++ jq -r '.[1].ip_suffix' +startChain: + PEER_VAL_IP_SUFFIX=5 +startChain: ++ interchain-security-pd tendermint show-node-id --home /provi/validatorbob +startChain: + NODE_ID=c14eeb0edbe700fde55583538420d12ac0c8d77c +startChain: + ADDRESS=c14eeb0edbe700fde55583538420d12ac0c8d77c@7.7.7.5:26656 +startChain: + PERSISTENT_PEERS=,c14eeb0edbe700fde55583538420d12ac0c8d77c@7.7.7.5:26656 +startChain: + '[' ,c14eeb0edbe700fde55583538420d12ac0c8d77c@7.7.7.5:26656 '!=' '' ']' +startChain: + PERSISTENT_PEERS='--p2p.persistent_peers c14eeb0edbe700fde55583538420d12ac0c8d77c@7.7.7.5:26656' +startChain: + ARGS='--home /provi/validatoralice --address tcp://7.7.7.4:26655 --rpc.laddr tcp://7.7.7.4:26658 --grpc.address 7.7.7.4:9091 --log_level info --p2p.laddr tcp://7.7.7.4:26656 --grpc-web.enable=false --p2p.persistent_peers c14eeb0edbe700fde55583538420d12ac0c8d77c@7.7.7.5:26656' +startChain: + [[ false == \t\r\u\e ]] +startChain: + for i in $(seq 0 $(($NODES - 1))) +startChain: + ip netns exec provi-alice interchain-security-pd --home /provi/validatoralice --address tcp://7.7.7.4:26655 --rpc.laddr tcp://7.7.7.4:26658 --grpc.address 7.7.7.4:9091 --log_level info --p2p.laddr tcp://7.7.7.4:26656 --grpc-web.enable=false --p2p.persistent_peers c14eeb0edbe700fde55583538420d12ac0c8d77c@7.7.7.5:26656 start +startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' +startChain: ++ jq -r '.[1].val_id' +startChain: + VAL_ID=bob +startChain: ++ jq -r '.[1].ip_suffix' +startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' +startChain: + VAL_IP_SUFFIX=5 +startChain: + NET_NAMESPACE_NAME=provi-bob +startChain: + NODE_HOME=/provi/validatorbob +startChain: + GAIA_HOME='--home /provi/validatorbob' +startChain: + NODE_HOMES=/provi/validatorbob,/provi/validatoralice, +startChain: + RPC_ADDRESS='--rpc.laddr tcp://7.7.7.5:26658' +startChain: + GRPC_ADDRESS='--grpc.address 7.7.7.5:9091' +startChain: + LISTEN_ADDRESS='--address tcp://7.7.7.5:26655' +startChain: + NODE_LISTEN_ADDR_STR=7.7.7.5:26655,7.7.7.4:26655, +startChain: + P2P_ADDRESS='--p2p.laddr tcp://7.7.7.5:26656' +startChain: + LOG_LEVEL='--log_level info' +startChain: + ENABLE_WEBGRPC=--grpc-web.enable=false +startChain: + PERSISTENT_PEERS= +startChain: ++ seq 0 1 +startChain: + for j in $(seq 0 $(($NODES - 1))) +startChain: + '[' 1 -ne 0 ']' +startChain: ++ jq -r '.[0].val_id' +startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' +startChain: + PEER_VAL_ID=alice +startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' +startChain: ++ jq -r '.[0].ip_suffix' +startChain: + PEER_VAL_IP_SUFFIX=4 +startChain: ++ interchain-security-pd tendermint show-node-id --home /provi/validatoralice +startChain: + NODE_ID=8339e14baab81c2a2350e261962263397a8d7fb0 +startChain: + ADDRESS=8339e14baab81c2a2350e261962263397a8d7fb0@7.7.7.4:26656 +startChain: + PERSISTENT_PEERS=,8339e14baab81c2a2350e261962263397a8d7fb0@7.7.7.4:26656 +startChain: + for j in $(seq 0 $(($NODES - 1))) +startChain: + '[' 1 -ne 1 ']' +startChain: + '[' ,8339e14baab81c2a2350e261962263397a8d7fb0@7.7.7.4:26656 '!=' '' ']' +startChain: + PERSISTENT_PEERS='--p2p.persistent_peers 8339e14baab81c2a2350e261962263397a8d7fb0@7.7.7.4:26656' +startChain: + ARGS='--home /provi/validatorbob --address tcp://7.7.7.5:26655 --rpc.laddr tcp://7.7.7.5:26658 --grpc.address 7.7.7.5:9091 --log_level info --p2p.laddr tcp://7.7.7.5:26656 --grpc-web.enable=false --p2p.persistent_peers 8339e14baab81c2a2350e261962263397a8d7fb0@7.7.7.4:26656' +startChain: + [[ false == \t\r\u\e ]] +startChain: + SYBIL_NODE_ID=sybil +startChain: + SYBIL_IP_SUFFIX=252 +startChain: + SYBIL_NET_NAMESPACE_NAME=provi-sybil +startChain: + SYBIL_IP_ADDR=7.7.7.252/24 +startChain: + ip netns add provi-sybil +startChain: + ip netns exec provi-bob interchain-security-pd --home /provi/validatorbob --address tcp://7.7.7.5:26655 --rpc.laddr tcp://7.7.7.5:26658 --grpc.address 7.7.7.5:9091 --log_level info --p2p.laddr tcp://7.7.7.5:26656 --grpc-web.enable=false --p2p.persistent_peers 8339e14baab81c2a2350e261962263397a8d7fb0@7.7.7.4:26656 start +startChain: + ip link add provi-sybil-in type veth peer name provi-sybil-out +startChain: + ip link set provi-sybil-in netns provi-sybil +startChain: + ip netns exec provi-sybil ip addr add 7.7.7.252/24 dev provi-sybil-in +startChain: + ip link set provi-sybil-out master virtual-bridge +startChain: + ip link set provi-sybil-out up +startChain: + ip netns exec provi-sybil ip link set dev provi-sybil-in up +startChain: + ip netns exec provi-sybil ip link set dev lo up +startChain: + QUERY_NODE_ID=query +startChain: + QUERY_IP_SUFFIX=253 +startChain: + QUERY_NET_NAMESPACE_NAME=provi-query +startChain: + QUERY_IP_ADDR=7.7.7.253/24 +startChain: + ip netns add provi-query +startChain: + ip link add provi-query-in type veth peer name provi-query-out +startChain: + ip link set provi-query-in netns provi-query +startChain: + ip netns exec provi-query ip addr add 7.7.7.253/24 dev provi-query-in +startChain: + ip link set provi-query-out master virtual-bridge +startChain: + ip link set provi-query-out up +startChain: + ip netns exec provi-query ip link set dev provi-query-in up +startChain: + ip netns exec provi-query ip link set dev lo up +startChain: + interchain-security-pd init --home /provi/query --chain-id=provi query +startChain: {"app_message":{"auth":{"accounts":[],"params":{"max_memo_characters":"256","sig_verify_cost_ed25519":"590","sig_verify_cost_secp256k1":"1000","tx_sig_limit":"7","tx_size_cost_per_byte":"10"}},"bank":{"balances":[],"denom_metadata":[],"params":{"default_send_enabled":true,"send_enabled":[]},"supply":[]},"capability":{"index":"1","owners":[]},"crisis":{"constant_fee":{"amount":"1000","denom":"stake"}},"distribution":{"delegator_starting_infos":[],"delegator_withdraw_infos":[],"fee_pool":{"community_pool":[]},"outstanding_rewards":[],"params":{"base_proposer_reward":"0.010000000000000000","bonus_proposer_reward":"0.040000000000000000","community_tax":"0.020000000000000000","withdraw_addr_enabled":true},"previous_proposer":"","validator_accumulated_commissions":[],"validator_current_rewards":[],"validator_historical_rewards":[],"validator_slash_events":[]},"evidence":{"evidence":[]},"genutil":{"gen_txs":[]},"gov":{"deposit_params":{"max_deposit_period":"172800s","min_deposit":[{"amount":"10000000","denom":"stake"}]},"deposits":[],"proposals":[],"starting_proposal_id":"1","tally_params":{"quorum":"0.334000000000000000","threshold":"0.500000000000000000","veto_threshold":"0.334000000000000000"},"votes":[],"voting_params":{"voting_period":"172800s"}},"ibc":{"channel_genesis":{"ack_sequences":[],"acknowledgements":[],"channels":[],"commitments":[],"next_channel_sequence":"0","receipts":[],"recv_sequences":[],"send_sequences":[]},"client_genesis":{"clients":[],"clients_consensus":[],"clients_metadata":[],"create_localhost":false,"next_client_sequence":"0","params":{"allowed_clients":["06-solomachine","07-tendermint"]}},"connection_genesis":{"client_connection_paths":[],"connections":[],"next_connection_sequence":"0","params":{"max_expected_time_per_block":"30000000000"}}},"mint":{"minter":{"annual_provisions":"0.000000000000000000","inflation":"0.130000000000000000"},"params":{"blocks_per_year":"6311520","goal_bonded":"0.670000000000000000","inflation_max":"0.200000000000000000","inflation_min":"0.070000000000000000","inflation_rate_change":"0.130000000000000000","mint_denom":"stake"}},"params":null,"provider":{"consumer_addition_proposals":[],"consumer_addrs_to_prune":[],"consumer_removal_proposals":[],"consumer_states":[],"mature_unbonding_ops":null,"params":{"ccv_timeout_period":"2419200s","consumer_reward_denom_registration_fee":{"amount":"10000000","denom":"stake"},"init_timeout_period":"604800s","max_throttled_packets":"100000","slash_meter_replenish_fraction":"0.05","slash_meter_replenish_period":"3600s","template_client":{"allow_update_after_expiry":true,"allow_update_after_misbehaviour":true,"chain_id":"","frozen_height":{"revision_height":"0","revision_number":"0"},"latest_height":{"revision_height":"0","revision_number":"0"},"max_clock_drift":"10s","proof_specs":[{"inner_spec":{"child_order":[0,1],"child_size":33,"empty_child":null,"hash":"SHA256","max_prefix_length":12,"min_prefix_length":4},"leaf_spec":{"hash":"SHA256","length":"VAR_PROTO","prefix":"AA==","prehash_key":"NO_HASH","prehash_value":"SHA256"},"max_depth":0,"min_depth":0},{"inner_spec":{"child_order":[0,1],"child_size":32,"empty_child":null,"hash":"SHA256","max_prefix_length":1,"min_prefix_length":1},"leaf_spec":{"hash":"SHA256","length":"VAR_PROTO","prefix":"AA==","prehash_key":"NO_HASH","prehash_value":"SHA256"},"max_depth":0,"min_depth":0}],"trust_level":{"denominator":"3","numerator":"1"},"trusting_period":"0s","unbonding_period":"0s","upgrade_path":["upgrade","upgradedIBCState"]},"trusting_period_fraction":"0.66","vsc_timeout_period":"3024000s"},"unbonding_ops":[],"validator_consumer_pubkeys":[],"validators_by_consumer_addr":[],"valset_update_id":"1","valset_update_id_to_height":[]},"slashing":{"missed_blocks":[],"params":{"downtime_jail_duration":"600s","min_signed_per_window":"0.500000000000000000","signed_blocks_window":"100","slash_fraction_double_sign":"0.050000000000000000","slash_fraction_downtime":"0.010000000000000000"},"signing_infos":[]},"staking":{"delegations":[],"exported":false,"last_total_power":"0","last_validator_powers":[],"params":{"bond_denom":"stake","historical_entries":10000,"max_entries":7,"max_validators":100,"unbonding_time":"1814400s"},"redelegations":[],"unbonding_delegations":[],"validators":[]},"transfer":{"denom_traces":[],"params":{"receive_enabled":true,"send_enabled":true},"port_id":"transfer"},"upgrade":{},"vesting":{}},"chain_id":"provi","gentxs_dir":"","moniker":"query","node_id":"b474293bb567144cdaaa7135fd56c0f52da03160"} +startChain: + cp /provi/genesis.json /provi/query/config/genesis.json +startChain: + QUERY_GAIA_HOME='--home /provi/query' +startChain: + QUERY_RPC_ADDRESS='--rpc.laddr tcp://7.7.7.253:26658' +startChain: + QUERY_GRPC_ADDRESS='--grpc.address 7.7.7.253:9091' +startChain: + QUERY_LISTEN_ADDRESS='--address tcp://7.7.7.253:26655' +startChain: + QUERY_P2P_ADDRESS='--p2p.laddr tcp://7.7.7.253:26656' +startChain: + QUERY_LOG_LEVEL='--log_level info' +startChain: + QUERY_ENABLE_WEBGRPC=--grpc-web.enable=false +startChain: + QUERY_PERSISTENT_PEERS= +startChain: ++ seq 0 1 +startChain: + for j in $(seq 0 $(($NODES - 1))) +startChain: ++ jq -r '.[0].val_id' +startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' +startChain: + PEER_VAL_ID=alice +startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' +startChain: ++ jq -r '.[0].ip_suffix' +startChain: + PEER_VAL_IP_SUFFIX=4 +startChain: ++ interchain-security-pd tendermint show-node-id --home /provi/validatoralice +startChain: + NODE_ID=8339e14baab81c2a2350e261962263397a8d7fb0 +startChain: + ADDRESS=8339e14baab81c2a2350e261962263397a8d7fb0@7.7.7.4:26656 +startChain: + QUERY_PERSISTENT_PEERS=,8339e14baab81c2a2350e261962263397a8d7fb0@7.7.7.4:26656 +startChain: + for j in $(seq 0 $(($NODES - 1))) +startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' +startChain: ++ jq -r '.[1].val_id' +startChain: + PEER_VAL_ID=bob +startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' +startChain: ++ jq -r '.[1].ip_suffix' +startChain: + PEER_VAL_IP_SUFFIX=5 +startChain: ++ interchain-security-pd tendermint show-node-id --home /provi/validatorbob +startChain: + NODE_ID=c14eeb0edbe700fde55583538420d12ac0c8d77c +startChain: + ADDRESS=c14eeb0edbe700fde55583538420d12ac0c8d77c@7.7.7.5:26656 +startChain: + QUERY_PERSISTENT_PEERS=,8339e14baab81c2a2350e261962263397a8d7fb0@7.7.7.4:26656,c14eeb0edbe700fde55583538420d12ac0c8d77c@7.7.7.5:26656 +startChain: + QUERY_PERSISTENT_PEERS='--p2p.persistent_peers 8339e14baab81c2a2350e261962263397a8d7fb0@7.7.7.4:26656,c14eeb0edbe700fde55583538420d12ac0c8d77c@7.7.7.5:26656' +startChain: + ARGS='--home /provi/query --address tcp://7.7.7.253:26655 --rpc.laddr tcp://7.7.7.253:26658 --grpc.address 7.7.7.253:9091 --log_level info --p2p.laddr tcp://7.7.7.253:26656 --grpc-web.enable=false --p2p.persistent_peers 8339e14baab81c2a2350e261962263397a8d7fb0@7.7.7.4:26656,c14eeb0edbe700fde55583538420d12ac0c8d77c@7.7.7.5:26656' +startChain: + [[ false != \t\r\u\e ]] +startChain: Node addresses: +startChain: 7.7.7.5:26655,7.7.7.4:26655, +startChain: Node homes: +startChain: /provi/validatorbob,/provi/validatoralice, +startChain: + echo 'Node addresses:' +startChain: + echo 7.7.7.5:26655,7.7.7.4:26655, +startChain: + echo 'Node homes:' +startChain: + echo /provi/validatorbob,/provi/validatoralice, +startChain: + NODE_LISTEN_ADDR_STR=7.7.7.5:26655,7.7.7.4:26655 +startChain: + NODE_HOMES=/provi/validatorbob,/provi/validatoralice +startChain: + [[ false == \t\r\u\e ]] +startChain: + [[ false == \t\r\u\e ]] +startChain: + set +e +startChain: + ip netns exec provi-query interchain-security-pd --home /provi/query --address tcp://7.7.7.253:26655 --rpc.laddr tcp://7.7.7.253:26658 --grpc.address 7.7.7.253:9091 --log_level info --p2p.laddr tcp://7.7.7.253:26656 --grpc-web.enable=false --p2p.persistent_peers 8339e14baab81c2a2350e261962263397a8d7fb0@7.7.7.4:26656,c14eeb0edbe700fde55583538420d12ac0c8d77c@7.7.7.5:26656 start +startChain: + interchain-security-pd query block --node tcp://7.7.7.253:26658 +startChain: + grep -q -v '{"block_id":{"hash":"","parts":{"total":0,"hash": +startChain: ""}},"block":null}' +startChain: Error: post failed: Post "http://7.7.7.253:26658": dial tcp 7.7.7.253:26658: connect: connection refused +startChain: Usage: +startChain: simd query block [height] [flags] +startChain: +startChain: Flags: +startChain: -h, --help help for block +startChain: -n, --node string Node to connect to (default "tcp://localhost:26657") +startChain: +startChain: Global Flags: +startChain: --chain-id string The network chain ID +startChain: --home string directory for config and data (default "/root/.interchain-security-p") +startChain: --log_format string The logging format (json|plain) (default "plain") +startChain: --log_level string The logging level (trace|debug|info|warn|error|fatal|panic) (default "info") +startChain: --trace print out full stack trace on errors +startChain: +startChain: + sleep 0.3 +startChain: + interchain-security-pd query block --node tcp://7.7.7.253:26658 +startChain: + grep -q -v '{"block_id":{"hash":"","parts":{"total":0,"hash": +startChain: ""}},"block":null}' +startChain: + sleep 0.3 +startChain: + interchain-security-pd query block --node tcp://7.7.7.253:26658 +startChain: + grep -q -v '{"block_id":{"hash":"","parts":{"total":0,"hash": +startChain: ""}},"block":null}' +startChain: + sleep 0.3 +startChain: + interchain-security-pd query block --node tcp://7.7.7.253:26658 +startChain: + grep -q -v '{"block_id":{"hash":"","parts":{"total":0,"hash": +startChain: ""}},"block":null}' +startChain: + sleep 0.3 +startChain: + interchain-security-pd query block --node tcp://7.7.7.253:26658 +startChain: + grep -q -v '{"block_id":{"hash":"","parts":{"total":0,"hash": +startChain: ""}},"block":null}' +startChain: + set -e +startChain: + echo 'done!!!!!!!!' +startChain: + read -p 'Press Return to Close...' +startChain: done!!!!!!!! +Add to hermes alice +pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear +running misbehaviour: step 2 == submitConsumerAdditionProposalAction +running misbehaviour: step 3 == assignConsumerPubKeyAction +assignConsumerPubKey cmd: /usr/local/bin/docker exec interchain-security-instance /bin/bash -c interchain-security-pd tx provider assign-consensus-key consu '{"@type":"/cosmos.crypto.ed25519.PubKey","key":"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes="}' --from validatoralice --chain-id provi --home /provi/validatoralice --node tcp://7.7.7.4:26658 --gas 900000 --keyring-backend test -b block -y -o json +running misbehaviour: step 4 == voteGovProposalAction +running misbehaviour: step 5 == startConsumerChainAction +startChain: + BIN=interchain-security-cd +startChain: + VALIDATORS='[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true}]' +startChain: + CHAIN_ID=consu +startChain: + CHAIN_IP_PREFIX=7.7.8 +startChain: + GENESIS_TRANSFORM='.app_state.gov.voting_params.voting_period = "20s" | .app_state.slashing.params.signed_blocks_window = "15" | .app_state.slashing.params.min_signed_per_window = "0.500000000000000000" | .app_state.slashing.params.downtime_jail_duration = "2s" | .app_state.slashing.params.slash_fraction_downtime = "0.010000000000000000" | .app_state.ccvconsumer = {"params":{"enabled":true,"blocks_per_distribution_transmission":"1000","distribution_transmission_channel":"","provider_fee_pool_addr_str":"","ccv_timeout_period":"2419200s","transfer_timeout_period":"3600s","consumer_redistribution_fraction":"0.75","historical_entries":"10000","unbonding_period":"1728000s","soft_opt_out_threshold":"0.05","reward_denoms":[],"provider_reward_denoms":[]},"provider_client_id":"","provider_channel_id":"","new_chain":true,"provider_client_state":{"chain_id":"provi","trust_level":{"numerator":"1","denominator":"3"},"trusting_period":"1197504s","unbonding_period":"1814400s","max_clock_drift":"10s","frozen_height":{"revision_number":"0","revision_height":"0"},"latest_height":{"revision_number":"0","revision_height":"24"},"proof_specs":[{"leaf_spec":{"hash":"SHA256","prehash_key":"NO_HASH","prehash_value":"SHA256","length":"VAR_PROTO","prefix":"AA=="},"inner_spec":{"child_order":[0,1],"child_size":33,"min_prefix_length":4,"max_prefix_length":12,"empty_child":null,"hash":"SHA256"},"max_depth":0,"min_depth":0},{"leaf_spec":{"hash":"SHA256","prehash_key":"NO_HASH","prehash_value":"SHA256","length":"VAR_PROTO","prefix":"AA=="},"inner_spec":{"child_order":[0,1],"child_size":32,"min_prefix_length":1,"max_prefix_length":1,"empty_child":null,"hash":"SHA256"},"max_depth":0,"min_depth":0}],"upgrade_path":["upgrade","upgradedIBCState"],"allow_update_after_expiry":true,"allow_update_after_misbehaviour":true},"provider_consensus_state":{"timestamp":"2023-07-06T13:41:25.239753303Z","root":{"hash":"dVV8g+F1rOzgI6Qi74lB5TWAQvICRA6VqJWv/8reEqc="},"next_validators_hash":"BBA977975C2E4EAC2961E3DF391D494C187A2B68842383C4E37E81ED78491952"},"maturing_packets":[],"initial_val_set":[{"pub_key":{"ed25519":"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes="},"power":"500"},{"pub_key":{"ed25519":"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI="},"power":"20"}],"height_to_valset_update_id":[],"outstanding_downtime_slashing":[],"pending_consumer_packets":{"list":[]},"last_transmission_block_height":{"height":"0"},"preCCV":false} +startChain: | .app_state.gov.voting_params.voting_period = "20s" | .app_state.slashing.params.signed_blocks_window = "15" | .app_state.slashing.params.min_signed_per_window = "0.500000000000000000" | .app_state.slashing.params.downtime_jail_duration = "2s" | .app_state.slashing.params.slash_fraction_downtime = "0.010000000000000000" | .app_state.ccvconsumer.params.soft_opt_out_threshold = "0.05"' +startChain: + SKIP_GENTX=true +startChain: + TENDERMINT_CONFIG_TRANSFORM='s/timeout_commit = "5s"/timeout_commit = "1s"/;s/peer_gossip_sleep_duration = "100ms"/peer_gossip_sleep_duration = "50ms"/;s/fast_sync = true/fast_sync = false/;' +startChain: + USE_COMETMOCK=false +startChain: + NODE_LISTEN_ADDR_STR= +startChain: + NODE_HOMES= +startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true}]' +startChain: ++ jq '. | length' +startChain: + NODES=1 +startChain: + ip link add name virtual-bridge type bridge +startChain: RTNETLINK answers: File exists +startChain: + true +startChain: ++ seq 0 0 +startChain: + for i in $(seq 0 $(($NODES - 1))) +startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true}]' +startChain: ++ jq -r '.[0].val_id' +startChain: + VAL_ID=alice +startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true}]' +startChain: ++ jq -r '.[0].ip_suffix' +startChain: + VAL_IP_SUFFIX=4 +startChain: + NET_NAMESPACE_NAME=consu-alice +startChain: + IP_ADDR=7.7.8.4/24 +startChain: + ip netns add consu-alice +startChain: + ip link add consu-alice-in type veth peer name consu-alice-out +startChain: + ip link set consu-alice-in netns consu-alice +startChain: + ip netns exec consu-alice ip addr add 7.7.8.4/24 dev consu-alice-in +startChain: + ip link set consu-alice-out master virtual-bridge +startChain: + ip link set virtual-bridge up +startChain: ++ seq 0 0 +startChain: + for i in $(seq 0 $(($NODES - 1))) +startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true}]' +startChain: ++ jq -r '.[0].val_id' +startChain: + VAL_ID=alice +startChain: + NET_NAMESPACE_NAME=consu-alice +startChain: + ip link set consu-alice-out up +startChain: + ip netns exec consu-alice ip link set dev consu-alice-in up +startChain: + ip netns exec consu-alice ip link set dev lo up +startChain: + BRIDGE_IP=7.7.8.254/24 +startChain: + ip addr add 7.7.8.254/24 dev virtual-bridge +startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true}]' +startChain: ++ jq -r '.[0].val_id' +startChain: + FIRST_VAL_ID=alice +startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true}]' +startChain: ++ jq -r '.[0].ip_suffix' +startChain: + FIRST_VAL_IP_SUFFIX=4 +startChain: + echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true}]' +startChain: + jq -r '.[0].mnemonic' +startChain: + interchain-security-cd init --home /consu/validatoralice --chain-id=consu validatoralice --recover +startChain: {"app_message":{"auth":{"accounts":[],"params":{"max_memo_characters":"256","sig_verify_cost_ed25519":"590","sig_verify_cost_secp256k1":"1000","tx_sig_limit":"7","tx_size_cost_per_byte":"10"}},"authz":{"authorization":[]},"bank":{"balances":[],"denom_metadata":[],"params":{"default_send_enabled":true,"send_enabled":[]},"supply":[]},"capability":{"index":"1","owners":[]},"ccvconsumer":{"height_to_valset_update_id":[],"initial_val_set":[],"last_transmission_block_height":{"height":"0"},"maturing_packets":[],"new_chain":false,"outstanding_downtime_slashing":[],"params":{"blocks_per_distribution_transmission":"1000","ccv_timeout_period":"2419200s","consumer_redistribution_fraction":"0.75","distribution_transmission_channel":"","enabled":false,"historical_entries":"10000","provider_fee_pool_addr_str":"","provider_reward_denoms":[],"reward_denoms":[],"soft_opt_out_threshold":"0.05","transfer_timeout_period":"3600s","unbonding_period":"1728000s"},"pending_consumer_packets":{"list":[]},"preCCV":false,"provider_channel_id":"","provider_client_id":"","provider_client_state":null,"provider_consensus_state":null},"crisis":{"constant_fee":{"amount":"1000","denom":"stake"}},"evidence":{"evidence":[]},"feegrant":{"allowances":[]},"ibc":{"channel_genesis":{"ack_sequences":[],"acknowledgements":[],"channels":[],"commitments":[],"next_channel_sequence":"0","receipts":[],"recv_sequences":[],"send_sequences":[]},"client_genesis":{"clients":[],"clients_consensus":[],"clients_metadata":[],"create_localhost":false,"next_client_sequence":"0","params":{"allowed_clients":["06-solomachine","07-tendermint"]}},"connection_genesis":{"client_connection_paths":[],"connections":[],"next_connection_sequence":"0","params":{"max_expected_time_per_block":"30000000000"}}},"params":null,"slashing":{"missed_blocks":[],"params":{"downtime_jail_duration":"600s","min_signed_per_window":"0.500000000000000000","signed_blocks_window":"100","slash_fraction_double_sign":"0.050000000000000000","slash_fraction_downtime":"0.010000000000000000"},"signing_infos":[]},"transfer":{"denom_traces":[],"params":{"receive_enabled":true,"send_enabled":true},"port_id":"transfer"},"upgrade":{},"vesting":{}},"chain_id":"consu","gentxs_dir":"","moniker":"validatoralice","node_id":"08ae375146db13bd3946d87b1c6f7287f9baf28f"} +startChain: + jq '.app_state.gov.voting_params.voting_period = "20s" | .app_state.slashing.params.signed_blocks_window = "15" | .app_state.slashing.params.min_signed_per_window = "0.500000000000000000" | .app_state.slashing.params.downtime_jail_duration = "2s" | .app_state.slashing.params.slash_fraction_downtime = "0.010000000000000000" | .app_state.ccvconsumer = {"params":{"enabled":true,"blocks_per_distribution_transmission":"1000","distribution_transmission_channel":"","provider_fee_pool_addr_str":"","ccv_timeout_period":"2419200s","transfer_timeout_period":"3600s","consumer_redistribution_fraction":"0.75","historical_entries":"10000","unbonding_period":"1728000s","soft_opt_out_threshold":"0.05","reward_denoms":[],"provider_reward_denoms":[]},"provider_client_id":"","provider_channel_id":"","new_chain":true,"provider_client_state":{"chain_id":"provi","trust_level":{"numerator":"1","denominator":"3"},"trusting_period":"1197504s","unbonding_period":"1814400s","max_clock_drift":"10s","frozen_height":{"revision_number":"0","revision_height":"0"},"latest_height":{"revision_number":"0","revision_height":"24"},"proof_specs":[{"leaf_spec":{"hash":"SHA256","prehash_key":"NO_HASH","prehash_value":"SHA256","length":"VAR_PROTO","prefix":"AA=="},"inner_spec":{"child_order":[0,1],"child_size":33,"min_prefix_length":4,"max_prefix_length":12,"empty_child":null,"hash":"SHA256"},"max_depth":0,"min_depth":0},{"leaf_spec":{"hash":"SHA256","prehash_key":"NO_HASH","prehash_value":"SHA256","length":"VAR_PROTO","prefix":"AA=="},"inner_spec":{"child_order":[0,1],"child_size":32,"min_prefix_length":1,"max_prefix_length":1,"empty_child":null,"hash":"SHA256"},"max_depth":0,"min_depth":0}],"upgrade_path":["upgrade","upgradedIBCState"],"allow_update_after_expiry":true,"allow_update_after_misbehaviour":true},"provider_consensus_state":{"timestamp":"2023-07-06T13:41:25.239753303Z","root":{"hash":"dVV8g+F1rOzgI6Qi74lB5TWAQvICRA6VqJWv/8reEqc="},"next_validators_hash":"BBA977975C2E4EAC2961E3DF391D494C187A2B68842383C4E37E81ED78491952"},"maturing_packets":[],"initial_val_set":[{"pub_key":{"ed25519":"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes="},"power":"500"},{"pub_key":{"ed25519":"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI="},"power":"20"}],"height_to_valset_update_id":[],"outstanding_downtime_slashing":[],"pending_consumer_packets":{"list":[]},"last_transmission_block_height":{"height":"0"},"preCCV":false} +startChain: | .app_state.gov.voting_params.voting_period = "20s" | .app_state.slashing.params.signed_blocks_window = "15" | .app_state.slashing.params.min_signed_per_window = "0.500000000000000000" | .app_state.slashing.params.downtime_jail_duration = "2s" | .app_state.slashing.params.slash_fraction_downtime = "0.010000000000000000" | .app_state.ccvconsumer.params.soft_opt_out_threshold = "0.05"' /consu/validatoralice/config/genesis.json +startChain: + mv /consu/edited-genesis.json /consu/genesis.json +startChain: ++ seq 0 0 +startChain: + for i in $(seq 0 $(($NODES - 1))) +startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true}]' +startChain: ++ jq -r '.[0].val_id' +startChain: + VAL_ID=alice +startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true}]' +startChain: ++ jq -r '.[0].start_with_consumer_key' +startChain: + START_WITH_CONSUMER_KEY=true +startChain: + [[ consu != \p\r\o\v\i ]] +startChain: + [[ true = \t\r\u\e ]] +startChain: + interchain-security-cd keys add validatoralice --home /consu/validatoralice --keyring-backend test --recover +startChain: + jq -r '.[0].consumer_mnemonic' +startChain: + echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true}]' +startChain: +startChain: + mv /consu/genesis.json /consu/validatoralice/config/genesis.json +startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true}]' +startChain: ++ jq -r '.[0].allocation' +startChain: + ALLOCATION=10000000000stake +startChain: + interchain-security-cd add-genesis-account validatoralice 10000000000stake --home /consu/validatoralice --keyring-backend test +startChain: + mv /consu/validatoralice/config/genesis.json /consu/genesis.json +startChain: ++ seq 0 0 +startChain: + for i in $(seq 0 $(($NODES - 1))) +startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true}]' +startChain: ++ jq -r '.[0].val_id' +startChain: + VAL_ID=alice +startChain: + cp /consu/genesis.json /consu/validatoralice/config/genesis.json +startChain: + echo '{"height": "0","round": 0,"step": 0}' +startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true}]' +startChain: ++ jq -r '.[0].start_with_consumer_key' +startChain: + START_WITH_CONSUMER_KEY=true +startChain: + [[ consu != \p\r\o\v\i ]] +startChain: + [[ true = \t\r\u\e ]] +startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true}]' +startChain: ++ jq -r '.[0].consumer_priv_validator_key' +startChain: + PRIV_VALIDATOR_KEY='{"address":"DF090A4880B54CD57B2A79E64D9E969BD7514B09","pub_key":{"type":"tendermint/PubKeyEd25519","value":"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes="},"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w=="}}' +startChain: + [[ -n {"address":"DF090A4880B54CD57B2A79E64D9E969BD7514B09","pub_key":{"type":"tendermint/PubKeyEd25519","value":"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes="},"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w=="}} ]] +startChain: + echo '{"address":"DF090A4880B54CD57B2A79E64D9E969BD7514B09","pub_key":{"type":"tendermint/PubKeyEd25519","value":"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes="},"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w=="}}' +startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true}]' +startChain: ++ jq -r '.[0].node_key' +startChain: + NODE_KEY='{"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA=="}}' +startChain: + [[ -n {"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA=="}} ]] +startChain: + echo '{"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA=="}}' +startChain: + '[' true = false ']' +startChain: + '[' 's/timeout_commit = "5s"/timeout_commit = "1s"/;s/peer_gossip_sleep_duration = "100ms"/peer_gossip_sleep_duration = "50ms"/;s/fast_sync = true/fast_sync = false/;' '!=' '' ']' +startChain: + sed -i 's/timeout_commit = "5s"/timeout_commit = "1s"/;s/peer_gossip_sleep_duration = "100ms"/peer_gossip_sleep_duration = "50ms"/;s/fast_sync = true/fast_sync = false/;' consu/validatoralice/config/config.toml +startChain: + '[' true = false ']' +startChain: ++ seq 0 0 +startChain: + for i in $(seq 0 $(($NODES - 1))) +startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true}]' +startChain: ++ jq -r '.[0].val_id' +startChain: + VAL_ID=alice +startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true}]' +startChain: ++ jq -r '.[0].ip_suffix' +startChain: + VAL_IP_SUFFIX=4 +startChain: + NET_NAMESPACE_NAME=consu-alice +startChain: + NODE_HOME=/consu/validatoralice +startChain: + GAIA_HOME='--home /consu/validatoralice' +startChain: + NODE_HOMES=/consu/validatoralice, +startChain: + RPC_ADDRESS='--rpc.laddr tcp://7.7.8.4:26658' +startChain: + GRPC_ADDRESS='--grpc.address 7.7.8.4:9091' +startChain: + LISTEN_ADDRESS='--address tcp://7.7.8.4:26655' +startChain: + NODE_LISTEN_ADDR_STR=7.7.8.4:26655, +startChain: + P2P_ADDRESS='--p2p.laddr tcp://7.7.8.4:26656' +startChain: + LOG_LEVEL='--log_level info' +startChain: + ENABLE_WEBGRPC=--grpc-web.enable=false +startChain: + PERSISTENT_PEERS= +startChain: ++ seq 0 0 +startChain: + for j in $(seq 0 $(($NODES - 1))) +startChain: + '[' 0 -ne 0 ']' +startChain: + '[' '' '!=' '' ']' +startChain: + ARGS='--home /consu/validatoralice --address tcp://7.7.8.4:26655 --rpc.laddr tcp://7.7.8.4:26658 --grpc.address 7.7.8.4:9091 --log_level info --p2p.laddr tcp://7.7.8.4:26656 --grpc-web.enable=false ' +startChain: + [[ false == \t\r\u\e ]] +startChain: + SYBIL_NODE_ID=sybil +startChain: + SYBIL_IP_SUFFIX=252 +startChain: + SYBIL_NET_NAMESPACE_NAME=consu-sybil +startChain: + SYBIL_IP_ADDR=7.7.8.252/24 +startChain: + ip netns add consu-sybil +startChain: + ip netns exec consu-alice interchain-security-cd --home /consu/validatoralice --address tcp://7.7.8.4:26655 --rpc.laddr tcp://7.7.8.4:26658 --grpc.address 7.7.8.4:9091 --log_level info --p2p.laddr tcp://7.7.8.4:26656 --grpc-web.enable=false start +startChain: + ip link add consu-sybil-in type veth peer name consu-sybil-out +startChain: + ip link set consu-sybil-in netns consu-sybil +startChain: + ip netns exec consu-sybil ip addr add 7.7.8.252/24 dev consu-sybil-in +startChain: + ip link set consu-sybil-out master virtual-bridge +startChain: + ip link set consu-sybil-out up +startChain: + ip netns exec consu-sybil ip link set dev consu-sybil-in up +startChain: + ip netns exec consu-sybil ip link set dev lo up +startChain: + QUERY_NODE_ID=query +startChain: + QUERY_IP_SUFFIX=253 +startChain: + QUERY_NET_NAMESPACE_NAME=consu-query +startChain: + QUERY_IP_ADDR=7.7.8.253/24 +startChain: + ip netns add consu-query +startChain: + ip link add consu-query-in type veth peer name consu-query-out +startChain: + ip link set consu-query-in netns consu-query +startChain: + ip netns exec consu-query ip addr add 7.7.8.253/24 dev consu-query-in +startChain: + ip link set consu-query-out master virtual-bridge +startChain: + ip link set consu-query-out up +startChain: + ip netns exec consu-query ip link set dev consu-query-in up +startChain: + ip netns exec consu-query ip link set dev lo up +startChain: + interchain-security-cd init --home /consu/query --chain-id=consu query +startChain: {"app_message":{"auth":{"accounts":[],"params":{"max_memo_characters":"256","sig_verify_cost_ed25519":"590","sig_verify_cost_secp256k1":"1000","tx_sig_limit":"7","tx_size_cost_per_byte":"10"}},"authz":{"authorization":[]},"bank":{"balances":[],"denom_metadata":[],"params":{"default_send_enabled":true,"send_enabled":[]},"supply":[]},"capability":{"index":"1","owners":[]},"ccvconsumer":{"height_to_valset_update_id":[],"initial_val_set":[],"last_transmission_block_height":{"height":"0"},"maturing_packets":[],"new_chain":false,"outstanding_downtime_slashing":[],"params":{"blocks_per_distribution_transmission":"1000","ccv_timeout_period":"2419200s","consumer_redistribution_fraction":"0.75","distribution_transmission_channel":"","enabled":false,"historical_entries":"10000","provider_fee_pool_addr_str":"","provider_reward_denoms":[],"reward_denoms":[],"soft_opt_out_threshold":"0.05","transfer_timeout_period":"3600s","unbonding_period":"1728000s"},"pending_consumer_packets":{"list":[]},"preCCV":false,"provider_channel_id":"","provider_client_id":"","provider_client_state":null,"provider_consensus_state":null},"crisis":{"constant_fee":{"amount":"1000","denom":"stake"}},"evidence":{"evidence":[]},"feegrant":{"allowances":[]},"ibc":{"channel_genesis":{"ack_sequences":[],"acknowledgements":[],"channels":[],"commitments":[],"next_channel_sequence":"0","receipts":[],"recv_sequences":[],"send_sequences":[]},"client_genesis":{"clients":[],"clients_consensus":[],"clients_metadata":[],"create_localhost":false,"next_client_sequence":"0","params":{"allowed_clients":["06-solomachine","07-tendermint"]}},"connection_genesis":{"client_connection_paths":[],"connections":[],"next_connection_sequence":"0","params":{"max_expected_time_per_block":"30000000000"}}},"params":null,"slashing":{"missed_blocks":[],"params":{"downtime_jail_duration":"600s","min_signed_per_window":"0.500000000000000000","signed_blocks_window":"100","slash_fraction_double_sign":"0.050000000000000000","slash_fraction_downtime":"0.010000000000000000"},"signing_infos":[]},"transfer":{"denom_traces":[],"params":{"receive_enabled":true,"send_enabled":true},"port_id":"transfer"},"upgrade":{},"vesting":{}},"chain_id":"consu","gentxs_dir":"","moniker":"query","node_id":"377889fb856cf87acca74727a2d8ffee2abd9409"} +startChain: + cp /consu/genesis.json /consu/query/config/genesis.json +startChain: + QUERY_GAIA_HOME='--home /consu/query' +startChain: + QUERY_RPC_ADDRESS='--rpc.laddr tcp://7.7.8.253:26658' +startChain: + QUERY_GRPC_ADDRESS='--grpc.address 7.7.8.253:9091' +startChain: + QUERY_LISTEN_ADDRESS='--address tcp://7.7.8.253:26655' +startChain: + QUERY_P2P_ADDRESS='--p2p.laddr tcp://7.7.8.253:26656' +startChain: + QUERY_LOG_LEVEL='--log_level info' +startChain: + QUERY_ENABLE_WEBGRPC=--grpc-web.enable=false +startChain: + QUERY_PERSISTENT_PEERS= +startChain: ++ seq 0 0 +startChain: + for j in $(seq 0 $(($NODES - 1))) +startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true}]' +startChain: ++ jq -r '.[0].val_id' +startChain: + PEER_VAL_ID=alice +startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true}]' +startChain: ++ jq -r '.[0].ip_suffix' +startChain: + PEER_VAL_IP_SUFFIX=4 +startChain: ++ interchain-security-cd tendermint show-node-id --home /consu/validatoralice +startChain: + NODE_ID=8339e14baab81c2a2350e261962263397a8d7fb0 +startChain: + ADDRESS=8339e14baab81c2a2350e261962263397a8d7fb0@7.7.8.4:26656 +startChain: + QUERY_PERSISTENT_PEERS=,8339e14baab81c2a2350e261962263397a8d7fb0@7.7.8.4:26656 +startChain: + QUERY_PERSISTENT_PEERS='--p2p.persistent_peers 8339e14baab81c2a2350e261962263397a8d7fb0@7.7.8.4:26656' +startChain: + ARGS='--home /consu/query --address tcp://7.7.8.253:26655 --rpc.laddr tcp://7.7.8.253:26658 --grpc.address 7.7.8.253:9091 --log_level info --p2p.laddr tcp://7.7.8.253:26656 --grpc-web.enable=false --p2p.persistent_peers 8339e14baab81c2a2350e261962263397a8d7fb0@7.7.8.4:26656' +startChain: + [[ false != \t\r\u\e ]] +startChain: + echo 'Node addresses:' +startChain: + echo 7.7.8.4:26655, +startChain: + echo 'Node homes:' +startChain: + echo /consu/validatoralice, +startChain: + NODE_LISTEN_ADDR_STR=7.7.8.4:26655 +startChain: + NODE_HOMES=/consu/validatoralice +startChain: + [[ false == \t\r\u\e ]] +startChain: + [[ false == \t\r\u\e ]] +startChain: + set +e +startChain: Node addresses: +startChain: 7.7.8.4:26655, +startChain: Node homes: +startChain: /consu/validatoralice, +startChain: + ip netns exec consu-query interchain-security-cd --home /consu/query --address tcp://7.7.8.253:26655 --rpc.laddr tcp://7.7.8.253:26658 --grpc.address 7.7.8.253:9091 --log_level info --p2p.laddr tcp://7.7.8.253:26656 --grpc-web.enable=false --p2p.persistent_peers 8339e14baab81c2a2350e261962263397a8d7fb0@7.7.8.4:26656 start +startChain: + interchain-security-cd query block --node tcp://7.7.8.253:26658 +startChain: + grep -q -v '{"block_id":{"hash":"","parts":{"total":0,"hash": +startChain: ""}},"block":null}' +startChain: Error: post failed: Post "http://7.7.8.253:26658": dial tcp 7.7.8.253:26658: connect: connection refused +startChain: Usage: +startChain: simd query block [height] [flags] +startChain: +startChain: Flags: +startChain: -h, --help help for block +startChain: -n, --node string Node to connect to (default "tcp://localhost:26657") +startChain: +startChain: Global Flags: +startChain: --chain-id string The network chain ID +startChain: --home string directory for config and data (default "/root/.interchain-security-c") +startChain: --log_format string The logging format (json|plain) (default "plain") +startChain: --log_level string The logging level (trace|debug|info|warn|error|fatal|panic) (default "info") +startChain: --trace print out full stack trace on errors +startChain: +startChain: + sleep 0.3 +startChain: + interchain-security-cd query block --node tcp://7.7.8.253:26658 +startChain: + grep -q -v '{"block_id":{"hash":"","parts":{"total":0,"hash": +startChain: ""}},"block":null}' +startChain: + sleep 0.3 +startChain: + interchain-security-cd query block --node tcp://7.7.8.253:26658 +startChain: + grep -q -v '{"block_id":{"hash":"","parts":{"total":0,"hash": +startChain: ""}},"block":null}' +startChain: + sleep 0.3 +startChain: + interchain-security-cd query block --node tcp://7.7.8.253:26658 +startChain: + grep -q -v '{"block_id":{"hash":"","parts":{"total":0,"hash": +startChain: ""}},"block":null}' +startChain: + sleep 0.3 +startChain: + interchain-security-cd query block --node tcp://7.7.8.253:26658 +startChain: + grep -q -v '{"block_id":{"hash":"","parts":{"total":0,"hash": +startChain: ""}},"block":null}' +startChain: done!!!!!!!! +Add to hermes alice +exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty +running misbehaviour: step 6 == addIbcConnectionAction +addIbcConnection: 2023-07-06T13:41:33.651990Z INFO ThreadId(01) using default configuration from '/root/.hermes/config.toml' +addIbcConnection: 2023-07-06T13:41:33.652224Z INFO ThreadId(01) running Hermes v1.4.0+7e5bdd2c +addIbcConnection: 2023-07-06T13:41:33.673137Z INFO ThreadId(01) Creating a new connection with pre-existing clients 07-tendermint-0 and 07-tendermint-0 +addIbcConnection: 2023-07-06T13:41:33.674718Z DEBUG ThreadId(01) do_conn_open_handshake with connection end states: UNINITIALIZED, UNINITIALIZED +addIbcConnection: 2023-07-06T13:41:33.682110Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ConnectionOpenInit}: sending 1 messages as 1 batches to chain consu in parallel +addIbcConnection: 2023-07-06T13:41:33.682142Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ConnectionOpenInit}:send_tx_with_account_sequence_retry{chain=consu account.sequence=0}: max fee, for use in tx simulation: Fee { amount: "0stake", gas_limit: 20000000 } +addIbcConnection: 2023-07-06T13:41:33.687746Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ConnectionOpenInit}:send_tx_with_account_sequence_retry{chain=consu account.sequence=0}:estimate_gas: tx simulation successful, gas amount used: 64850 +addIbcConnection: 2023-07-06T13:41:33.687779Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ConnectionOpenInit}:send_tx_with_account_sequence_retry{chain=consu account.sequence=0}: send_tx: using 64850 gas, fee Fee { amount: "0stake", gas_limit: 71335 } id=consu +addIbcConnection: 2023-07-06T13:41:33.697971Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ConnectionOpenInit}:send_tx_with_account_sequence_retry{chain=consu account.sequence=0}: gas estimation succeeded +addIbcConnection: 2023-07-06T13:41:33.697990Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ConnectionOpenInit}:send_tx_with_account_sequence_retry{chain=consu account.sequence=0}: tx was successfully broadcasted, increasing account sequence number response=Response { code: Ok, data: b"", log: "[]", hash: Hash::Sha256(9EC204029FE95E4401C7F0C76B214CBE221EC0E348C63575329871E4E089F0C7) } account.sequence.old=0 account.sequence.new=1 +addIbcConnection: 2023-07-06T13:41:33.698402Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ConnectionOpenInit}:wait_for_block_commits{id=consu}: waiting for commit of tx hashes(s) 9EC204029FE95E4401C7F0C76B214CBE221EC0E348C63575329871E4E089F0C7 +addIbcConnection: 2023-07-06T13:41:34.604085Z INFO ThreadId(01) 🥂 consu => OpenInitConnection(OpenInit { Attributes { connection_id: connection-0, client_id: 07-tendermint-0, counterparty_connection_id: None, counterparty_client_id: 07-tendermint-0 } }) at height 0-3 +addIbcConnection: 2023-07-06T13:41:37.605836Z DEBUG ThreadId(01) do_conn_open_handshake with connection end states: INIT, UNINITIALIZED +addIbcConnection: 2023-07-06T13:41:37.617177Z DEBUG ThreadId(01) foreign_client.wait_and_build_update_client_with_trusted{client=provi->consu:07-tendermint-0 target_height=0-35}:foreign_client.build_update_client_with_trusted{client=provi->consu:07-tendermint-0 target_height=0-35}: building a MsgUpdateAnyClient from trusted height 0-24 to target height 0-35 +addIbcConnection: 2023-07-06T13:41:37.617653Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=update client on source for ConnectionOpenTry}: sending 1 messages as 1 batches to chain consu in parallel +addIbcConnection: 2023-07-06T13:41:37.617670Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=update client on source for ConnectionOpenTry}:send_tx_with_account_sequence_retry{chain=consu account.sequence=1}: max fee, for use in tx simulation: Fee { amount: "0stake", gas_limit: 20000000 } +addIbcConnection: 2023-07-06T13:41:37.620190Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=update client on source for ConnectionOpenTry}:send_tx_with_account_sequence_retry{chain=consu account.sequence=1}:estimate_gas: tx simulation successful, gas amount used: 90567 +addIbcConnection: 2023-07-06T13:41:37.620218Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=update client on source for ConnectionOpenTry}:send_tx_with_account_sequence_retry{chain=consu account.sequence=1}: send_tx: using 90567 gas, fee Fee { amount: "0stake", gas_limit: 99623 } id=consu +addIbcConnection: 2023-07-06T13:41:37.621620Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=update client on source for ConnectionOpenTry}:send_tx_with_account_sequence_retry{chain=consu account.sequence=1}: gas estimation succeeded +addIbcConnection: 2023-07-06T13:41:37.621635Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=update client on source for ConnectionOpenTry}:send_tx_with_account_sequence_retry{chain=consu account.sequence=1}: tx was successfully broadcasted, increasing account sequence number response=Response { code: Ok, data: b"", log: "[]", hash: Hash::Sha256(74509CD276025408AD15BFE5EB5BB74E40CF90BDA872E3317B2A280A8086DD0A) } account.sequence.old=1 account.sequence.new=2 +addIbcConnection: 2023-07-06T13:41:37.621669Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=update client on source for ConnectionOpenTry}:wait_for_block_commits{id=consu}: waiting for commit of tx hashes(s) 74509CD276025408AD15BFE5EB5BB74E40CF90BDA872E3317B2A280A8086DD0A +addIbcConnection: 2023-07-06T13:41:39.566356Z DEBUG ThreadId(01) foreign_client.wait_and_build_update_client_with_trusted{client=consu->provi:07-tendermint-0 target_height=0-8}:foreign_client.build_update_client_with_trusted{client=consu->provi:07-tendermint-0 target_height=0-8}: building a MsgUpdateAnyClient from trusted height 0-1 to target height 0-8 +addIbcConnection: 2023-07-06T13:41:39.569629Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ConnectionOpenTry}: sending 2 messages as 1 batches to chain provi in parallel +addIbcConnection: 2023-07-06T13:41:39.569653Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ConnectionOpenTry}:send_tx_with_account_sequence_retry{chain=provi account.sequence=4}: max fee, for use in tx simulation: Fee { amount: "0stake", gas_limit: 20000000 } +addIbcConnection: 2023-07-06T13:41:39.573097Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ConnectionOpenTry}:send_tx_with_account_sequence_retry{chain=provi account.sequence=4}:estimate_gas: tx simulation successful, gas amount used: 145023 +addIbcConnection: 2023-07-06T13:41:39.573117Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ConnectionOpenTry}:send_tx_with_account_sequence_retry{chain=provi account.sequence=4}: send_tx: using 145023 gas, fee Fee { amount: "0stake", gas_limit: 159525 } id=provi +addIbcConnection: 2023-07-06T13:41:39.575214Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ConnectionOpenTry}:send_tx_with_account_sequence_retry{chain=provi account.sequence=4}: gas estimation succeeded +addIbcConnection: 2023-07-06T13:41:39.575232Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ConnectionOpenTry}:send_tx_with_account_sequence_retry{chain=provi account.sequence=4}: tx was successfully broadcasted, increasing account sequence number response=Response { code: Ok, data: b"", log: "[]", hash: Hash::Sha256(E8BA3F162F915E5AD46FEEC74A590485D86C1A1894D0A4BA359A103A578CC39A) } account.sequence.old=4 account.sequence.new=5 +addIbcConnection: 2023-07-06T13:41:39.575250Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ConnectionOpenTry}:wait_for_block_commits{id=provi}: waiting for commit of tx hashes(s) E8BA3F162F915E5AD46FEEC74A590485D86C1A1894D0A4BA359A103A578CC39A +addIbcConnection: 2023-07-06T13:41:40.784731Z INFO ThreadId(01) 🥂 provi => OpenTryConnection(OpenTry { Attributes { connection_id: connection-0, client_id: 07-tendermint-0, counterparty_connection_id: connection-0, counterparty_client_id: 07-tendermint-0 } }) at height 0-38 +addIbcConnection: 2023-07-06T13:41:43.788504Z DEBUG ThreadId(01) do_conn_open_handshake with connection end states: INIT, TRYOPEN +addIbcConnection: 2023-07-06T13:41:43.803088Z DEBUG ThreadId(01) foreign_client.wait_and_build_update_client_with_trusted{client=consu->provi:07-tendermint-0 target_height=0-12}:foreign_client.build_update_client_with_trusted{client=consu->provi:07-tendermint-0 target_height=0-12}: building a MsgUpdateAnyClient from trusted height 0-8 to target height 0-12 +addIbcConnection: 2023-07-06T13:41:43.803748Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=update client on source for ConnectionOpenAck}: sending 1 messages as 1 batches to chain provi in parallel +addIbcConnection: 2023-07-06T13:41:43.803768Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=update client on source for ConnectionOpenAck}:send_tx_with_account_sequence_retry{chain=provi account.sequence=5}: max fee, for use in tx simulation: Fee { amount: "0stake", gas_limit: 20000000 } +addIbcConnection: 2023-07-06T13:41:43.806064Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=update client on source for ConnectionOpenAck}:send_tx_with_account_sequence_retry{chain=provi account.sequence=5}:estimate_gas: tx simulation successful, gas amount used: 89528 +addIbcConnection: 2023-07-06T13:41:43.806098Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=update client on source for ConnectionOpenAck}:send_tx_with_account_sequence_retry{chain=provi account.sequence=5}: send_tx: using 89528 gas, fee Fee { amount: "0stake", gas_limit: 98480 } id=provi +addIbcConnection: 2023-07-06T13:41:43.807899Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=update client on source for ConnectionOpenAck}:send_tx_with_account_sequence_retry{chain=provi account.sequence=5}: gas estimation succeeded +addIbcConnection: 2023-07-06T13:41:43.807927Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=update client on source for ConnectionOpenAck}:send_tx_with_account_sequence_retry{chain=provi account.sequence=5}: tx was successfully broadcasted, increasing account sequence number response=Response { code: Ok, data: b"", log: "[]", hash: Hash::Sha256(EA9E9ACDC04C5B01D1FB896F0F890654A638E0B941A5158A10E8875CE77652F2) } account.sequence.old=5 account.sequence.new=6 +addIbcConnection: 2023-07-06T13:41:43.807958Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=update client on source for ConnectionOpenAck}:wait_for_block_commits{id=provi}: waiting for commit of tx hashes(s) EA9E9ACDC04C5B01D1FB896F0F890654A638E0B941A5158A10E8875CE77652F2 +addIbcConnection: 2023-07-06T13:41:45.847364Z DEBUG ThreadId(01) foreign_client.wait_and_build_update_client_with_trusted{client=provi->consu:07-tendermint-0 target_height=0-43}:foreign_client.build_update_client_with_trusted{client=provi->consu:07-tendermint-0 target_height=0-43}: building a MsgUpdateAnyClient from trusted height 0-35 to target height 0-43 +addIbcConnection: 2023-07-06T13:41:45.849127Z WARN ThreadId(01) client consensus proof height too high, waiting for destination chain to advance beyond 0-12 +addIbcConnection: 2023-07-06T13:41:46.351889Z WARN ThreadId(01) client consensus proof height too high, waiting for destination chain to advance beyond 0-12 +addIbcConnection: 2023-07-06T13:41:46.854377Z WARN ThreadId(01) client consensus proof height too high, waiting for destination chain to advance beyond 0-12 +addIbcConnection: 2023-07-06T13:41:47.357350Z WARN ThreadId(01) client consensus proof height too high, waiting for destination chain to advance beyond 0-12 +addIbcConnection: 2023-07-06T13:41:47.858783Z WARN ThreadId(01) client consensus proof height too high, waiting for destination chain to advance beyond 0-12 +addIbcConnection: 2023-07-06T13:41:48.361092Z WARN ThreadId(01) client consensus proof height too high, waiting for destination chain to advance beyond 0-12 +addIbcConnection: 2023-07-06T13:41:48.864586Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ConnectionOpenAck}: sending 2 messages as 1 batches to chain consu in parallel +addIbcConnection: 2023-07-06T13:41:48.864751Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ConnectionOpenAck}:send_tx_with_account_sequence_retry{chain=consu account.sequence=2}: max fee, for use in tx simulation: Fee { amount: "0stake", gas_limit: 20000000 } +addIbcConnection: 2023-07-06T13:41:48.869116Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ConnectionOpenAck}:send_tx_with_account_sequence_retry{chain=consu account.sequence=2}:estimate_gas: tx simulation successful, gas amount used: 136553 +addIbcConnection: 2023-07-06T13:41:48.869258Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ConnectionOpenAck}:send_tx_with_account_sequence_retry{chain=consu account.sequence=2}: send_tx: using 136553 gas, fee Fee { amount: "0stake", gas_limit: 150208 } id=consu +addIbcConnection: 2023-07-06T13:41:48.872435Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ConnectionOpenAck}:send_tx_with_account_sequence_retry{chain=consu account.sequence=2}: gas estimation succeeded +addIbcConnection: 2023-07-06T13:41:48.872457Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ConnectionOpenAck}:send_tx_with_account_sequence_retry{chain=consu account.sequence=2}: tx was successfully broadcasted, increasing account sequence number response=Response { code: Ok, data: b"", log: "[]", hash: Hash::Sha256(BC11B3B03639E601B8BCEA4E435FB7C2738A66FFAE084B86901F4C08CE7A3088) } account.sequence.old=2 account.sequence.new=3 +addIbcConnection: 2023-07-06T13:41:48.872490Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ConnectionOpenAck}:wait_for_block_commits{id=consu}: waiting for commit of tx hashes(s) BC11B3B03639E601B8BCEA4E435FB7C2738A66FFAE084B86901F4C08CE7A3088 +addIbcConnection: 2023-07-06T13:41:49.782925Z INFO ThreadId(01) 🥂 consu => OpenAckConnection(OpenAck { Attributes { connection_id: connection-0, client_id: 07-tendermint-0, counterparty_connection_id: connection-0, counterparty_client_id: 07-tendermint-0 } }) at height 0-14 +addIbcConnection: 2023-07-06T13:41:52.788392Z DEBUG ThreadId(01) do_conn_open_handshake with connection end states: OPEN, TRYOPEN +addIbcConnection: 2023-07-06T13:41:52.906982Z DEBUG ThreadId(01) foreign_client.wait_and_build_update_client_with_trusted{client=consu->provi:07-tendermint-0 target_height=0-17}:foreign_client.build_update_client_with_trusted{client=consu->provi:07-tendermint-0 target_height=0-17}: building a MsgUpdateAnyClient from trusted height 0-12 to target height 0-17 +addIbcConnection: 2023-07-06T13:41:52.908074Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ConnectionOpenConfirm}: sending 2 messages as 1 batches to chain provi in parallel +addIbcConnection: 2023-07-06T13:41:52.908099Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ConnectionOpenConfirm}:send_tx_with_account_sequence_retry{chain=provi account.sequence=6}: max fee, for use in tx simulation: Fee { amount: "0stake", gas_limit: 20000000 } +addIbcConnection: 2023-07-06T13:41:52.910991Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ConnectionOpenConfirm}:send_tx_with_account_sequence_retry{chain=provi account.sequence=6}:estimate_gas: tx simulation successful, gas amount used: 107744 +addIbcConnection: 2023-07-06T13:41:52.911015Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ConnectionOpenConfirm}:send_tx_with_account_sequence_retry{chain=provi account.sequence=6}: send_tx: using 107744 gas, fee Fee { amount: "0stake", gas_limit: 118518 } id=provi +addIbcConnection: 2023-07-06T13:41:52.912787Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ConnectionOpenConfirm}:send_tx_with_account_sequence_retry{chain=provi account.sequence=6}: gas estimation succeeded +addIbcConnection: 2023-07-06T13:41:52.912816Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ConnectionOpenConfirm}:send_tx_with_account_sequence_retry{chain=provi account.sequence=6}: tx was successfully broadcasted, increasing account sequence number response=Response { code: Ok, data: b"", log: "[]", hash: Hash::Sha256(19E113EC6AC82948F02EDA44129BC048E0A47162E5067D1943846AAF50A42614) } account.sequence.old=6 account.sequence.new=7 +addIbcConnection: 2023-07-06T13:41:52.912837Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ConnectionOpenConfirm}:wait_for_block_commits{id=provi}: waiting for commit of tx hashes(s) 19E113EC6AC82948F02EDA44129BC048E0A47162E5067D1943846AAF50A42614 +addIbcConnection: 2023-07-06T13:41:54.425339Z INFO ThreadId(01) 🥂 provi => OpenConfirmConnection(OpenConfirm { Attributes { connection_id: connection-0, client_id: 07-tendermint-0, counterparty_connection_id: connection-0, counterparty_client_id: 07-tendermint-0 } }) at height 0-51 +addIbcConnection: SUCCESS Connection { +addIbcConnection: delay_period: 0ns, +addIbcConnection: a_side: ConnectionSide { +addIbcConnection: chain: BaseChainHandle { +addIbcConnection: chain_id: ChainId { +addIbcConnection: id: "consu", +addIbcConnection: version: 0, +addIbcConnection: }, +addIbcConnection: runtime_sender: Sender { .. }, +addIbcConnection: }, +addIbcConnection: client_id: ClientId( +addIbcConnection: "07-tendermint-0", +addIbcConnection: ), +addIbcConnection: connection_id: Some( +addIbcConnection: ConnectionId( +addIbcConnection: "connection-0", +addIbcConnection: ), +addIbcConnection: ), +addIbcConnection: }, +addIbcConnection: 2023-07-06T13:41:57.429980Z DEBUG ThreadId(01) do_conn_open_handshake with connection end states: OPEN, OPEN +addIbcConnection: 2023-07-06T13:41:57.430033Z INFO ThreadId(01) connection handshake already finished for Connection { delay_period: 0ns, a_side: ConnectionSide { chain: BaseChainHandle { chain_id: consu }, client_id: 07-tendermint-0, connection_id: connection-0 }, b_side: ConnectionSide { chain: BaseChainHandle { chain_id: provi }, client_id: 07-tendermint-0, connection_id: connection-0 } } +addIbcConnection: b_side: ConnectionSide { +addIbcConnection: chain: BaseChainHandle { +addIbcConnection: chain_id: ChainId { +addIbcConnection: id: "provi", +addIbcConnection: version: 0, +addIbcConnection: }, +addIbcConnection: runtime_sender: Sender { .. }, +addIbcConnection: }, +addIbcConnection: client_id: ClientId( +addIbcConnection: "07-tendermint-0", +addIbcConnection: ), +addIbcConnection: connection_id: Some( +addIbcConnection: ConnectionId( +addIbcConnection: "connection-0", +addIbcConnection: ), +addIbcConnection: ), +addIbcConnection: }, +addIbcConnection: } +running misbehaviour: step 7 == addIbcChannelAction +addIbcChannel cmd: /usr/local/bin/docker exec interchain-security-instance hermes create channel --a-chain consu --a-connection connection-0 --a-port consumer --b-port provider --channel-version 1 --order ordered +addIBCChannel: 2023-07-06T13:41:57.547830Z INFO ThreadId(01) using default configuration from '/root/.hermes/config.toml' +addIBCChannel: 2023-07-06T13:41:57.548081Z INFO ThreadId(01) running Hermes v1.4.0+7e5bdd2c +addIBCChannel: 2023-07-06T13:41:57.555837Z DEBUG ThreadId(01) do_chan_open_handshake with channel end states: UNINITIALIZED, UNINITIALIZED +addIBCChannel: 2023-07-06T13:41:57.558015Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ChannelOpenInit}: sending 1 messages as 1 batches to chain consu in parallel +addIBCChannel: 2023-07-06T13:41:57.558033Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ChannelOpenInit}:send_tx_with_account_sequence_retry{chain=consu account.sequence=3}: max fee, for use in tx simulation: Fee { amount: "0stake", gas_limit: 20000000 } +addIBCChannel: 2023-07-06T13:41:57.559559Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ChannelOpenInit}:send_tx_with_account_sequence_retry{chain=consu account.sequence=3}:estimate_gas: tx simulation successful, gas amount used: 105716 +addIBCChannel: 2023-07-06T13:41:57.559585Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ChannelOpenInit}:send_tx_with_account_sequence_retry{chain=consu account.sequence=3}: send_tx: using 105716 gas, fee Fee { amount: "0stake", gas_limit: 116287 } id=consu +addIBCChannel: 2023-07-06T13:41:57.560421Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ChannelOpenInit}:send_tx_with_account_sequence_retry{chain=consu account.sequence=3}: gas estimation succeeded +addIBCChannel: 2023-07-06T13:41:57.560456Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ChannelOpenInit}:send_tx_with_account_sequence_retry{chain=consu account.sequence=3}: tx was successfully broadcasted, increasing account sequence number response=Response { code: Ok, data: b"", log: "[]", hash: Hash::Sha256(D292C3B02B20817864D17E714B857671429E40C903B1A138BFFE01FA9DC36481) } account.sequence.old=3 account.sequence.new=4 +addIBCChannel: 2023-07-06T13:41:57.560603Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ChannelOpenInit}:wait_for_block_commits{id=consu}: waiting for commit of tx hashes(s) D292C3B02B20817864D17E714B857671429E40C903B1A138BFFE01FA9DC36481 +addIBCChannel: 2023-07-06T13:41:58.766853Z INFO ThreadId(01) 🎊 consu => OpenInitChannel(OpenInit { port_id: consumer, channel_id: channel-0, connection_id: None, counterparty_port_id: provider, counterparty_channel_id: None }) at height 0-23 +addIBCChannel: 2023-07-06T13:42:01.768412Z DEBUG ThreadId(01) do_chan_open_handshake with channel end states: INIT, UNINITIALIZED +addIBCChannel: 2023-07-06T13:42:01.992553Z DEBUG ThreadId(01) foreign_client.wait_and_build_update_client_with_trusted{client=consu->provi:07-tendermint-0 target_height=0-26}:foreign_client.build_update_client_with_trusted{client=consu->provi:07-tendermint-0 target_height=0-26}: building a MsgUpdateAnyClient from trusted height 0-17 to target height 0-26 +addIBCChannel: 2023-07-06T13:42:01.995379Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ChannelOpenTry}: sending 2 messages as 1 batches to chain provi in parallel +addIBCChannel: 2023-07-06T13:42:01.995414Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ChannelOpenTry}:send_tx_with_account_sequence_retry{chain=provi account.sequence=7}: max fee, for use in tx simulation: Fee { amount: "0stake", gas_limit: 20000000 } +addIBCChannel: 2023-07-06T13:42:01.998257Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ChannelOpenTry}:send_tx_with_account_sequence_retry{chain=provi account.sequence=7}:estimate_gas: tx simulation successful, gas amount used: 178082 +addIBCChannel: 2023-07-06T13:42:01.998390Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ChannelOpenTry}:send_tx_with_account_sequence_retry{chain=provi account.sequence=7}: send_tx: using 178082 gas, fee Fee { amount: "0stake", gas_limit: 195890 } id=provi +addIBCChannel: 2023-07-06T13:42:02.000446Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ChannelOpenTry}:send_tx_with_account_sequence_retry{chain=provi account.sequence=7}: gas estimation succeeded +addIBCChannel: 2023-07-06T13:42:02.000519Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ChannelOpenTry}:send_tx_with_account_sequence_retry{chain=provi account.sequence=7}: tx was successfully broadcasted, increasing account sequence number response=Response { code: Ok, data: b"", log: "[]", hash: Hash::Sha256(FBECF31CD695F9309D5B2873D99952012B57A09E319F58DDA24EEB1C3CBB708B) } account.sequence.old=7 account.sequence.new=8 +addIBCChannel: 2023-07-06T13:42:02.000567Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ChannelOpenTry}:wait_for_block_commits{id=provi}: waiting for commit of tx hashes(s) FBECF31CD695F9309D5B2873D99952012B57A09E319F58DDA24EEB1C3CBB708B +addIBCChannel: 2023-07-06T13:42:03.208124Z INFO ThreadId(01) 🎊 provi => OpenTryChannel(OpenTry { port_id: provider, channel_id: channel-0, connection_id: connection-0, counterparty_port_id: consumer, counterparty_channel_id: channel-0 }) at height 0-60 +addIBCChannel: 2023-07-06T13:42:06.211700Z DEBUG ThreadId(01) do_chan_open_handshake with channel end states: INIT, TRYOPEN +addIBCChannel: 2023-07-06T13:42:07.155628Z DEBUG ThreadId(01) foreign_client.wait_and_build_update_client_with_trusted{client=provi->consu:07-tendermint-0 target_height=0-64}:foreign_client.build_update_client_with_trusted{client=provi->consu:07-tendermint-0 target_height=0-64}: building a MsgUpdateAnyClient from trusted height 0-43 to target height 0-64 +addIBCChannel: 2023-07-06T13:42:07.156874Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ChannelOpenAck}: sending 2 messages as 1 batches to chain consu in parallel +addIBCChannel: 2023-07-06T13:42:07.156904Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ChannelOpenAck}:send_tx_with_account_sequence_retry{chain=consu account.sequence=4}: max fee, for use in tx simulation: Fee { amount: "0stake", gas_limit: 20000000 } +addIBCChannel: 2023-07-06T13:42:07.162517Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ChannelOpenAck}:send_tx_with_account_sequence_retry{chain=consu account.sequence=4}:estimate_gas: tx simulation successful, gas amount used: 191360 +addIBCChannel: 2023-07-06T13:42:07.162556Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ChannelOpenAck}:send_tx_with_account_sequence_retry{chain=consu account.sequence=4}: send_tx: using 191360 gas, fee Fee { amount: "0stake", gas_limit: 210496 } id=consu +addIBCChannel: 2023-07-06T13:42:07.164845Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ChannelOpenAck}:send_tx_with_account_sequence_retry{chain=consu account.sequence=4}: gas estimation succeeded +addIBCChannel: 2023-07-06T13:42:07.164886Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ChannelOpenAck}:send_tx_with_account_sequence_retry{chain=consu account.sequence=4}: tx was successfully broadcasted, increasing account sequence number response=Response { code: Ok, data: b"", log: "[]", hash: Hash::Sha256(23718DD074BC636CFB0241A6AF6596CBD307001ED137545BB1358175D170A1EB) } account.sequence.old=4 account.sequence.new=5 +addIBCChannel: 2023-07-06T13:42:07.164925Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ChannelOpenAck}:wait_for_block_commits{id=consu}: waiting for commit of tx hashes(s) 23718DD074BC636CFB0241A6AF6596CBD307001ED137545BB1358175D170A1EB +addIBCChannel: 2023-07-06T13:42:08.070971Z INFO ThreadId(01) 🎊 consu => OpenAckChannel(OpenAck { port_id: consumer, channel_id: channel-0, connection_id: connection-0, counterparty_port_id: provider, counterparty_channel_id: channel-0 }) at height 0-32 +addIBCChannel: 2023-07-06T13:42:11.075915Z DEBUG ThreadId(01) do_chan_open_handshake with channel end states: OPEN, TRYOPEN +addIBCChannel: 2023-07-06T13:42:11.916333Z DEBUG ThreadId(01) foreign_client.wait_and_build_update_client_with_trusted{client=consu->provi:07-tendermint-0 target_height=0-36}:foreign_client.build_update_client_with_trusted{client=consu->provi:07-tendermint-0 target_height=0-36}: building a MsgUpdateAnyClient from trusted height 0-26 to target height 0-36 +addIBCChannel: 2023-07-06T13:42:11.917179Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ChannelOpenConfirm}: sending 2 messages as 1 batches to chain provi in parallel +addIBCChannel: 2023-07-06T13:42:11.917200Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ChannelOpenConfirm}:send_tx_with_account_sequence_retry{chain=provi account.sequence=8}: max fee, for use in tx simulation: Fee { amount: "0stake", gas_limit: 20000000 } +addIBCChannel: 2023-07-06T13:42:11.919198Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ChannelOpenConfirm}:send_tx_with_account_sequence_retry{chain=provi account.sequence=8}:estimate_gas: tx simulation successful, gas amount used: 130497 +addIBCChannel: 2023-07-06T13:42:11.919309Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ChannelOpenConfirm}:send_tx_with_account_sequence_retry{chain=provi account.sequence=8}: send_tx: using 130497 gas, fee Fee { amount: "0stake", gas_limit: 143546 } id=provi +addIBCChannel: 2023-07-06T13:42:11.920857Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ChannelOpenConfirm}:send_tx_with_account_sequence_retry{chain=provi account.sequence=8}: gas estimation succeeded +addIBCChannel: 2023-07-06T13:42:11.920873Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ChannelOpenConfirm}:send_tx_with_account_sequence_retry{chain=provi account.sequence=8}: tx was successfully broadcasted, increasing account sequence number response=Response { code: Ok, data: b"", log: "[]", hash: Hash::Sha256(3EDF18EF3501459702FD77A210F897DA50CE5C1330D1924EDF9E68FB51C83560) } account.sequence.old=8 account.sequence.new=9 +addIBCChannel: 2023-07-06T13:42:11.920893Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ChannelOpenConfirm}:wait_for_block_commits{id=provi}: waiting for commit of tx hashes(s) 3EDF18EF3501459702FD77A210F897DA50CE5C1330D1924EDF9E68FB51C83560 +addIBCChannel: 2023-07-06T13:42:12.525147Z INFO ThreadId(01) 🎊 provi => OpenConfirmChannel(OpenConfirm { port_id: provider, channel_id: channel-0, connection_id: connection-0, counterparty_port_id: consumer, counterparty_channel_id: channel-0 }) at height 0-69 +addIBCChannel: 2023-07-06T13:42:15.528560Z DEBUG ThreadId(01) do_chan_open_handshake with channel end states: OPEN, OPEN +addIBCChannel: 2023-07-06T13:42:15.528613Z INFO ThreadId(01) channel handshake already finished for Channel { ordering: ORDER_ORDERED, a_side: ChannelSide { chain: BaseChainHandle { chain_id: consu }, client_id: 07-tendermint-0, connection_id: connection-0, port_id: consumer, channel_id: channel-0, version: 1 }, b_side: ChannelSide { chain: BaseChainHandle { chain_id: provi }, client_id: 07-tendermint-0, connection_id: connection-0, port_id: provider, channel_id: channel-0, version: 1 }, connection_delay: 0ns } +addIBCChannel: SUCCESS Channel { +addIBCChannel: ordering: Ordered, +addIBCChannel: a_side: ChannelSide { +addIBCChannel: chain: BaseChainHandle { +addIBCChannel: chain_id: ChainId { +addIBCChannel: id: "consu", +addIBCChannel: version: 0, +addIBCChannel: }, +addIBCChannel: runtime_sender: Sender { .. }, +addIBCChannel: }, +addIBCChannel: client_id: ClientId( +addIBCChannel: "07-tendermint-0", +addIBCChannel: ), +addIBCChannel: connection_id: ConnectionId( +addIBCChannel: "connection-0", +addIBCChannel: ), +addIBCChannel: port_id: PortId( +addIBCChannel: "consumer", +addIBCChannel: ), +addIBCChannel: channel_id: Some( +addIBCChannel: ChannelId( +addIBCChannel: "channel-0", +addIBCChannel: ), +addIBCChannel: ), +addIBCChannel: version: Some( +addIBCChannel: Version( +addIBCChannel: "1", +addIBCChannel: ), +addIBCChannel: ), +addIBCChannel: }, +addIBCChannel: b_side: ChannelSide { +addIBCChannel: chain: BaseChainHandle { +addIBCChannel: chain_id: ChainId { +addIBCChannel: id: "provi", +addIBCChannel: version: 0, +addIBCChannel: }, +addIBCChannel: runtime_sender: Sender { .. }, +addIBCChannel: }, +addIBCChannel: client_id: ClientId( +addIBCChannel: "07-tendermint-0", +addIBCChannel: ), +addIBCChannel: connection_id: ConnectionId( +addIBCChannel: "connection-0", +addIBCChannel: ), +addIBCChannel: port_id: PortId( +addIBCChannel: "provider", +addIBCChannel: ), +addIBCChannel: channel_id: Some( +addIBCChannel: ChannelId( +addIBCChannel: "channel-0", +addIBCChannel: ), +addIBCChannel: ), +addIBCChannel: version: Some( +addIBCChannel: Version( +addIBCChannel: "1", +addIBCChannel: ), +addIBCChannel: ), +addIBCChannel: }, +addIBCChannel: connection_delay: 0ns, +addIBCChannel: } +running misbehaviour: step 8 == delegateTokensAction +delegate cmd: /usr/local/bin/docker exec interchain-security-instance interchain-security-pd tx staking delegate cosmosvaloper19pe9pg5dv9k5fzgzmsrgnw9rl9asf7ddtrgtng 11000000stake --from validatoralice --chain-id provi --home /provi/validatoralice --node tcp://7.7.7.4:26658 --keyring-backend test -b block -y +running misbehaviour: step 9 == relayPacketsAction +running misbehaviour: step 10 == forkConsumerChainAction +forkConsumerChain - reconfigure node cmd: /usr/local/bin/docker exec interchain-security-instance /bin/bash /testnet-scripts/fork-consumer.sh interchain-security-cd alice consu 7.7.8 7.7.7 pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear /root/.hermes/config_fork.toml +fork consumer validator : + BIN=interchain-security-cd +fork consumer validator : + VAL_ID=alice +fork consumer validator : + CHAIN_ID=consu +fork consumer validator : + CONS_CHAIN_PREFIX=7.7.8 +fork consumer validator : + PROV_CHAIN_PREFIX=7.7.7 +fork consumer validator : + VAL_MNEMONIC='pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear' +fork consumer validator : + FORK_HERMES_CONFIG=/root/.hermes/config_fork.toml +fork consumer validator : + FORK_NODE_DIR=/consu/validatorfork +fork consumer validator : + mkdir /consu/validatorfork +fork consumer validator : + cp -r /consu/validatoralice/config /consu/validatoralice/data /consu/validatoralice/keyring-test /consu/validatoralice/logs /consu/validatorfork +fork consumer validator : + rm -f /consu/validatorfork/addrbook.json +fork consumer validator : + tee /root/.hermes/config_fork.toml +fork consumer validator : [global] +fork consumer validator : log_level = "debug" +fork consumer validator : +fork consumer validator : [mode] +fork consumer validator : +fork consumer validator : [mode.clients] +fork consumer validator : enabled = true +fork consumer validator : refresh = true +fork consumer validator : misbehaviour = true +fork consumer validator : +fork consumer validator : [mode.connections] +fork consumer validator : enabled = false +fork consumer validator : +fork consumer validator : [mode.channels] +fork consumer validator : enabled = false +fork consumer validator : +fork consumer validator : [mode.packets] +fork consumer validator : enabled = true +fork consumer validator : +fork consumer validator : [[chains]] +fork consumer validator : id = "consu" +fork consumer validator : ccv_consumer_chain = true +fork consumer validator : account_prefix = "cosmos" +fork consumer validator : clock_drift = "5s" +fork consumer validator : gas_multiplier = 1.1 +fork consumer validator : grpc_addr = "tcp://7.7.8.252:9091" +fork consumer validator : key_name = "query" +fork consumer validator : max_gas = 2000000 +fork consumer validator : rpc_addr = "http://7.7.8.252:26658" +fork consumer validator : rpc_timeout = "10s" +fork consumer validator : store_prefix = "ibc" +fork consumer validator : trusting_period = "2days" +fork consumer validator : websocket_addr = "ws://7.7.8.252:26658/websocket" +fork consumer validator : +fork consumer validator : [chains.gas_price] +fork consumer validator : denom = "stake" +fork consumer validator : price = 0.00 +fork consumer validator : +fork consumer validator : [chains.trust_threshold] +fork consumer validator : denominator = "3" +fork consumer validator : numerator = "1" +fork consumer validator : +fork consumer validator : [[chains]] +fork consumer validator : id = "provi" +fork consumer validator : account_prefix = "cosmos" +fork consumer validator : clock_drift = "5s" +fork consumer validator : gas_multiplier = 1.1 +fork consumer validator : grpc_addr = "tcp://7.7.7.4:9091" +fork consumer validator : key_name = "query" +fork consumer validator : max_gas = 2000000 +fork consumer validator : rpc_addr = "http://7.7.7.4:26658" +fork consumer validator : rpc_timeout = "10s" +fork consumer validator : store_prefix = "ibc" +fork consumer validator : trusting_period = "2days" +fork consumer validator : websocket_addr = "ws://7.7.7.4:26658/websocket" +fork consumer validator : +fork consumer validator : [chains.gas_price] +fork consumer validator : denom = "stake" +fork consumer validator : price = 0.00 +fork consumer validator : +fork consumer validator : [chains.trust_threshold] +fork consumer validator : denominator = "3" +fork consumer validator : numerator = "1" +fork consumer validator : + echo pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear +fork consumer validator : + ip netns exec consu-sybil interchain-security-cd --home /consu/validatorfork --address tcp://7.7.8.252:26655 --rpc.laddr tcp://7.7.8.252:26658 --grpc.address 7.7.8.252:9091 --log_level info --p2p.laddr tcp://7.7.8.252:26656 --grpc-web.enable=false start +running misbehaviour: step 11 == startRelayerAction +started Hermes +running misbehaviour: step 12 == updateLightClientAction +=============== finished misbehaviour tests in 1m40.817256s =============== +=============== tearing down misbehaviour testRun =============== +TOTAL TIME ELAPSED: 2m28.504412625s diff --git a/tests/e2e/testnet-scripts/fork-consumer.sh b/tests/e2e/testnet-scripts/fork-consumer.sh index a08872a303..0bf96fcb79 100644 --- a/tests/e2e/testnet-scripts/fork-consumer.sh +++ b/tests/e2e/testnet-scripts/fork-consumer.sh @@ -99,18 +99,8 @@ EOF echo $VAL_MNEMONIC > mnemonic.txt -# Connecting new peers to Hermes relayer requires somehow to add the account keys again -# hermes keys add --mnemonic-file mnemonic.txt --chain consu --overwrite - -# sleep 1 - -hermes keys add --mnemonic-file mnemonic.txt --chain provi --overwrite - -sleep 1 - - -# Start validator forking the consumer chain by -# reuse the consumer sybil IP allocation +# Start the validator forking the consumer chain +# using the sybil IP allocation ip netns exec $CHAIN_ID-sybil $BIN \ --home $FORK_NODE_DIR \ --address tcp://$CONS_CHAIN_PREFIX.252:26655 \ From e79af1ebbd4f2a4d5460183020b31a8782c0abe6 Mon Sep 17 00:00:00 2001 From: Simon Noetzlin Date: Thu, 6 Jul 2023 15:45:24 +0200 Subject: [PATCH 24/33] remove log file --- output.log | 1215 ---------------------------------------------------- 1 file changed, 1215 deletions(-) delete mode 100644 output.log diff --git a/output.log b/output.log deleted file mode 100644 index a6fcfee86e..0000000000 --- a/output.log +++ /dev/null @@ -1,1215 +0,0 @@ -=============== building misbehaviour testRun =============== -startDocker: + CONTAINER_NAME=interchain-security-container -startDocker: + INSTANCE_NAME=interchain-security-instance -startDocker: + LOCAL_SDK_PATH=default -startDocker: + USE_GAIA_PROVIDER=false -startDocker: + USE_GAIA_TAG= -startDocker: + set +e -startDocker: + docker rm -f interchain-security-instance -startDocker: Error: No such container: interchain-security-instance -startDocker: + set -e -startDocker: + '[' -d ./cosmos-sdk ']' -startDocker: + [[ default != \d\e\f\a\u\l\t ]] -startDocker: + printf '\n\nUsing default sdk version\n\n\n' -startDocker: -startDocker: -startDocker: Using default sdk version -startDocker: -startDocker: -startDocker: + [[ false = \t\r\u\e ]] -startDocker: + printf '\n\nUsing ICS provider app as provider\n\n\n' -startDocker: -startDocker: -startDocker: Using ICS provider app as provider -startDocker: -startDocker: -startDocker: + docker build -f Dockerfile -t interchain-security-container . -startDocker: #1 [internal] load build definition from Dockerfile -startDocker: #1 sha256:604789e44fdefbf6a2dd97add254061623de5e810ef734b454eaad26b1b17035 -startDocker: #1 transferring dockerfile: 37B done -startDocker: #1 DONE 0.0s -startDocker: -startDocker: #2 [internal] load .dockerignore -startDocker: #2 sha256:a6a91216b943fbd1ec8d7a2718cffa89481ad20be8a239282297ba938665353d -startDocker: #2 transferring context: 2B done -startDocker: #2 DONE 0.0s -startDocker: -startDocker: #3 resolve image config for docker.io/docker/dockerfile:1 -startDocker: #3 sha256:5511bf222770ecb09bae16a5e9dc6ddaf6633b05719203c5e2b00644727cd62f -startDocker: #3 ... -startDocker: -startDocker: #4 [auth] docker/dockerfile:pull token for registry-1.docker.io -startDocker: #4 sha256:2d344823d8ee21eef1762bba24fd226d4bf4f3da25259e99ac9eb49d6e3e83ab -startDocker: #4 DONE 0.0s -startDocker: -startDocker: #3 resolve image config for docker.io/docker/dockerfile:1 -startDocker: #3 sha256:5511bf222770ecb09bae16a5e9dc6ddaf6633b05719203c5e2b00644727cd62f -startDocker: #3 DONE 1.3s -startDocker: -startDocker: #5 docker-image://docker.io/docker/dockerfile:1@sha256:39b85bbfa7536a5feceb7372a0817649ecb2724562a38360f4d6a7782a409b14 -startDocker: #5 sha256:9a158a4603558c8d1260a1837f34e5dcdc934c3e44e35af38132f4449f9ebf12 -startDocker: #5 CACHED -startDocker: -startDocker: #6 [internal] load build definition from Dockerfile -startDocker: #6 sha256:a63b93256cb6ed954f95b300797b968540e3f4a5ff2167243929fb5ab9ef1688 -startDocker: #6 DONE 0.0s -startDocker: -startDocker: #7 [internal] load .dockerignore -startDocker: #7 sha256:19eb6aa0ebe549a586fa466b986b6bdf048ead2e77f288d0357fc7acbd7f8ef6 -startDocker: #7 DONE 0.0s -startDocker: -startDocker: #12 [internal] load metadata for docker.io/informalofftermatt/gorelayer:nogas -startDocker: #12 sha256:30a212e25818399fd4de4628ba986abb3f9acfd2726260309d56d93987463b56 -startDocker: #12 ... -startDocker: -startDocker: #13 [auth] library/fedora:pull token for registry-1.docker.io -startDocker: #13 sha256:345423550f620a41155d9d62c5c908c31000562442585e89f3321fdbe93332c3 -startDocker: #13 DONE 0.0s -startDocker: -startDocker: #11 [internal] load metadata for docker.io/library/golang:1.19-alpine -startDocker: #11 sha256:db341117c17817e8ff2360c3624eceaf927c5431ea3a1010182351ebafcce418 -startDocker: #11 ... -startDocker: -startDocker: #14 [auth] library/golang:pull token for registry-1.docker.io -startDocker: #14 sha256:75bbb50a63355318c3918a33c2d87b1de50da14e632c4735ca9c59b663095b6a -startDocker: #14 DONE 0.0s -startDocker: -startDocker: #15 [auth] otacrew/hermes-ics:pull token for registry-1.docker.io -startDocker: #15 sha256:803bb594f550c4774b41e0d6fc8ffd77bb355ec62871833ff945f6a44be67739 -startDocker: #15 DONE 0.0s -startDocker: -startDocker: #16 [auth] informalofftermatt/gorelayer:pull token for registry-1.docker.io -startDocker: #16 sha256:e7abcff988820d001e3df0bdd1d70b33bfd259e435e33d3b39c73d09a3d055c8 -startDocker: #16 DONE 0.0s -startDocker: -startDocker: #17 [auth] informalofftermatt/cometmock:pull token for registry-1.docker.io -startDocker: #17 sha256:cde7de5d11268f14fcf526aa5378d79b5ae6424beb3382ef94ba73eda3fa3461 -startDocker: #17 DONE 0.0s -startDocker: -startDocker: #10 [internal] load metadata for docker.io/otacrew/hermes-ics:latest -startDocker: #10 sha256:1619a8f499c95bd5af09b73b1d3a2ab9c6d7d6780852f9a079269b6c182f3235 -startDocker: #10 ... -startDocker: -startDocker: #8 [internal] load metadata for docker.io/library/fedora:36 -startDocker: #8 sha256:73cd5a5ed47fc791d26860a9f6452dd61c51470638f517e9fa5cdca15792d916 -startDocker: #8 DONE 1.5s -startDocker: -startDocker: #9 [internal] load metadata for docker.io/informalofftermatt/cometmock:latest -startDocker: #9 sha256:a32af4bf747a6e3115819b8c6d8c80abeeab270d805016bddd63d8f85c61be0b -startDocker: #9 ... -startDocker: -startDocker: #11 [internal] load metadata for docker.io/library/golang:1.19-alpine -startDocker: #11 sha256:db341117c17817e8ff2360c3624eceaf927c5431ea3a1010182351ebafcce418 -startDocker: #11 DONE 1.9s -startDocker: -startDocker: #12 [internal] load metadata for docker.io/informalofftermatt/gorelayer:nogas -startDocker: #12 sha256:30a212e25818399fd4de4628ba986abb3f9acfd2726260309d56d93987463b56 -startDocker: #12 ... -startDocker: -startDocker: #10 [internal] load metadata for docker.io/otacrew/hermes-ics:latest -startDocker: #10 sha256:1619a8f499c95bd5af09b73b1d3a2ab9c6d7d6780852f9a079269b6c182f3235 -startDocker: #10 DONE 2.1s -startDocker: -startDocker: #12 [internal] load metadata for docker.io/informalofftermatt/gorelayer:nogas -startDocker: #12 sha256:30a212e25818399fd4de4628ba986abb3f9acfd2726260309d56d93987463b56 -startDocker: #12 DONE 2.2s -startDocker: -startDocker: #9 [internal] load metadata for docker.io/informalofftermatt/cometmock:latest -startDocker: #9 sha256:a32af4bf747a6e3115819b8c6d8c80abeeab270d805016bddd63d8f85c61be0b -startDocker: #9 DONE 2.2s -startDocker: -startDocker: #27 [is-builder 1/10] FROM docker.io/library/golang:1.19-alpine@sha256:470c8d0638c5b7007a6118baee531c30e0516a18e45b35bff1f8ab92cf8f896d -startDocker: #27 sha256:5223bfcab5806439b55371a6102f93203b8b4171a586251c641310088838642c -startDocker: #27 DONE 0.0s -startDocker: -startDocker: #21 [hermes-builder 1/1] FROM docker.io/otacrew/hermes-ics:latest@sha256:36806114ec58b4dca2173974f09d73cd4b9ff02d81ba882f6f152cba02bae139 -startDocker: #21 sha256:a9171665a53c60610d8881bfbfc46df6ba80ba890eb5fd04bd66c9cb7ae6622e -startDocker: #21 DONE 0.0s -startDocker: -startDocker: #25 [gorelayer-builder 1/1] FROM docker.io/informalofftermatt/gorelayer:nogas@sha256:07c8ccd57ade48a407be6e2f503e5f12bf6f5c61e8deafd402ff8c15b04ab8a1 -startDocker: #25 sha256:8a76aed9c101ebff920e322f3580b0413fc7630dafbf47400ab561109204de5c -startDocker: #25 DONE 0.0s -startDocker: -startDocker: #18 [stage-4 1/12] FROM docker.io/library/fedora:36@sha256:64cd00a0e2b92d527c0a0954162a73e85f160e3a53c38325b51e87d6aab4e266 -startDocker: #18 sha256:5031400c012ded166194f592f4fbbc517b0a7051caa9252048f537694d4110e9 -startDocker: #18 DONE 0.0s -startDocker: -startDocker: #23 [cometmock-builder 1/1] FROM docker.io/informalofftermatt/cometmock:latest@sha256:c8f54f54b14fda1ffa737fb6ab02fe3b8423cfc308f99bdace7539f920a14682 -startDocker: #23 sha256:5b578f98ce1950c9b6ae50ca290be9f6ee3a5b7249a23285ac729337998afa36 -startDocker: #23 DONE 0.0s -startDocker: -startDocker: #29 [internal] load build context -startDocker: #29 sha256:e24e809151049144d7746f068858d6bd02e1b9ab87aa76ec9891180df317089e -startDocker: #29 transferring context: 6.72MB 0.7s done -startDocker: #29 DONE 0.8s -startDocker: -startDocker: #28 [is-builder 2/10] RUN apk add --no-cache curl make git libc-dev bash gcc linux-headers -startDocker: #28 sha256:fc221a60c9fdcdff81c09910439fb67a92187557122616a1e063d42019cb7b7a -startDocker: #28 CACHED -startDocker: -startDocker: #30 [is-builder 3/10] COPY go.mod /go.mod -startDocker: #30 sha256:81221ca3eaedec795bc8e82f11d4b3fe4d8c08a7330c61d62ff0b9574def631e -startDocker: #30 CACHED -startDocker: -startDocker: #31 [is-builder 4/10] COPY go.sum /go.sum -startDocker: #31 sha256:eb2c409650fb516a2d904aaf777a75be1bd7c44176cd2f08c16c80029193fabf -startDocker: #31 CACHED -startDocker: -startDocker: #32 [is-builder 5/10] RUN go mod download -startDocker: #32 sha256:aa181ddcc677349350511fbc343e4f7c038625d951fd72125ed98d7037340118 -startDocker: #32 CACHED -startDocker: -startDocker: #33 [is-builder 6/10] ADD . /interchain-security -startDocker: #33 sha256:7f74c20ebdf2b3a21ad65b325af107c303810e0d52cb05519ce96d36c2123db0 -startDocker: #33 DONE 5.2s -startDocker: -startDocker: #34 [is-builder 7/10] WORKDIR /interchain-security -startDocker: #34 sha256:bc2b67e8c61a62aa224034431cc91ef875819fb0f1ef58a6576b5f5250fb4d8d -startDocker: #34 DONE 0.1s -startDocker: -startDocker: #35 [is-builder 8/10] RUN if [ -d "./cosmos-sdk" ]; then go mod edit -replace github.com/cosmos/cosmos-sdk=./cosmos-sdk; fi -startDocker: #35 sha256:11d8f2d4a0e47a82e838a86fc8a155a449ee9f3132b398f6b9c7f00f48a83b34 -startDocker: #35 DONE 0.1s -startDocker: -startDocker: #36 [is-builder 9/10] RUN go mod tidy -startDocker: #36 sha256:b36cdd4126a91860927fa6f04e5185afee360d5c5b6d52befaa0c04bd1712985 -startDocker: #36 1.196 go: downloading github.com/otiai10/copy v1.6.0 -startDocker: #36 1.196 go: downloading github.com/frankban/quicktest v1.14.4 -startDocker: #36 1.270 go: downloading gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c -startDocker: #36 1.305 go: downloading github.com/google/go-cmp v0.5.9 -startDocker: #36 1.380 go: downloading github.com/pascaldekloe/goe v0.1.0 -startDocker: #36 1.383 go: downloading github.com/btcsuite/btcd/btcutil v1.1.2 -startDocker: #36 1.399 go: downloading github.com/jhump/protoreflect v1.13.1-0.20220928232736-101791cb1b4c -startDocker: #36 1.419 go: downloading github.com/btcsuite/btcd v0.22.1 -startDocker: #36 1.457 go: downloading github.com/facebookgo/ensure v0.0.0-20200202191622-63f1cf65ac4c -startDocker: #36 1.543 go: downloading github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1 -startDocker: #36 1.576 go: downloading github.com/fortytw2/leaktest v1.3.0 -startDocker: #36 1.703 go: downloading github.com/regen-network/gocuke v0.6.2 -startDocker: #36 1.712 go: downloading gotest.tools/v3 v3.4.0 -startDocker: #36 1.745 go: downloading gotest.tools v2.2.0+incompatible -startDocker: #36 1.778 go: downloading github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f -startDocker: #36 1.783 go: downloading github.com/adlio/schema v1.3.3 -startDocker: #36 1.784 go: downloading github.com/ory/dockertest v3.3.5+incompatible -startDocker: #36 1.801 go: downloading github.com/stretchr/objx v0.5.0 -startDocker: #36 1.840 go: downloading github.com/decred/dcrd/crypto/blake256 v1.0.0 -startDocker: #36 1.841 go: downloading github.com/facebookgo/stack v0.0.0-20160209184415-751773369052 -startDocker: #36 1.842 go: downloading github.com/facebookgo/subset v0.0.0-20200203212716-c811ad88dec4 -startDocker: #36 1.844 go: downloading github.com/VividCortex/gohistogram v1.0.0 -startDocker: #36 1.856 go: downloading github.com/cockroachdb/apd/v3 v3.1.0 -startDocker: #36 1.856 go: downloading github.com/cucumber/common/gherkin/go/v22 v22.0.0 -startDocker: #36 1.857 go: downloading github.com/cucumber/common/messages/go/v17 v17.1.1 -startDocker: #36 1.858 go: downloading pgregory.net/rapid v0.5.3 -startDocker: #36 1.878 go: downloading golang.org/x/sync v0.1.0 -startDocker: #36 1.890 go: downloading github.com/gin-gonic/gin v1.8.1 -startDocker: #36 1.910 go: downloading github.com/OneOfOne/xxhash v1.2.2 -startDocker: #36 1.911 go: downloading github.com/spaolacci/murmur3 v1.1.0 -startDocker: #36 1.912 go: downloading github.com/nxadm/tail v1.4.8 -startDocker: #36 1.925 go: downloading github.com/cenkalti/backoff v2.2.1+incompatible -startDocker: #36 1.926 go: downloading github.com/Microsoft/go-winio v0.6.0 -startDocker: #36 1.929 go: downloading github.com/docker/go-units v0.5.0 -startDocker: #36 1.940 go: downloading github.com/alecthomas/participle/v2 v2.0.0-alpha7 -startDocker: #36 1.951 go: downloading github.com/gofrs/uuid v4.3.0+incompatible -startDocker: #36 1.967 go: downloading gonum.org/v1/gonum v0.8.2 -startDocker: #36 1.973 go: downloading github.com/gobwas/httphead v0.1.0 -startDocker: #36 1.974 go: downloading github.com/gobwas/pool v0.2.1 -startDocker: #36 1.988 go: downloading github.com/gin-contrib/sse v0.1.0 -startDocker: #36 1.988 go: downloading gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 -startDocker: #36 1.997 go: downloading github.com/sirupsen/logrus v1.9.0 -startDocker: #36 2.002 go: downloading github.com/opencontainers/runc v1.1.3 -startDocker: #36 2.002 go: downloading github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5 -startDocker: #36 2.018 go: downloading github.com/opencontainers/image-spec v1.1.0-rc2 -startDocker: #36 2.027 go: downloading golang.org/x/tools v0.4.0 -startDocker: #36 2.080 go: downloading github.com/go-errors/errors v1.4.2 -startDocker: #36 2.090 go: downloading github.com/pingcap/errors v0.11.4 -startDocker: #36 2.218 go: downloading github.com/go-playground/validator/v10 v10.11.1 -startDocker: #36 2.220 go: downloading github.com/ugorji/go/codec v1.2.7 -startDocker: #36 2.347 go: downloading github.com/ugorji/go v1.1.7 -startDocker: #36 2.355 go: downloading github.com/goccy/go-json v0.9.11 -startDocker: #36 2.359 go: downloading github.com/json-iterator/go v1.1.12 -startDocker: #36 2.395 go: downloading github.com/docker/go-connections v0.4.0 -startDocker: #36 2.399 go: downloading github.com/containerd/continuity v0.3.0 -startDocker: #36 2.411 go: downloading github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 -startDocker: #36 2.413 go: downloading github.com/opencontainers/go-digest v1.0.0 -startDocker: #36 2.427 go: downloading github.com/go-playground/universal-translator v0.18.0 -startDocker: #36 2.429 go: downloading github.com/leodido/go-urn v1.2.1 -startDocker: #36 2.430 go: downloading github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd -startDocker: #36 2.444 go: downloading github.com/modern-go/reflect2 v1.0.2 -startDocker: #36 2.445 go: downloading github.com/go-playground/locales v0.14.0 -startDocker: #36 2.489 go: downloading golang.org/x/mod v0.7.0 -startDocker: #36 DONE 3.3s -startDocker: -startDocker: #37 [is-builder 10/10] RUN make install -startDocker: #37 sha256:99cd3210764060d55710862281626a89d6501bf467b1fd30ef92daeb77f8dd99 -startDocker: #37 0.318 export GOFLAGS='-buildmode=pie' -startDocker: #37 0.319 export CGO_CPPFLAGS="-D_FORTIFY_SOURCE=2" -startDocker: #37 0.319 export CGO_LDFLAGS="-Wl,-z,relro,-z,now -fstack-protector" -startDocker: #37 0.320 go install ./cmd/interchain-security-pd -startDocker: #37 26.69 go install ./cmd/interchain-security-cd -startDocker: #37 28.97 go install ./cmd/interchain-security-cdd -startDocker: #37 31.19 go install ./cmd/interchain-security-sd -startDocker: #37 DONE 33.4s -startDocker: -startDocker: #24 [stage-4 5/12] COPY --from=cometmock-builder /usr/local/bin/cometmock /usr/local/bin/cometmock -startDocker: #24 sha256:4faacbe52af399143e4464c8eff9225096d035b7b2163a40ece5160b230b2d8d -startDocker: #24 CACHED -startDocker: -startDocker: #40 [stage-4 9/12] COPY --from=is-builder /go/bin/interchain-security-cdd /usr/local/bin/interchain-security-cdd -startDocker: #40 sha256:fdfc304213cac7c2141267ca4c395a63f35dc903e11ea9c835b2b96a2aae8cea -startDocker: #40 CACHED -startDocker: -startDocker: #20 [stage-4 3/12] RUN dnf install -y which iproute iputils procps-ng vim-minimal tmux net-tools htop jq -startDocker: #20 sha256:181d17ee3af8a58f0fd82482bf68a5ac818d63f17d17b4bf9b1c7b02fc110d92 -startDocker: #20 CACHED -startDocker: -startDocker: #22 [stage-4 4/12] COPY --from=hermes-builder /usr/bin/hermes /usr/local/bin/ -startDocker: #22 sha256:cb1015a05795e8b3c9413ebf6489c2ab6b572a54b12f0948b0e88301fc3d63c6 -startDocker: #22 CACHED -startDocker: -startDocker: #38 [stage-4 7/12] COPY --from=is-builder /go/bin/interchain-security-pd /usr/local/bin/interchain-security-pd -startDocker: #38 sha256:e2c9be27e1187864cbd099ff98358466986c1ca238767742b8fe4671785f55f8 -startDocker: #38 CACHED -startDocker: -startDocker: #39 [stage-4 8/12] COPY --from=is-builder /go/bin/interchain-security-cd /usr/local/bin/interchain-security-cd -startDocker: #39 sha256:0183ab65ddb36a37a144bad652dfd76fe4d401974b199fbfbab5464d00c5f00a -startDocker: #39 CACHED -startDocker: -startDocker: #19 [stage-4 2/12] RUN dnf update -y -startDocker: #19 sha256:48c74673a1005785b4cbb054320b87b03cc31318dddcee6c7aa71b73052f2fe4 -startDocker: #19 CACHED -startDocker: -startDocker: #26 [stage-4 6/12] COPY --from=gorelayer-builder /bin/rly /usr/local/bin/ -startDocker: #26 sha256:7d396d0a9b2aa5963565510ac65d26ec8583051ab3066d77baabd0b2deeb2bd3 -startDocker: #26 CACHED -startDocker: -startDocker: #41 [stage-4 10/12] COPY --from=is-builder /go/bin/interchain-security-sd /usr/local/bin/interchain-security-sd -startDocker: #41 sha256:89b48ad7749c0e5baaaa2860c1e449b4f0276bc213139ebd39948d083af7b358 -startDocker: #41 CACHED -startDocker: -startDocker: #42 [stage-4 11/12] ADD ./tests/e2e/testnet-scripts /testnet-scripts -startDocker: #42 sha256:4459f5721261de8968f694df2df3227e651519cf56866f84158d89e33499f985 -startDocker: #42 DONE 0.0s -startDocker: -startDocker: #43 [stage-4 12/12] ADD ./tests/e2e/testnet-scripts/hermes-config.toml /root/.hermes/config.toml -startDocker: #43 sha256:4e74d5e7e4fe21e5e500cb7db68b8fad5a7c99d932f0e2a21f34f97bde9200f9 -startDocker: #43 DONE 0.0s -startDocker: -startDocker: #44 exporting to image -startDocker: #44 sha256:e8c613e07b0b7ff33893b694f7759a10d42e180f2b4dc349fb57dc6b71dcab00 -startDocker: #44 exporting layers 0.0s done -startDocker: #44 writing image sha256:c42e913f32a8e5d1ba19c48fa1e05d4778192821838abd51b285f2ba098577f9 done -startDocker: #44 naming to docker.io/library/interchain-security-container done -startDocker: #44 DONE 0.0s -startDocker: + rm -rf ./cosmos-sdk/ -startDocker: + docker run --name interchain-security-instance --cap-add=NET_ADMIN --privileged interchain-security-container /bin/bash /testnet-scripts/beacon.sh -startDocker: beacon!!!!!!!!!! -=============== started misbehaviour tests =============== -running misbehaviour: step 1 == StartChainAction -startChain: + BIN=interchain-security-pd -startChain: + VALIDATORS='[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' -startChain: + CHAIN_ID=provi -startChain: + CHAIN_IP_PREFIX=7.7.7 -startChain: + GENESIS_TRANSFORM='.app_state.gov.voting_params.voting_period = "20s" | .app_state.slashing.params.signed_blocks_window = "10" | .app_state.slashing.params.min_signed_per_window = "0.500000000000000000" | .app_state.slashing.params.downtime_jail_duration = "2s" | .app_state.slashing.params.slash_fraction_downtime = "0.010000000000000000" | .app_state.provider.params.slash_meter_replenish_fraction = "1.0" | .app_state.provider.params.slash_meter_replenish_period = "3s"' -startChain: + SKIP_GENTX=false -startChain: + TENDERMINT_CONFIG_TRANSFORM='s/timeout_commit = "5s"/timeout_commit = "1s"/;s/peer_gossip_sleep_duration = "100ms"/peer_gossip_sleep_duration = "50ms"/;s/fast_sync = true/fast_sync = false/;' -startChain: + USE_COMETMOCK=false -startChain: + NODE_LISTEN_ADDR_STR= -startChain: + NODE_HOMES= -startChain: ++ jq '. | length' -startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' -startChain: + NODES=2 -startChain: + ip link add name virtual-bridge type bridge -startChain: ++ seq 0 1 -startChain: + for i in $(seq 0 $(($NODES - 1))) -startChain: ++ jq -r '.[0].val_id' -startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' -startChain: + VAL_ID=alice -startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' -startChain: ++ jq -r '.[0].ip_suffix' -startChain: + VAL_IP_SUFFIX=4 -startChain: + NET_NAMESPACE_NAME=provi-alice -startChain: + IP_ADDR=7.7.7.4/24 -startChain: + ip netns add provi-alice -startChain: + ip link add provi-alice-in type veth peer name provi-alice-out -startChain: + ip link set provi-alice-in netns provi-alice -startChain: + ip netns exec provi-alice ip addr add 7.7.7.4/24 dev provi-alice-in -startChain: + ip link set provi-alice-out master virtual-bridge -startChain: + for i in $(seq 0 $(($NODES - 1))) -startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' -startChain: ++ jq -r '.[1].val_id' -startChain: + VAL_ID=bob -startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' -startChain: ++ jq -r '.[1].ip_suffix' -startChain: + VAL_IP_SUFFIX=5 -startChain: + NET_NAMESPACE_NAME=provi-bob -startChain: + IP_ADDR=7.7.7.5/24 -startChain: + ip netns add provi-bob -startChain: + ip link add provi-bob-in type veth peer name provi-bob-out -startChain: + ip link set provi-bob-in netns provi-bob -startChain: + ip netns exec provi-bob ip addr add 7.7.7.5/24 dev provi-bob-in -startChain: + ip link set provi-bob-out master virtual-bridge -startChain: + ip link set virtual-bridge up -startChain: ++ seq 0 1 -startChain: + for i in $(seq 0 $(($NODES - 1))) -startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' -startChain: ++ jq -r '.[0].val_id' -startChain: + VAL_ID=alice -startChain: + NET_NAMESPACE_NAME=provi-alice -startChain: + ip link set provi-alice-out up -startChain: + ip netns exec provi-alice ip link set dev provi-alice-in up -startChain: + ip netns exec provi-alice ip link set dev lo up -startChain: + for i in $(seq 0 $(($NODES - 1))) -startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' -startChain: ++ jq -r '.[1].val_id' -startChain: + VAL_ID=bob -startChain: + NET_NAMESPACE_NAME=provi-bob -startChain: + ip link set provi-bob-out up -startChain: + ip netns exec provi-bob ip link set dev provi-bob-in up -startChain: + ip netns exec provi-bob ip link set dev lo up -startChain: + BRIDGE_IP=7.7.7.254/24 -startChain: + ip addr add 7.7.7.254/24 dev virtual-bridge -startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' -startChain: ++ jq -r '.[0].val_id' -startChain: + FIRST_VAL_ID=alice -startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' -startChain: ++ jq -r '.[0].ip_suffix' -startChain: + FIRST_VAL_IP_SUFFIX=4 -startChain: + echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' -startChain: + interchain-security-pd init --home /provi/validatoralice --chain-id=provi validatoralice --recover -startChain: + jq -r '.[0].mnemonic' -startChain: {"app_message":{"auth":{"accounts":[],"params":{"max_memo_characters":"256","sig_verify_cost_ed25519":"590","sig_verify_cost_secp256k1":"1000","tx_sig_limit":"7","tx_size_cost_per_byte":"10"}},"bank":{"balances":[],"denom_metadata":[],"params":{"default_send_enabled":true,"send_enabled":[]},"supply":[]},"capability":{"index":"1","owners":[]},"crisis":{"constant_fee":{"amount":"1000","denom":"stake"}},"distribution":{"delegator_starting_infos":[],"delegator_withdraw_infos":[],"fee_pool":{"community_pool":[]},"outstanding_rewards":[],"params":{"base_proposer_reward":"0.010000000000000000","bonus_proposer_reward":"0.040000000000000000","community_tax":"0.020000000000000000","withdraw_addr_enabled":true},"previous_proposer":"","validator_accumulated_commissions":[],"validator_current_rewards":[],"validator_historical_rewards":[],"validator_slash_events":[]},"evidence":{"evidence":[]},"genutil":{"gen_txs":[]},"gov":{"deposit_params":{"max_deposit_period":"172800s","min_deposit":[{"amount":"10000000","denom":"stake"}]},"deposits":[],"proposals":[],"starting_proposal_id":"1","tally_params":{"quorum":"0.334000000000000000","threshold":"0.500000000000000000","veto_threshold":"0.334000000000000000"},"votes":[],"voting_params":{"voting_period":"172800s"}},"ibc":{"channel_genesis":{"ack_sequences":[],"acknowledgements":[],"channels":[],"commitments":[],"next_channel_sequence":"0","receipts":[],"recv_sequences":[],"send_sequences":[]},"client_genesis":{"clients":[],"clients_consensus":[],"clients_metadata":[],"create_localhost":false,"next_client_sequence":"0","params":{"allowed_clients":["06-solomachine","07-tendermint"]}},"connection_genesis":{"client_connection_paths":[],"connections":[],"next_connection_sequence":"0","params":{"max_expected_time_per_block":"30000000000"}}},"mint":{"minter":{"annual_provisions":"0.000000000000000000","inflation":"0.130000000000000000"},"params":{"blocks_per_year":"6311520","goal_bonded":"0.670000000000000000","inflation_max":"0.200000000000000000","inflation_min":"0.070000000000000000","inflation_rate_change":"0.130000000000000000","mint_denom":"stake"}},"params":null,"provider":{"consumer_addition_proposals":[],"consumer_addrs_to_prune":[],"consumer_removal_proposals":[],"consumer_states":[],"mature_unbonding_ops":null,"params":{"ccv_timeout_period":"2419200s","consumer_reward_denom_registration_fee":{"amount":"10000000","denom":"stake"},"init_timeout_period":"604800s","max_throttled_packets":"100000","slash_meter_replenish_fraction":"0.05","slash_meter_replenish_period":"3600s","template_client":{"allow_update_after_expiry":true,"allow_update_after_misbehaviour":true,"chain_id":"","frozen_height":{"revision_height":"0","revision_number":"0"},"latest_height":{"revision_height":"0","revision_number":"0"},"max_clock_drift":"10s","proof_specs":[{"inner_spec":{"child_order":[0,1],"child_size":33,"empty_child":null,"hash":"SHA256","max_prefix_length":12,"min_prefix_length":4},"leaf_spec":{"hash":"SHA256","length":"VAR_PROTO","prefix":"AA==","prehash_key":"NO_HASH","prehash_value":"SHA256"},"max_depth":0,"min_depth":0},{"inner_spec":{"child_order":[0,1],"child_size":32,"empty_child":null,"hash":"SHA256","max_prefix_length":1,"min_prefix_length":1},"leaf_spec":{"hash":"SHA256","length":"VAR_PROTO","prefix":"AA==","prehash_key":"NO_HASH","prehash_value":"SHA256"},"max_depth":0,"min_depth":0}],"trust_level":{"denominator":"3","numerator":"1"},"trusting_period":"0s","unbonding_period":"0s","upgrade_path":["upgrade","upgradedIBCState"]},"trusting_period_fraction":"0.66","vsc_timeout_period":"3024000s"},"unbonding_ops":[],"validator_consumer_pubkeys":[],"validators_by_consumer_addr":[],"valset_update_id":"1","valset_update_id_to_height":[]},"slashing":{"missed_blocks":[],"params":{"downtime_jail_duration":"600s","min_signed_per_window":"0.500000000000000000","signed_blocks_window":"100","slash_fraction_double_sign":"0.050000000000000000","slash_fraction_downtime":"0.010000000000000000"},"signing_infos":[]},"staking":{"delegations":[],"exported":false,"last_total_power":"0","last_validator_powers":[],"params":{"bond_denom":"stake","historical_entries":10000,"max_entries":7,"max_validators":100,"unbonding_time":"1814400s"},"redelegations":[],"unbonding_delegations":[],"validators":[]},"transfer":{"denom_traces":[],"params":{"receive_enabled":true,"send_enabled":true},"port_id":"transfer"},"upgrade":{},"vesting":{}},"chain_id":"provi","gentxs_dir":"","moniker":"validatoralice","node_id":"a9062fce9ac64223aeff285292790283de59b0d0"} -startChain: + jq '.app_state.gov.voting_params.voting_period = "20s" | .app_state.slashing.params.signed_blocks_window = "10" | .app_state.slashing.params.min_signed_per_window = "0.500000000000000000" | .app_state.slashing.params.downtime_jail_duration = "2s" | .app_state.slashing.params.slash_fraction_downtime = "0.010000000000000000" | .app_state.provider.params.slash_meter_replenish_fraction = "1.0" | .app_state.provider.params.slash_meter_replenish_period = "3s"' /provi/validatoralice/config/genesis.json -startChain: + mv /provi/edited-genesis.json /provi/genesis.json -startChain: ++ seq 0 1 -startChain: + for i in $(seq 0 $(($NODES - 1))) -startChain: ++ jq -r '.[0].val_id' -startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' -startChain: + VAL_ID=alice -startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' -startChain: ++ jq -r '.[0].start_with_consumer_key' -startChain: + START_WITH_CONSUMER_KEY=true -startChain: + [[ provi != \p\r\o\v\i ]] -startChain: + echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' -startChain: + jq -r '.[0].mnemonic' -startChain: + interchain-security-pd keys add validatoralice --home /provi/validatoralice --keyring-backend test --recover -startChain: -startChain: + mv /provi/genesis.json /provi/validatoralice/config/genesis.json -startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' -startChain: ++ jq -r '.[0].allocation' -startChain: + ALLOCATION=10000000000stake -startChain: + interchain-security-pd add-genesis-account validatoralice 10000000000stake --home /provi/validatoralice --keyring-backend test -startChain: + mv /provi/validatoralice/config/genesis.json /provi/genesis.json -startChain: + for i in $(seq 0 $(($NODES - 1))) -startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' -startChain: ++ jq -r '.[1].val_id' -startChain: + VAL_ID=bob -startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' -startChain: ++ jq -r '.[1].start_with_consumer_key' -startChain: + START_WITH_CONSUMER_KEY=false -startChain: + [[ provi != \p\r\o\v\i ]] -startChain: + echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' -startChain: + jq -r '.[1].mnemonic' -startChain: + interchain-security-pd keys add validatorbob --home /provi/validatorbob --keyring-backend test --recover -startChain: -startChain: + mv /provi/genesis.json /provi/validatorbob/config/genesis.json -startChain: ++ jq -r '.[1].allocation' -startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' -startChain: + ALLOCATION=10000000000stake -startChain: + interchain-security-pd add-genesis-account validatorbob 10000000000stake --home /provi/validatorbob --keyring-backend test -startChain: + mv /provi/validatorbob/config/genesis.json /provi/genesis.json -startChain: ++ seq 0 1 -startChain: + for i in $(seq 0 $(($NODES - 1))) -startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' -startChain: ++ jq -r '.[0].val_id' -startChain: + VAL_ID=alice -startChain: + cp /provi/genesis.json /provi/validatoralice/config/genesis.json -startChain: + echo '{"height": "0","round": 0,"step": 0}' -startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' -startChain: ++ jq -r '.[0].start_with_consumer_key' -startChain: + START_WITH_CONSUMER_KEY=true -startChain: + [[ provi != \p\r\o\v\i ]] -startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' -startChain: ++ jq -r '.[0].priv_validator_key' -startChain: + PRIV_VALIDATOR_KEY='{"address":"06C0F3E47CC5C748269088DC2F36411D3AAA27C6","pub_key":{"type":"tendermint/PubKeyEd25519","value":"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10="},"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ=="}}' -startChain: + [[ -n {"address":"06C0F3E47CC5C748269088DC2F36411D3AAA27C6","pub_key":{"type":"tendermint/PubKeyEd25519","value":"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10="},"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ=="}} ]] -startChain: + echo '{"address":"06C0F3E47CC5C748269088DC2F36411D3AAA27C6","pub_key":{"type":"tendermint/PubKeyEd25519","value":"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10="},"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ=="}}' -startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' -startChain: ++ jq -r '.[0].node_key' -startChain: + NODE_KEY='{"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA=="}}' -startChain: + [[ -n {"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA=="}} ]] -startChain: + echo '{"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA=="}}' -startChain: + '[' false = false ']' -startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' -startChain: ++ jq -r '.[0].stake' -startChain: + STAKE_AMOUNT=500000000stake -startChain: + interchain-security-pd gentx validatoralice 500000000stake --home /provi/validatoralice --keyring-backend test --moniker validatoralice --chain-id=provi -startChain: Genesis transaction written to "/provi/validatoralice/config/gentx/gentx-8339e14baab81c2a2350e261962263397a8d7fb0.json" -startChain: + '[' alice '!=' alice ']' -startChain: + '[' 's/timeout_commit = "5s"/timeout_commit = "1s"/;s/peer_gossip_sleep_duration = "100ms"/peer_gossip_sleep_duration = "50ms"/;s/fast_sync = true/fast_sync = false/;' '!=' '' ']' -startChain: + sed -i 's/timeout_commit = "5s"/timeout_commit = "1s"/;s/peer_gossip_sleep_duration = "100ms"/peer_gossip_sleep_duration = "50ms"/;s/fast_sync = true/fast_sync = false/;' provi/validatoralice/config/config.toml -startChain: + for i in $(seq 0 $(($NODES - 1))) -startChain: ++ jq -r '.[1].val_id' -startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' -startChain: + VAL_ID=bob -startChain: + cp /provi/genesis.json /provi/validatorbob/config/genesis.json -startChain: + echo '{"height": "0","round": 0,"step": 0}' -startChain: ++ jq -r '.[1].start_with_consumer_key' -startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' -startChain: + START_WITH_CONSUMER_KEY=false -startChain: + [[ provi != \p\r\o\v\i ]] -startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' -startChain: ++ jq -r '.[1].priv_validator_key' -startChain: + PRIV_VALIDATOR_KEY='{"address":"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF","pub_key":{"type":"tendermint/PubKeyEd25519","value":"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI="},"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g=="}}' -startChain: + [[ -n {"address":"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF","pub_key":{"type":"tendermint/PubKeyEd25519","value":"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI="},"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g=="}} ]] -startChain: + echo '{"address":"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF","pub_key":{"type":"tendermint/PubKeyEd25519","value":"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI="},"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g=="}}' -startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' -startChain: ++ jq -r '.[1].node_key' -startChain: + NODE_KEY='{"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw=="}}' -startChain: + [[ -n {"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw=="}} ]] -startChain: + echo '{"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw=="}}' -startChain: + '[' false = false ']' -startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' -startChain: ++ jq -r '.[1].stake' -startChain: + STAKE_AMOUNT=20000000stake -startChain: + interchain-security-pd gentx validatorbob 20000000stake --home /provi/validatorbob --keyring-backend test --moniker validatorbob --chain-id=provi -startChain: Genesis transaction written to "/provi/validatorbob/config/gentx/gentx-c14eeb0edbe700fde55583538420d12ac0c8d77c.json" -startChain: + '[' bob '!=' alice ']' -startChain: + cp /provi/validatorbob/config/gentx/gentx-c14eeb0edbe700fde55583538420d12ac0c8d77c.json /provi/validatoralice/config/gentx/ -startChain: + '[' 's/timeout_commit = "5s"/timeout_commit = "1s"/;s/peer_gossip_sleep_duration = "100ms"/peer_gossip_sleep_duration = "50ms"/;s/fast_sync = true/fast_sync = false/;' '!=' '' ']' -startChain: + sed -i 's/timeout_commit = "5s"/timeout_commit = "1s"/;s/peer_gossip_sleep_duration = "100ms"/peer_gossip_sleep_duration = "50ms"/;s/fast_sync = true/fast_sync = false/;' provi/validatorbob/config/config.toml -startChain: + '[' false = false ']' -startChain: + interchain-security-pd collect-gentxs --home /provi/validatoralice -startChain: {"app_message":{"auth":{"accounts":[{"@type":"/cosmos.auth.v1beta1.BaseAccount","account_number":"0","address":"cosmos19pe9pg5dv9k5fzgzmsrgnw9rl9asf7ddwhu7lm","pub_key":null,"sequence":"0"},{"@type":"/cosmos.auth.v1beta1.BaseAccount","account_number":"0","address":"cosmos1dkas8mu4kyhl5jrh4nzvm65qz588hy9qcz08la","pub_key":null,"sequence":"0"}],"params":{"max_memo_characters":"256","sig_verify_cost_ed25519":"590","sig_verify_cost_secp256k1":"1000","tx_sig_limit":"7","tx_size_cost_per_byte":"10"}},"bank":{"balances":[{"address":"cosmos19pe9pg5dv9k5fzgzmsrgnw9rl9asf7ddwhu7lm","coins":[{"amount":"10000000000","denom":"stake"}]},{"address":"cosmos1dkas8mu4kyhl5jrh4nzvm65qz588hy9qcz08la","coins":[{"amount":"10000000000","denom":"stake"}]}],"denom_metadata":[],"params":{"default_send_enabled":true,"send_enabled":[]},"supply":[{"amount":"20000000000","denom":"stake"}]},"capability":{"index":"1","owners":[]},"crisis":{"constant_fee":{"amount":"1000","denom":"stake"}},"distribution":{"delegator_starting_infos":[],"delegator_withdraw_infos":[],"fee_pool":{"community_pool":[]},"outstanding_rewards":[],"params":{"base_proposer_reward":"0.010000000000000000","bonus_proposer_reward":"0.040000000000000000","community_tax":"0.020000000000000000","withdraw_addr_enabled":true},"previous_proposer":"","validator_accumulated_commissions":[],"validator_current_rewards":[],"validator_historical_rewards":[],"validator_slash_events":[]},"evidence":{"evidence":[]},"genutil":{"gen_txs":[{"auth_info":{"fee":{"amount":[],"gas_limit":"200000","granter":"","payer":""},"signer_infos":[{"mode_info":{"single":{"mode":"SIGN_MODE_DIRECT"}},"public_key":{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"AsFC8tmbGGQSHthsVStbsQ13/+Yza9IT8KCSXXEN7y9f"},"sequence":"0"}]},"body":{"extension_options":[],"memo":"8339e14baab81c2a2350e261962263397a8d7fb0@7.7.7.254:26656","messages":[{"@type":"/cosmos.staking.v1beta1.MsgCreateValidator","commission":{"max_change_rate":"0.010000000000000000","max_rate":"0.200000000000000000","rate":"0.100000000000000000"},"delegator_address":"cosmos19pe9pg5dv9k5fzgzmsrgnw9rl9asf7ddwhu7lm","description":{"details":"","identity":"","moniker":"validatoralice","security_contact":"","website":""},"min_self_delegation":"1","pubkey":{"@type":"/cosmos.crypto.ed25519.PubKey","key":"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10="},"validator_address":"cosmosvaloper19pe9pg5dv9k5fzgzmsrgnw9rl9asf7ddtrgtng","value":{"amount":"500000000","denom":"stake"}}],"non_critical_extension_options":[],"timeout_height":"0"},"signatures":["D06i2qqq2HathlT7cy+PDLTDuYKAmzw5Ne+Ehvzr9bVy3jpm2h8deDGeSXTSrhdP04UpFXerSn+zIPth5TKNrg=="]},{"auth_info":{"fee":{"amount":[],"gas_limit":"200000","granter":"","payer":""},"signer_infos":[{"mode_info":{"single":{"mode":"SIGN_MODE_DIRECT"}},"public_key":{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"ArCv6pseaIkP8SbRqnT4kKylCz5mgAyhwXp8V1q/zU3p"},"sequence":"0"}]},"body":{"extension_options":[],"memo":"c14eeb0edbe700fde55583538420d12ac0c8d77c@7.7.7.254:26656","messages":[{"@type":"/cosmos.staking.v1beta1.MsgCreateValidator","commission":{"max_change_rate":"0.010000000000000000","max_rate":"0.200000000000000000","rate":"0.100000000000000000"},"delegator_address":"cosmos1dkas8mu4kyhl5jrh4nzvm65qz588hy9qcz08la","description":{"details":"","identity":"","moniker":"validatorbob","security_contact":"","website":""},"min_self_delegation":"1","pubkey":{"@type":"/cosmos.crypto.ed25519.PubKey","key":"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI="},"validator_address":"cosmosvaloper1dkas8mu4kyhl5jrh4nzvm65qz588hy9qakmjnw","value":{"amount":"20000000","denom":"stake"}}],"non_critical_extension_options":[],"timeout_height":"0"},"signatures":["sZhES43m+6IxbKNvrw6HQxLsEHWHsBInieGeJn8KRTI2yUo2TNDUZnqSnGnqBvklxcEu5PxzxEyojV4cxItXCQ=="]}]},"gov":{"deposit_params":{"max_deposit_period":"172800s","min_deposit":[{"amount":"10000000","denom":"stake"}]},"deposits":[],"proposals":[],"starting_proposal_id":"1","tally_params":{"quorum":"0.334000000000000000","threshold":"0.500000000000000000","veto_threshold":"0.334000000000000000"},"votes":[],"voting_params":{"voting_period":"20s"}},"ibc":{"channel_genesis":{"ack_sequences":[],"acknowledgements":[],"channels":[],"commitments":[],"next_channel_sequence":"0","receipts":[],"recv_sequences":[],"send_sequences":[]},"client_genesis":{"clients":[],"clients_consensus":[],"clients_metadata":[],"create_localhost":false,"next_client_sequence":"0","params":{"allowed_clients":["06-solomachine","07-tendermint"]}},"connection_genesis":{"client_connection_paths":[],"connections":[],"next_connection_sequence":"0","params":{"max_expected_time_per_block":"30000000000"}}},"mint":{"minter":{"annual_provisions":"0.000000000000000000","inflation":"0.130000000000000000"},"params":{"blocks_per_year":"6311520","goal_bonded":"0.670000000000000000","inflation_max":"0.200000000000000000","inflation_min":"0.070000000000000000","inflation_rate_change":"0.130000000000000000","mint_denom":"stake"}},"params":null,"provider":{"consumer_addition_proposals":[],"consumer_addrs_to_prune":[],"consumer_removal_proposals":[],"consumer_states":[],"mature_unbonding_ops":null,"params":{"ccv_timeout_period":"2419200s","consumer_reward_denom_registration_fee":{"amount":"10000000","denom":"stake"},"init_timeout_period":"604800s","max_throttled_packets":"100000","slash_meter_replenish_fraction":"1.0","slash_meter_replenish_period":"3s","template_client":{"allow_update_after_expiry":true,"allow_update_after_misbehaviour":true,"chain_id":"","frozen_height":{"revision_height":"0","revision_number":"0"},"latest_height":{"revision_height":"0","revision_number":"0"},"max_clock_drift":"10s","proof_specs":[{"inner_spec":{"child_order":[0,1],"child_size":33,"empty_child":null,"hash":"SHA256","max_prefix_length":12,"min_prefix_length":4},"leaf_spec":{"hash":"SHA256","length":"VAR_PROTO","prefix":"AA==","prehash_key":"NO_HASH","prehash_value":"SHA256"},"max_depth":0,"min_depth":0},{"inner_spec":{"child_order":[0,1],"child_size":32,"empty_child":null,"hash":"SHA256","max_prefix_length":1,"min_prefix_length":1},"leaf_spec":{"hash":"SHA256","length":"VAR_PROTO","prefix":"AA==","prehash_key":"NO_HASH","prehash_value":"SHA256"},"max_depth":0,"min_depth":0}],"trust_level":{"denominator":"3","numerator":"1"},"trusting_period":"0s","unbonding_period":"0s","upgrade_path":["upgrade","upgradedIBCState"]},"trusting_period_fraction":"0.66","vsc_timeout_period":"3024000s"},"unbonding_ops":[],"validator_consumer_pubkeys":[],"validators_by_consumer_addr":[],"valset_update_id":"1","valset_update_id_to_height":[]},"slashing":{"missed_blocks":[],"params":{"downtime_jail_duration":"2s","min_signed_per_window":"0.500000000000000000","signed_blocks_window":"10","slash_fraction_double_sign":"0.050000000000000000","slash_fraction_downtime":"0.010000000000000000"},"signing_infos":[]},"staking":{"delegations":[],"exported":false,"last_total_power":"0","last_validator_powers":[],"params":{"bond_denom":"stake","historical_entries":10000,"max_entries":7,"max_validators":100,"unbonding_time":"1814400s"},"redelegations":[],"unbonding_delegations":[],"validators":[]},"transfer":{"denom_traces":[],"params":{"receive_enabled":true,"send_enabled":true},"port_id":"transfer"},"upgrade":{},"vesting":{}},"chain_id":"provi","gentxs_dir":"/provi/validatoralice/config/gentx","moniker":"validatoralice","node_id":"8339e14baab81c2a2350e261962263397a8d7fb0"} -startChain: + cp /provi/validatoralice/config/genesis.json /provi/genesis.json -startChain: ++ seq 1 1 -startChain: + for i in $(seq 1 $(($NODES - 1))) -startChain: ++ jq -r '.[1].val_id' -startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' -startChain: + VAL_ID=bob -startChain: + cp /provi/genesis.json /provi/validatorbob/config/genesis.json -startChain: ++ seq 0 1 -startChain: + for i in $(seq 0 $(($NODES - 1))) -startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' -startChain: ++ jq -r '.[0].val_id' -startChain: + VAL_ID=alice -startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' -startChain: ++ jq -r '.[0].ip_suffix' -startChain: + VAL_IP_SUFFIX=4 -startChain: + NET_NAMESPACE_NAME=provi-alice -startChain: + NODE_HOME=/provi/validatoralice -startChain: + GAIA_HOME='--home /provi/validatoralice' -startChain: + NODE_HOMES=/provi/validatoralice, -startChain: + RPC_ADDRESS='--rpc.laddr tcp://7.7.7.4:26658' -startChain: + GRPC_ADDRESS='--grpc.address 7.7.7.4:9091' -startChain: + LISTEN_ADDRESS='--address tcp://7.7.7.4:26655' -startChain: + NODE_LISTEN_ADDR_STR=7.7.7.4:26655, -startChain: + P2P_ADDRESS='--p2p.laddr tcp://7.7.7.4:26656' -startChain: + LOG_LEVEL='--log_level info' -startChain: + ENABLE_WEBGRPC=--grpc-web.enable=false -startChain: + PERSISTENT_PEERS= -startChain: ++ seq 0 1 -startChain: + for j in $(seq 0 $(($NODES - 1))) -startChain: + '[' 0 -ne 0 ']' -startChain: + for j in $(seq 0 $(($NODES - 1))) -startChain: + '[' 0 -ne 1 ']' -startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' -startChain: ++ jq -r '.[1].val_id' -startChain: + PEER_VAL_ID=bob -startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' -startChain: ++ jq -r '.[1].ip_suffix' -startChain: + PEER_VAL_IP_SUFFIX=5 -startChain: ++ interchain-security-pd tendermint show-node-id --home /provi/validatorbob -startChain: + NODE_ID=c14eeb0edbe700fde55583538420d12ac0c8d77c -startChain: + ADDRESS=c14eeb0edbe700fde55583538420d12ac0c8d77c@7.7.7.5:26656 -startChain: + PERSISTENT_PEERS=,c14eeb0edbe700fde55583538420d12ac0c8d77c@7.7.7.5:26656 -startChain: + '[' ,c14eeb0edbe700fde55583538420d12ac0c8d77c@7.7.7.5:26656 '!=' '' ']' -startChain: + PERSISTENT_PEERS='--p2p.persistent_peers c14eeb0edbe700fde55583538420d12ac0c8d77c@7.7.7.5:26656' -startChain: + ARGS='--home /provi/validatoralice --address tcp://7.7.7.4:26655 --rpc.laddr tcp://7.7.7.4:26658 --grpc.address 7.7.7.4:9091 --log_level info --p2p.laddr tcp://7.7.7.4:26656 --grpc-web.enable=false --p2p.persistent_peers c14eeb0edbe700fde55583538420d12ac0c8d77c@7.7.7.5:26656' -startChain: + [[ false == \t\r\u\e ]] -startChain: + for i in $(seq 0 $(($NODES - 1))) -startChain: + ip netns exec provi-alice interchain-security-pd --home /provi/validatoralice --address tcp://7.7.7.4:26655 --rpc.laddr tcp://7.7.7.4:26658 --grpc.address 7.7.7.4:9091 --log_level info --p2p.laddr tcp://7.7.7.4:26656 --grpc-web.enable=false --p2p.persistent_peers c14eeb0edbe700fde55583538420d12ac0c8d77c@7.7.7.5:26656 start -startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' -startChain: ++ jq -r '.[1].val_id' -startChain: + VAL_ID=bob -startChain: ++ jq -r '.[1].ip_suffix' -startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' -startChain: + VAL_IP_SUFFIX=5 -startChain: + NET_NAMESPACE_NAME=provi-bob -startChain: + NODE_HOME=/provi/validatorbob -startChain: + GAIA_HOME='--home /provi/validatorbob' -startChain: + NODE_HOMES=/provi/validatorbob,/provi/validatoralice, -startChain: + RPC_ADDRESS='--rpc.laddr tcp://7.7.7.5:26658' -startChain: + GRPC_ADDRESS='--grpc.address 7.7.7.5:9091' -startChain: + LISTEN_ADDRESS='--address tcp://7.7.7.5:26655' -startChain: + NODE_LISTEN_ADDR_STR=7.7.7.5:26655,7.7.7.4:26655, -startChain: + P2P_ADDRESS='--p2p.laddr tcp://7.7.7.5:26656' -startChain: + LOG_LEVEL='--log_level info' -startChain: + ENABLE_WEBGRPC=--grpc-web.enable=false -startChain: + PERSISTENT_PEERS= -startChain: ++ seq 0 1 -startChain: + for j in $(seq 0 $(($NODES - 1))) -startChain: + '[' 1 -ne 0 ']' -startChain: ++ jq -r '.[0].val_id' -startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' -startChain: + PEER_VAL_ID=alice -startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' -startChain: ++ jq -r '.[0].ip_suffix' -startChain: + PEER_VAL_IP_SUFFIX=4 -startChain: ++ interchain-security-pd tendermint show-node-id --home /provi/validatoralice -startChain: + NODE_ID=8339e14baab81c2a2350e261962263397a8d7fb0 -startChain: + ADDRESS=8339e14baab81c2a2350e261962263397a8d7fb0@7.7.7.4:26656 -startChain: + PERSISTENT_PEERS=,8339e14baab81c2a2350e261962263397a8d7fb0@7.7.7.4:26656 -startChain: + for j in $(seq 0 $(($NODES - 1))) -startChain: + '[' 1 -ne 1 ']' -startChain: + '[' ,8339e14baab81c2a2350e261962263397a8d7fb0@7.7.7.4:26656 '!=' '' ']' -startChain: + PERSISTENT_PEERS='--p2p.persistent_peers 8339e14baab81c2a2350e261962263397a8d7fb0@7.7.7.4:26656' -startChain: + ARGS='--home /provi/validatorbob --address tcp://7.7.7.5:26655 --rpc.laddr tcp://7.7.7.5:26658 --grpc.address 7.7.7.5:9091 --log_level info --p2p.laddr tcp://7.7.7.5:26656 --grpc-web.enable=false --p2p.persistent_peers 8339e14baab81c2a2350e261962263397a8d7fb0@7.7.7.4:26656' -startChain: + [[ false == \t\r\u\e ]] -startChain: + SYBIL_NODE_ID=sybil -startChain: + SYBIL_IP_SUFFIX=252 -startChain: + SYBIL_NET_NAMESPACE_NAME=provi-sybil -startChain: + SYBIL_IP_ADDR=7.7.7.252/24 -startChain: + ip netns add provi-sybil -startChain: + ip netns exec provi-bob interchain-security-pd --home /provi/validatorbob --address tcp://7.7.7.5:26655 --rpc.laddr tcp://7.7.7.5:26658 --grpc.address 7.7.7.5:9091 --log_level info --p2p.laddr tcp://7.7.7.5:26656 --grpc-web.enable=false --p2p.persistent_peers 8339e14baab81c2a2350e261962263397a8d7fb0@7.7.7.4:26656 start -startChain: + ip link add provi-sybil-in type veth peer name provi-sybil-out -startChain: + ip link set provi-sybil-in netns provi-sybil -startChain: + ip netns exec provi-sybil ip addr add 7.7.7.252/24 dev provi-sybil-in -startChain: + ip link set provi-sybil-out master virtual-bridge -startChain: + ip link set provi-sybil-out up -startChain: + ip netns exec provi-sybil ip link set dev provi-sybil-in up -startChain: + ip netns exec provi-sybil ip link set dev lo up -startChain: + QUERY_NODE_ID=query -startChain: + QUERY_IP_SUFFIX=253 -startChain: + QUERY_NET_NAMESPACE_NAME=provi-query -startChain: + QUERY_IP_ADDR=7.7.7.253/24 -startChain: + ip netns add provi-query -startChain: + ip link add provi-query-in type veth peer name provi-query-out -startChain: + ip link set provi-query-in netns provi-query -startChain: + ip netns exec provi-query ip addr add 7.7.7.253/24 dev provi-query-in -startChain: + ip link set provi-query-out master virtual-bridge -startChain: + ip link set provi-query-out up -startChain: + ip netns exec provi-query ip link set dev provi-query-in up -startChain: + ip netns exec provi-query ip link set dev lo up -startChain: + interchain-security-pd init --home /provi/query --chain-id=provi query -startChain: {"app_message":{"auth":{"accounts":[],"params":{"max_memo_characters":"256","sig_verify_cost_ed25519":"590","sig_verify_cost_secp256k1":"1000","tx_sig_limit":"7","tx_size_cost_per_byte":"10"}},"bank":{"balances":[],"denom_metadata":[],"params":{"default_send_enabled":true,"send_enabled":[]},"supply":[]},"capability":{"index":"1","owners":[]},"crisis":{"constant_fee":{"amount":"1000","denom":"stake"}},"distribution":{"delegator_starting_infos":[],"delegator_withdraw_infos":[],"fee_pool":{"community_pool":[]},"outstanding_rewards":[],"params":{"base_proposer_reward":"0.010000000000000000","bonus_proposer_reward":"0.040000000000000000","community_tax":"0.020000000000000000","withdraw_addr_enabled":true},"previous_proposer":"","validator_accumulated_commissions":[],"validator_current_rewards":[],"validator_historical_rewards":[],"validator_slash_events":[]},"evidence":{"evidence":[]},"genutil":{"gen_txs":[]},"gov":{"deposit_params":{"max_deposit_period":"172800s","min_deposit":[{"amount":"10000000","denom":"stake"}]},"deposits":[],"proposals":[],"starting_proposal_id":"1","tally_params":{"quorum":"0.334000000000000000","threshold":"0.500000000000000000","veto_threshold":"0.334000000000000000"},"votes":[],"voting_params":{"voting_period":"172800s"}},"ibc":{"channel_genesis":{"ack_sequences":[],"acknowledgements":[],"channels":[],"commitments":[],"next_channel_sequence":"0","receipts":[],"recv_sequences":[],"send_sequences":[]},"client_genesis":{"clients":[],"clients_consensus":[],"clients_metadata":[],"create_localhost":false,"next_client_sequence":"0","params":{"allowed_clients":["06-solomachine","07-tendermint"]}},"connection_genesis":{"client_connection_paths":[],"connections":[],"next_connection_sequence":"0","params":{"max_expected_time_per_block":"30000000000"}}},"mint":{"minter":{"annual_provisions":"0.000000000000000000","inflation":"0.130000000000000000"},"params":{"blocks_per_year":"6311520","goal_bonded":"0.670000000000000000","inflation_max":"0.200000000000000000","inflation_min":"0.070000000000000000","inflation_rate_change":"0.130000000000000000","mint_denom":"stake"}},"params":null,"provider":{"consumer_addition_proposals":[],"consumer_addrs_to_prune":[],"consumer_removal_proposals":[],"consumer_states":[],"mature_unbonding_ops":null,"params":{"ccv_timeout_period":"2419200s","consumer_reward_denom_registration_fee":{"amount":"10000000","denom":"stake"},"init_timeout_period":"604800s","max_throttled_packets":"100000","slash_meter_replenish_fraction":"0.05","slash_meter_replenish_period":"3600s","template_client":{"allow_update_after_expiry":true,"allow_update_after_misbehaviour":true,"chain_id":"","frozen_height":{"revision_height":"0","revision_number":"0"},"latest_height":{"revision_height":"0","revision_number":"0"},"max_clock_drift":"10s","proof_specs":[{"inner_spec":{"child_order":[0,1],"child_size":33,"empty_child":null,"hash":"SHA256","max_prefix_length":12,"min_prefix_length":4},"leaf_spec":{"hash":"SHA256","length":"VAR_PROTO","prefix":"AA==","prehash_key":"NO_HASH","prehash_value":"SHA256"},"max_depth":0,"min_depth":0},{"inner_spec":{"child_order":[0,1],"child_size":32,"empty_child":null,"hash":"SHA256","max_prefix_length":1,"min_prefix_length":1},"leaf_spec":{"hash":"SHA256","length":"VAR_PROTO","prefix":"AA==","prehash_key":"NO_HASH","prehash_value":"SHA256"},"max_depth":0,"min_depth":0}],"trust_level":{"denominator":"3","numerator":"1"},"trusting_period":"0s","unbonding_period":"0s","upgrade_path":["upgrade","upgradedIBCState"]},"trusting_period_fraction":"0.66","vsc_timeout_period":"3024000s"},"unbonding_ops":[],"validator_consumer_pubkeys":[],"validators_by_consumer_addr":[],"valset_update_id":"1","valset_update_id_to_height":[]},"slashing":{"missed_blocks":[],"params":{"downtime_jail_duration":"600s","min_signed_per_window":"0.500000000000000000","signed_blocks_window":"100","slash_fraction_double_sign":"0.050000000000000000","slash_fraction_downtime":"0.010000000000000000"},"signing_infos":[]},"staking":{"delegations":[],"exported":false,"last_total_power":"0","last_validator_powers":[],"params":{"bond_denom":"stake","historical_entries":10000,"max_entries":7,"max_validators":100,"unbonding_time":"1814400s"},"redelegations":[],"unbonding_delegations":[],"validators":[]},"transfer":{"denom_traces":[],"params":{"receive_enabled":true,"send_enabled":true},"port_id":"transfer"},"upgrade":{},"vesting":{}},"chain_id":"provi","gentxs_dir":"","moniker":"query","node_id":"b474293bb567144cdaaa7135fd56c0f52da03160"} -startChain: + cp /provi/genesis.json /provi/query/config/genesis.json -startChain: + QUERY_GAIA_HOME='--home /provi/query' -startChain: + QUERY_RPC_ADDRESS='--rpc.laddr tcp://7.7.7.253:26658' -startChain: + QUERY_GRPC_ADDRESS='--grpc.address 7.7.7.253:9091' -startChain: + QUERY_LISTEN_ADDRESS='--address tcp://7.7.7.253:26655' -startChain: + QUERY_P2P_ADDRESS='--p2p.laddr tcp://7.7.7.253:26656' -startChain: + QUERY_LOG_LEVEL='--log_level info' -startChain: + QUERY_ENABLE_WEBGRPC=--grpc-web.enable=false -startChain: + QUERY_PERSISTENT_PEERS= -startChain: ++ seq 0 1 -startChain: + for j in $(seq 0 $(($NODES - 1))) -startChain: ++ jq -r '.[0].val_id' -startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' -startChain: + PEER_VAL_ID=alice -startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' -startChain: ++ jq -r '.[0].ip_suffix' -startChain: + PEER_VAL_IP_SUFFIX=4 -startChain: ++ interchain-security-pd tendermint show-node-id --home /provi/validatoralice -startChain: + NODE_ID=8339e14baab81c2a2350e261962263397a8d7fb0 -startChain: + ADDRESS=8339e14baab81c2a2350e261962263397a8d7fb0@7.7.7.4:26656 -startChain: + QUERY_PERSISTENT_PEERS=,8339e14baab81c2a2350e261962263397a8d7fb0@7.7.7.4:26656 -startChain: + for j in $(seq 0 $(($NODES - 1))) -startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' -startChain: ++ jq -r '.[1].val_id' -startChain: + PEER_VAL_ID=bob -startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true},{"mnemonic":"glass trip produce surprise diamond spin excess gaze wash drum human solve dress minor artefact canoe hard ivory orange dinner hybrid moral potato jewel","allocation":"10000000000stake","stake":"20000000stake","val_id":"bob","priv_validator_key":"{\"address\":\"99BD3A72EF12CD024E7584B3AC900AE3743C6ADF\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"QePcwfWtOavNK7pBJrtoLMzarHKn6iBWfWPFeyV+IdmYA3pFdjFIzgw0ZIiuJiJLuke7ABw4cNADL3/CeVLM4g==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TQ4vHcO/vKdzGtWpelkX53WdMQd4kTsWGFrdcatdXFvWyO215Rewn5IRP0FszPLWr2DqPzmuH8WvxYGk5aeOXw==\"}}","ip_suffix":"5","consumer_mnemonic":"grunt list hour endless observe better spoil penalty lab duck only layer vague fantasy satoshi record demise topple space shaft solar practice donor sphere","consumer_priv_validator_key":"{\"address\":\"E73388E246EC9945E5E70A94FE4072BD937415C4\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"QlG+iYe6AyYpvY1z9RNJKCVlH14Q/qSz4EjGdGCru3o=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"OFR4w+FC6EMw5fAGTrHVexyPrjzQ7QfqgZOMgVf0izlCUb6Jh7oDJim9jXP1E0koJWUfXhD+pLPgSMZ0YKu7eg==\"}}","start_with_consumer_key":false}]' -startChain: ++ jq -r '.[1].ip_suffix' -startChain: + PEER_VAL_IP_SUFFIX=5 -startChain: ++ interchain-security-pd tendermint show-node-id --home /provi/validatorbob -startChain: + NODE_ID=c14eeb0edbe700fde55583538420d12ac0c8d77c -startChain: + ADDRESS=c14eeb0edbe700fde55583538420d12ac0c8d77c@7.7.7.5:26656 -startChain: + QUERY_PERSISTENT_PEERS=,8339e14baab81c2a2350e261962263397a8d7fb0@7.7.7.4:26656,c14eeb0edbe700fde55583538420d12ac0c8d77c@7.7.7.5:26656 -startChain: + QUERY_PERSISTENT_PEERS='--p2p.persistent_peers 8339e14baab81c2a2350e261962263397a8d7fb0@7.7.7.4:26656,c14eeb0edbe700fde55583538420d12ac0c8d77c@7.7.7.5:26656' -startChain: + ARGS='--home /provi/query --address tcp://7.7.7.253:26655 --rpc.laddr tcp://7.7.7.253:26658 --grpc.address 7.7.7.253:9091 --log_level info --p2p.laddr tcp://7.7.7.253:26656 --grpc-web.enable=false --p2p.persistent_peers 8339e14baab81c2a2350e261962263397a8d7fb0@7.7.7.4:26656,c14eeb0edbe700fde55583538420d12ac0c8d77c@7.7.7.5:26656' -startChain: + [[ false != \t\r\u\e ]] -startChain: Node addresses: -startChain: 7.7.7.5:26655,7.7.7.4:26655, -startChain: Node homes: -startChain: /provi/validatorbob,/provi/validatoralice, -startChain: + echo 'Node addresses:' -startChain: + echo 7.7.7.5:26655,7.7.7.4:26655, -startChain: + echo 'Node homes:' -startChain: + echo /provi/validatorbob,/provi/validatoralice, -startChain: + NODE_LISTEN_ADDR_STR=7.7.7.5:26655,7.7.7.4:26655 -startChain: + NODE_HOMES=/provi/validatorbob,/provi/validatoralice -startChain: + [[ false == \t\r\u\e ]] -startChain: + [[ false == \t\r\u\e ]] -startChain: + set +e -startChain: + ip netns exec provi-query interchain-security-pd --home /provi/query --address tcp://7.7.7.253:26655 --rpc.laddr tcp://7.7.7.253:26658 --grpc.address 7.7.7.253:9091 --log_level info --p2p.laddr tcp://7.7.7.253:26656 --grpc-web.enable=false --p2p.persistent_peers 8339e14baab81c2a2350e261962263397a8d7fb0@7.7.7.4:26656,c14eeb0edbe700fde55583538420d12ac0c8d77c@7.7.7.5:26656 start -startChain: + interchain-security-pd query block --node tcp://7.7.7.253:26658 -startChain: + grep -q -v '{"block_id":{"hash":"","parts":{"total":0,"hash": -startChain: ""}},"block":null}' -startChain: Error: post failed: Post "http://7.7.7.253:26658": dial tcp 7.7.7.253:26658: connect: connection refused -startChain: Usage: -startChain: simd query block [height] [flags] -startChain: -startChain: Flags: -startChain: -h, --help help for block -startChain: -n, --node string Node to connect to (default "tcp://localhost:26657") -startChain: -startChain: Global Flags: -startChain: --chain-id string The network chain ID -startChain: --home string directory for config and data (default "/root/.interchain-security-p") -startChain: --log_format string The logging format (json|plain) (default "plain") -startChain: --log_level string The logging level (trace|debug|info|warn|error|fatal|panic) (default "info") -startChain: --trace print out full stack trace on errors -startChain: -startChain: + sleep 0.3 -startChain: + interchain-security-pd query block --node tcp://7.7.7.253:26658 -startChain: + grep -q -v '{"block_id":{"hash":"","parts":{"total":0,"hash": -startChain: ""}},"block":null}' -startChain: + sleep 0.3 -startChain: + interchain-security-pd query block --node tcp://7.7.7.253:26658 -startChain: + grep -q -v '{"block_id":{"hash":"","parts":{"total":0,"hash": -startChain: ""}},"block":null}' -startChain: + sleep 0.3 -startChain: + interchain-security-pd query block --node tcp://7.7.7.253:26658 -startChain: + grep -q -v '{"block_id":{"hash":"","parts":{"total":0,"hash": -startChain: ""}},"block":null}' -startChain: + sleep 0.3 -startChain: + interchain-security-pd query block --node tcp://7.7.7.253:26658 -startChain: + grep -q -v '{"block_id":{"hash":"","parts":{"total":0,"hash": -startChain: ""}},"block":null}' -startChain: + set -e -startChain: + echo 'done!!!!!!!!' -startChain: + read -p 'Press Return to Close...' -startChain: done!!!!!!!! -Add to hermes alice -pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear -running misbehaviour: step 2 == submitConsumerAdditionProposalAction -running misbehaviour: step 3 == assignConsumerPubKeyAction -assignConsumerPubKey cmd: /usr/local/bin/docker exec interchain-security-instance /bin/bash -c interchain-security-pd tx provider assign-consensus-key consu '{"@type":"/cosmos.crypto.ed25519.PubKey","key":"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes="}' --from validatoralice --chain-id provi --home /provi/validatoralice --node tcp://7.7.7.4:26658 --gas 900000 --keyring-backend test -b block -y -o json -running misbehaviour: step 4 == voteGovProposalAction -running misbehaviour: step 5 == startConsumerChainAction -startChain: + BIN=interchain-security-cd -startChain: + VALIDATORS='[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true}]' -startChain: + CHAIN_ID=consu -startChain: + CHAIN_IP_PREFIX=7.7.8 -startChain: + GENESIS_TRANSFORM='.app_state.gov.voting_params.voting_period = "20s" | .app_state.slashing.params.signed_blocks_window = "15" | .app_state.slashing.params.min_signed_per_window = "0.500000000000000000" | .app_state.slashing.params.downtime_jail_duration = "2s" | .app_state.slashing.params.slash_fraction_downtime = "0.010000000000000000" | .app_state.ccvconsumer = {"params":{"enabled":true,"blocks_per_distribution_transmission":"1000","distribution_transmission_channel":"","provider_fee_pool_addr_str":"","ccv_timeout_period":"2419200s","transfer_timeout_period":"3600s","consumer_redistribution_fraction":"0.75","historical_entries":"10000","unbonding_period":"1728000s","soft_opt_out_threshold":"0.05","reward_denoms":[],"provider_reward_denoms":[]},"provider_client_id":"","provider_channel_id":"","new_chain":true,"provider_client_state":{"chain_id":"provi","trust_level":{"numerator":"1","denominator":"3"},"trusting_period":"1197504s","unbonding_period":"1814400s","max_clock_drift":"10s","frozen_height":{"revision_number":"0","revision_height":"0"},"latest_height":{"revision_number":"0","revision_height":"24"},"proof_specs":[{"leaf_spec":{"hash":"SHA256","prehash_key":"NO_HASH","prehash_value":"SHA256","length":"VAR_PROTO","prefix":"AA=="},"inner_spec":{"child_order":[0,1],"child_size":33,"min_prefix_length":4,"max_prefix_length":12,"empty_child":null,"hash":"SHA256"},"max_depth":0,"min_depth":0},{"leaf_spec":{"hash":"SHA256","prehash_key":"NO_HASH","prehash_value":"SHA256","length":"VAR_PROTO","prefix":"AA=="},"inner_spec":{"child_order":[0,1],"child_size":32,"min_prefix_length":1,"max_prefix_length":1,"empty_child":null,"hash":"SHA256"},"max_depth":0,"min_depth":0}],"upgrade_path":["upgrade","upgradedIBCState"],"allow_update_after_expiry":true,"allow_update_after_misbehaviour":true},"provider_consensus_state":{"timestamp":"2023-07-06T13:41:25.239753303Z","root":{"hash":"dVV8g+F1rOzgI6Qi74lB5TWAQvICRA6VqJWv/8reEqc="},"next_validators_hash":"BBA977975C2E4EAC2961E3DF391D494C187A2B68842383C4E37E81ED78491952"},"maturing_packets":[],"initial_val_set":[{"pub_key":{"ed25519":"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes="},"power":"500"},{"pub_key":{"ed25519":"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI="},"power":"20"}],"height_to_valset_update_id":[],"outstanding_downtime_slashing":[],"pending_consumer_packets":{"list":[]},"last_transmission_block_height":{"height":"0"},"preCCV":false} -startChain: | .app_state.gov.voting_params.voting_period = "20s" | .app_state.slashing.params.signed_blocks_window = "15" | .app_state.slashing.params.min_signed_per_window = "0.500000000000000000" | .app_state.slashing.params.downtime_jail_duration = "2s" | .app_state.slashing.params.slash_fraction_downtime = "0.010000000000000000" | .app_state.ccvconsumer.params.soft_opt_out_threshold = "0.05"' -startChain: + SKIP_GENTX=true -startChain: + TENDERMINT_CONFIG_TRANSFORM='s/timeout_commit = "5s"/timeout_commit = "1s"/;s/peer_gossip_sleep_duration = "100ms"/peer_gossip_sleep_duration = "50ms"/;s/fast_sync = true/fast_sync = false/;' -startChain: + USE_COMETMOCK=false -startChain: + NODE_LISTEN_ADDR_STR= -startChain: + NODE_HOMES= -startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true}]' -startChain: ++ jq '. | length' -startChain: + NODES=1 -startChain: + ip link add name virtual-bridge type bridge -startChain: RTNETLINK answers: File exists -startChain: + true -startChain: ++ seq 0 0 -startChain: + for i in $(seq 0 $(($NODES - 1))) -startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true}]' -startChain: ++ jq -r '.[0].val_id' -startChain: + VAL_ID=alice -startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true}]' -startChain: ++ jq -r '.[0].ip_suffix' -startChain: + VAL_IP_SUFFIX=4 -startChain: + NET_NAMESPACE_NAME=consu-alice -startChain: + IP_ADDR=7.7.8.4/24 -startChain: + ip netns add consu-alice -startChain: + ip link add consu-alice-in type veth peer name consu-alice-out -startChain: + ip link set consu-alice-in netns consu-alice -startChain: + ip netns exec consu-alice ip addr add 7.7.8.4/24 dev consu-alice-in -startChain: + ip link set consu-alice-out master virtual-bridge -startChain: + ip link set virtual-bridge up -startChain: ++ seq 0 0 -startChain: + for i in $(seq 0 $(($NODES - 1))) -startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true}]' -startChain: ++ jq -r '.[0].val_id' -startChain: + VAL_ID=alice -startChain: + NET_NAMESPACE_NAME=consu-alice -startChain: + ip link set consu-alice-out up -startChain: + ip netns exec consu-alice ip link set dev consu-alice-in up -startChain: + ip netns exec consu-alice ip link set dev lo up -startChain: + BRIDGE_IP=7.7.8.254/24 -startChain: + ip addr add 7.7.8.254/24 dev virtual-bridge -startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true}]' -startChain: ++ jq -r '.[0].val_id' -startChain: + FIRST_VAL_ID=alice -startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true}]' -startChain: ++ jq -r '.[0].ip_suffix' -startChain: + FIRST_VAL_IP_SUFFIX=4 -startChain: + echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true}]' -startChain: + jq -r '.[0].mnemonic' -startChain: + interchain-security-cd init --home /consu/validatoralice --chain-id=consu validatoralice --recover -startChain: {"app_message":{"auth":{"accounts":[],"params":{"max_memo_characters":"256","sig_verify_cost_ed25519":"590","sig_verify_cost_secp256k1":"1000","tx_sig_limit":"7","tx_size_cost_per_byte":"10"}},"authz":{"authorization":[]},"bank":{"balances":[],"denom_metadata":[],"params":{"default_send_enabled":true,"send_enabled":[]},"supply":[]},"capability":{"index":"1","owners":[]},"ccvconsumer":{"height_to_valset_update_id":[],"initial_val_set":[],"last_transmission_block_height":{"height":"0"},"maturing_packets":[],"new_chain":false,"outstanding_downtime_slashing":[],"params":{"blocks_per_distribution_transmission":"1000","ccv_timeout_period":"2419200s","consumer_redistribution_fraction":"0.75","distribution_transmission_channel":"","enabled":false,"historical_entries":"10000","provider_fee_pool_addr_str":"","provider_reward_denoms":[],"reward_denoms":[],"soft_opt_out_threshold":"0.05","transfer_timeout_period":"3600s","unbonding_period":"1728000s"},"pending_consumer_packets":{"list":[]},"preCCV":false,"provider_channel_id":"","provider_client_id":"","provider_client_state":null,"provider_consensus_state":null},"crisis":{"constant_fee":{"amount":"1000","denom":"stake"}},"evidence":{"evidence":[]},"feegrant":{"allowances":[]},"ibc":{"channel_genesis":{"ack_sequences":[],"acknowledgements":[],"channels":[],"commitments":[],"next_channel_sequence":"0","receipts":[],"recv_sequences":[],"send_sequences":[]},"client_genesis":{"clients":[],"clients_consensus":[],"clients_metadata":[],"create_localhost":false,"next_client_sequence":"0","params":{"allowed_clients":["06-solomachine","07-tendermint"]}},"connection_genesis":{"client_connection_paths":[],"connections":[],"next_connection_sequence":"0","params":{"max_expected_time_per_block":"30000000000"}}},"params":null,"slashing":{"missed_blocks":[],"params":{"downtime_jail_duration":"600s","min_signed_per_window":"0.500000000000000000","signed_blocks_window":"100","slash_fraction_double_sign":"0.050000000000000000","slash_fraction_downtime":"0.010000000000000000"},"signing_infos":[]},"transfer":{"denom_traces":[],"params":{"receive_enabled":true,"send_enabled":true},"port_id":"transfer"},"upgrade":{},"vesting":{}},"chain_id":"consu","gentxs_dir":"","moniker":"validatoralice","node_id":"08ae375146db13bd3946d87b1c6f7287f9baf28f"} -startChain: + jq '.app_state.gov.voting_params.voting_period = "20s" | .app_state.slashing.params.signed_blocks_window = "15" | .app_state.slashing.params.min_signed_per_window = "0.500000000000000000" | .app_state.slashing.params.downtime_jail_duration = "2s" | .app_state.slashing.params.slash_fraction_downtime = "0.010000000000000000" | .app_state.ccvconsumer = {"params":{"enabled":true,"blocks_per_distribution_transmission":"1000","distribution_transmission_channel":"","provider_fee_pool_addr_str":"","ccv_timeout_period":"2419200s","transfer_timeout_period":"3600s","consumer_redistribution_fraction":"0.75","historical_entries":"10000","unbonding_period":"1728000s","soft_opt_out_threshold":"0.05","reward_denoms":[],"provider_reward_denoms":[]},"provider_client_id":"","provider_channel_id":"","new_chain":true,"provider_client_state":{"chain_id":"provi","trust_level":{"numerator":"1","denominator":"3"},"trusting_period":"1197504s","unbonding_period":"1814400s","max_clock_drift":"10s","frozen_height":{"revision_number":"0","revision_height":"0"},"latest_height":{"revision_number":"0","revision_height":"24"},"proof_specs":[{"leaf_spec":{"hash":"SHA256","prehash_key":"NO_HASH","prehash_value":"SHA256","length":"VAR_PROTO","prefix":"AA=="},"inner_spec":{"child_order":[0,1],"child_size":33,"min_prefix_length":4,"max_prefix_length":12,"empty_child":null,"hash":"SHA256"},"max_depth":0,"min_depth":0},{"leaf_spec":{"hash":"SHA256","prehash_key":"NO_HASH","prehash_value":"SHA256","length":"VAR_PROTO","prefix":"AA=="},"inner_spec":{"child_order":[0,1],"child_size":32,"min_prefix_length":1,"max_prefix_length":1,"empty_child":null,"hash":"SHA256"},"max_depth":0,"min_depth":0}],"upgrade_path":["upgrade","upgradedIBCState"],"allow_update_after_expiry":true,"allow_update_after_misbehaviour":true},"provider_consensus_state":{"timestamp":"2023-07-06T13:41:25.239753303Z","root":{"hash":"dVV8g+F1rOzgI6Qi74lB5TWAQvICRA6VqJWv/8reEqc="},"next_validators_hash":"BBA977975C2E4EAC2961E3DF391D494C187A2B68842383C4E37E81ED78491952"},"maturing_packets":[],"initial_val_set":[{"pub_key":{"ed25519":"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes="},"power":"500"},{"pub_key":{"ed25519":"mAN6RXYxSM4MNGSIriYiS7pHuwAcOHDQAy9/wnlSzOI="},"power":"20"}],"height_to_valset_update_id":[],"outstanding_downtime_slashing":[],"pending_consumer_packets":{"list":[]},"last_transmission_block_height":{"height":"0"},"preCCV":false} -startChain: | .app_state.gov.voting_params.voting_period = "20s" | .app_state.slashing.params.signed_blocks_window = "15" | .app_state.slashing.params.min_signed_per_window = "0.500000000000000000" | .app_state.slashing.params.downtime_jail_duration = "2s" | .app_state.slashing.params.slash_fraction_downtime = "0.010000000000000000" | .app_state.ccvconsumer.params.soft_opt_out_threshold = "0.05"' /consu/validatoralice/config/genesis.json -startChain: + mv /consu/edited-genesis.json /consu/genesis.json -startChain: ++ seq 0 0 -startChain: + for i in $(seq 0 $(($NODES - 1))) -startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true}]' -startChain: ++ jq -r '.[0].val_id' -startChain: + VAL_ID=alice -startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true}]' -startChain: ++ jq -r '.[0].start_with_consumer_key' -startChain: + START_WITH_CONSUMER_KEY=true -startChain: + [[ consu != \p\r\o\v\i ]] -startChain: + [[ true = \t\r\u\e ]] -startChain: + interchain-security-cd keys add validatoralice --home /consu/validatoralice --keyring-backend test --recover -startChain: + jq -r '.[0].consumer_mnemonic' -startChain: + echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true}]' -startChain: -startChain: + mv /consu/genesis.json /consu/validatoralice/config/genesis.json -startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true}]' -startChain: ++ jq -r '.[0].allocation' -startChain: + ALLOCATION=10000000000stake -startChain: + interchain-security-cd add-genesis-account validatoralice 10000000000stake --home /consu/validatoralice --keyring-backend test -startChain: + mv /consu/validatoralice/config/genesis.json /consu/genesis.json -startChain: ++ seq 0 0 -startChain: + for i in $(seq 0 $(($NODES - 1))) -startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true}]' -startChain: ++ jq -r '.[0].val_id' -startChain: + VAL_ID=alice -startChain: + cp /consu/genesis.json /consu/validatoralice/config/genesis.json -startChain: + echo '{"height": "0","round": 0,"step": 0}' -startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true}]' -startChain: ++ jq -r '.[0].start_with_consumer_key' -startChain: + START_WITH_CONSUMER_KEY=true -startChain: + [[ consu != \p\r\o\v\i ]] -startChain: + [[ true = \t\r\u\e ]] -startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true}]' -startChain: ++ jq -r '.[0].consumer_priv_validator_key' -startChain: + PRIV_VALIDATOR_KEY='{"address":"DF090A4880B54CD57B2A79E64D9E969BD7514B09","pub_key":{"type":"tendermint/PubKeyEd25519","value":"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes="},"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w=="}}' -startChain: + [[ -n {"address":"DF090A4880B54CD57B2A79E64D9E969BD7514B09","pub_key":{"type":"tendermint/PubKeyEd25519","value":"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes="},"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w=="}} ]] -startChain: + echo '{"address":"DF090A4880B54CD57B2A79E64D9E969BD7514B09","pub_key":{"type":"tendermint/PubKeyEd25519","value":"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes="},"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w=="}}' -startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true}]' -startChain: ++ jq -r '.[0].node_key' -startChain: + NODE_KEY='{"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA=="}}' -startChain: + [[ -n {"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA=="}} ]] -startChain: + echo '{"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA=="}}' -startChain: + '[' true = false ']' -startChain: + '[' 's/timeout_commit = "5s"/timeout_commit = "1s"/;s/peer_gossip_sleep_duration = "100ms"/peer_gossip_sleep_duration = "50ms"/;s/fast_sync = true/fast_sync = false/;' '!=' '' ']' -startChain: + sed -i 's/timeout_commit = "5s"/timeout_commit = "1s"/;s/peer_gossip_sleep_duration = "100ms"/peer_gossip_sleep_duration = "50ms"/;s/fast_sync = true/fast_sync = false/;' consu/validatoralice/config/config.toml -startChain: + '[' true = false ']' -startChain: ++ seq 0 0 -startChain: + for i in $(seq 0 $(($NODES - 1))) -startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true}]' -startChain: ++ jq -r '.[0].val_id' -startChain: + VAL_ID=alice -startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true}]' -startChain: ++ jq -r '.[0].ip_suffix' -startChain: + VAL_IP_SUFFIX=4 -startChain: + NET_NAMESPACE_NAME=consu-alice -startChain: + NODE_HOME=/consu/validatoralice -startChain: + GAIA_HOME='--home /consu/validatoralice' -startChain: + NODE_HOMES=/consu/validatoralice, -startChain: + RPC_ADDRESS='--rpc.laddr tcp://7.7.8.4:26658' -startChain: + GRPC_ADDRESS='--grpc.address 7.7.8.4:9091' -startChain: + LISTEN_ADDRESS='--address tcp://7.7.8.4:26655' -startChain: + NODE_LISTEN_ADDR_STR=7.7.8.4:26655, -startChain: + P2P_ADDRESS='--p2p.laddr tcp://7.7.8.4:26656' -startChain: + LOG_LEVEL='--log_level info' -startChain: + ENABLE_WEBGRPC=--grpc-web.enable=false -startChain: + PERSISTENT_PEERS= -startChain: ++ seq 0 0 -startChain: + for j in $(seq 0 $(($NODES - 1))) -startChain: + '[' 0 -ne 0 ']' -startChain: + '[' '' '!=' '' ']' -startChain: + ARGS='--home /consu/validatoralice --address tcp://7.7.8.4:26655 --rpc.laddr tcp://7.7.8.4:26658 --grpc.address 7.7.8.4:9091 --log_level info --p2p.laddr tcp://7.7.8.4:26656 --grpc-web.enable=false ' -startChain: + [[ false == \t\r\u\e ]] -startChain: + SYBIL_NODE_ID=sybil -startChain: + SYBIL_IP_SUFFIX=252 -startChain: + SYBIL_NET_NAMESPACE_NAME=consu-sybil -startChain: + SYBIL_IP_ADDR=7.7.8.252/24 -startChain: + ip netns add consu-sybil -startChain: + ip netns exec consu-alice interchain-security-cd --home /consu/validatoralice --address tcp://7.7.8.4:26655 --rpc.laddr tcp://7.7.8.4:26658 --grpc.address 7.7.8.4:9091 --log_level info --p2p.laddr tcp://7.7.8.4:26656 --grpc-web.enable=false start -startChain: + ip link add consu-sybil-in type veth peer name consu-sybil-out -startChain: + ip link set consu-sybil-in netns consu-sybil -startChain: + ip netns exec consu-sybil ip addr add 7.7.8.252/24 dev consu-sybil-in -startChain: + ip link set consu-sybil-out master virtual-bridge -startChain: + ip link set consu-sybil-out up -startChain: + ip netns exec consu-sybil ip link set dev consu-sybil-in up -startChain: + ip netns exec consu-sybil ip link set dev lo up -startChain: + QUERY_NODE_ID=query -startChain: + QUERY_IP_SUFFIX=253 -startChain: + QUERY_NET_NAMESPACE_NAME=consu-query -startChain: + QUERY_IP_ADDR=7.7.8.253/24 -startChain: + ip netns add consu-query -startChain: + ip link add consu-query-in type veth peer name consu-query-out -startChain: + ip link set consu-query-in netns consu-query -startChain: + ip netns exec consu-query ip addr add 7.7.8.253/24 dev consu-query-in -startChain: + ip link set consu-query-out master virtual-bridge -startChain: + ip link set consu-query-out up -startChain: + ip netns exec consu-query ip link set dev consu-query-in up -startChain: + ip netns exec consu-query ip link set dev lo up -startChain: + interchain-security-cd init --home /consu/query --chain-id=consu query -startChain: {"app_message":{"auth":{"accounts":[],"params":{"max_memo_characters":"256","sig_verify_cost_ed25519":"590","sig_verify_cost_secp256k1":"1000","tx_sig_limit":"7","tx_size_cost_per_byte":"10"}},"authz":{"authorization":[]},"bank":{"balances":[],"denom_metadata":[],"params":{"default_send_enabled":true,"send_enabled":[]},"supply":[]},"capability":{"index":"1","owners":[]},"ccvconsumer":{"height_to_valset_update_id":[],"initial_val_set":[],"last_transmission_block_height":{"height":"0"},"maturing_packets":[],"new_chain":false,"outstanding_downtime_slashing":[],"params":{"blocks_per_distribution_transmission":"1000","ccv_timeout_period":"2419200s","consumer_redistribution_fraction":"0.75","distribution_transmission_channel":"","enabled":false,"historical_entries":"10000","provider_fee_pool_addr_str":"","provider_reward_denoms":[],"reward_denoms":[],"soft_opt_out_threshold":"0.05","transfer_timeout_period":"3600s","unbonding_period":"1728000s"},"pending_consumer_packets":{"list":[]},"preCCV":false,"provider_channel_id":"","provider_client_id":"","provider_client_state":null,"provider_consensus_state":null},"crisis":{"constant_fee":{"amount":"1000","denom":"stake"}},"evidence":{"evidence":[]},"feegrant":{"allowances":[]},"ibc":{"channel_genesis":{"ack_sequences":[],"acknowledgements":[],"channels":[],"commitments":[],"next_channel_sequence":"0","receipts":[],"recv_sequences":[],"send_sequences":[]},"client_genesis":{"clients":[],"clients_consensus":[],"clients_metadata":[],"create_localhost":false,"next_client_sequence":"0","params":{"allowed_clients":["06-solomachine","07-tendermint"]}},"connection_genesis":{"client_connection_paths":[],"connections":[],"next_connection_sequence":"0","params":{"max_expected_time_per_block":"30000000000"}}},"params":null,"slashing":{"missed_blocks":[],"params":{"downtime_jail_duration":"600s","min_signed_per_window":"0.500000000000000000","signed_blocks_window":"100","slash_fraction_double_sign":"0.050000000000000000","slash_fraction_downtime":"0.010000000000000000"},"signing_infos":[]},"transfer":{"denom_traces":[],"params":{"receive_enabled":true,"send_enabled":true},"port_id":"transfer"},"upgrade":{},"vesting":{}},"chain_id":"consu","gentxs_dir":"","moniker":"query","node_id":"377889fb856cf87acca74727a2d8ffee2abd9409"} -startChain: + cp /consu/genesis.json /consu/query/config/genesis.json -startChain: + QUERY_GAIA_HOME='--home /consu/query' -startChain: + QUERY_RPC_ADDRESS='--rpc.laddr tcp://7.7.8.253:26658' -startChain: + QUERY_GRPC_ADDRESS='--grpc.address 7.7.8.253:9091' -startChain: + QUERY_LISTEN_ADDRESS='--address tcp://7.7.8.253:26655' -startChain: + QUERY_P2P_ADDRESS='--p2p.laddr tcp://7.7.8.253:26656' -startChain: + QUERY_LOG_LEVEL='--log_level info' -startChain: + QUERY_ENABLE_WEBGRPC=--grpc-web.enable=false -startChain: + QUERY_PERSISTENT_PEERS= -startChain: ++ seq 0 0 -startChain: + for j in $(seq 0 $(($NODES - 1))) -startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true}]' -startChain: ++ jq -r '.[0].val_id' -startChain: + PEER_VAL_ID=alice -startChain: ++ echo '[{"mnemonic":"pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear","allocation":"10000000000stake","stake":"500000000stake","val_id":"alice","priv_validator_key":"{\"address\":\"06C0F3E47CC5C748269088DC2F36411D3AAA27C6\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"RrclQz9bIhkIy/gfL485g3PYMeiIku4qeo495787X10=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"uX+ZpDMg89a6gtqs/+MQpCTSqlkZ0nJQJOhLlCJvwvdGtyVDP1siGQjL+B8vjzmDc9gx6IiS7ip6jj3nvztfXQ==\"}}","node_key":"{\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"fjw4/DAhyRPnwKgXns5SV7QfswRSXMWJpHS7TyULDmJ8ofUc5poQP8dgr8bZRbCV5RV8cPqDq3FPdqwpmUbmdA==\"}}","ip_suffix":"4","consumer_mnemonic":"exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty","consumer_priv_validator_key":"{\"address\":\"DF090A4880B54CD57B2A79E64D9E969BD7514B09\",\"pub_key\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"ujY14AgopV907IYgPAk/5x8c9267S4fQf89nyeCPTes=\"},\"priv_key\":{\"type\":\"tendermint/PrivKeyEd25519\",\"value\":\"TRJgf7lkTjs/sj43pyweEOanyV7H7fhnVivOi0A4yjW6NjXgCCilX3TshiA8CT/nHxz3brtLh9B/z2fJ4I9N6w==\"}}","start_with_consumer_key":true}]' -startChain: ++ jq -r '.[0].ip_suffix' -startChain: + PEER_VAL_IP_SUFFIX=4 -startChain: ++ interchain-security-cd tendermint show-node-id --home /consu/validatoralice -startChain: + NODE_ID=8339e14baab81c2a2350e261962263397a8d7fb0 -startChain: + ADDRESS=8339e14baab81c2a2350e261962263397a8d7fb0@7.7.8.4:26656 -startChain: + QUERY_PERSISTENT_PEERS=,8339e14baab81c2a2350e261962263397a8d7fb0@7.7.8.4:26656 -startChain: + QUERY_PERSISTENT_PEERS='--p2p.persistent_peers 8339e14baab81c2a2350e261962263397a8d7fb0@7.7.8.4:26656' -startChain: + ARGS='--home /consu/query --address tcp://7.7.8.253:26655 --rpc.laddr tcp://7.7.8.253:26658 --grpc.address 7.7.8.253:9091 --log_level info --p2p.laddr tcp://7.7.8.253:26656 --grpc-web.enable=false --p2p.persistent_peers 8339e14baab81c2a2350e261962263397a8d7fb0@7.7.8.4:26656' -startChain: + [[ false != \t\r\u\e ]] -startChain: + echo 'Node addresses:' -startChain: + echo 7.7.8.4:26655, -startChain: + echo 'Node homes:' -startChain: + echo /consu/validatoralice, -startChain: + NODE_LISTEN_ADDR_STR=7.7.8.4:26655 -startChain: + NODE_HOMES=/consu/validatoralice -startChain: + [[ false == \t\r\u\e ]] -startChain: + [[ false == \t\r\u\e ]] -startChain: + set +e -startChain: Node addresses: -startChain: 7.7.8.4:26655, -startChain: Node homes: -startChain: /consu/validatoralice, -startChain: + ip netns exec consu-query interchain-security-cd --home /consu/query --address tcp://7.7.8.253:26655 --rpc.laddr tcp://7.7.8.253:26658 --grpc.address 7.7.8.253:9091 --log_level info --p2p.laddr tcp://7.7.8.253:26656 --grpc-web.enable=false --p2p.persistent_peers 8339e14baab81c2a2350e261962263397a8d7fb0@7.7.8.4:26656 start -startChain: + interchain-security-cd query block --node tcp://7.7.8.253:26658 -startChain: + grep -q -v '{"block_id":{"hash":"","parts":{"total":0,"hash": -startChain: ""}},"block":null}' -startChain: Error: post failed: Post "http://7.7.8.253:26658": dial tcp 7.7.8.253:26658: connect: connection refused -startChain: Usage: -startChain: simd query block [height] [flags] -startChain: -startChain: Flags: -startChain: -h, --help help for block -startChain: -n, --node string Node to connect to (default "tcp://localhost:26657") -startChain: -startChain: Global Flags: -startChain: --chain-id string The network chain ID -startChain: --home string directory for config and data (default "/root/.interchain-security-c") -startChain: --log_format string The logging format (json|plain) (default "plain") -startChain: --log_level string The logging level (trace|debug|info|warn|error|fatal|panic) (default "info") -startChain: --trace print out full stack trace on errors -startChain: -startChain: + sleep 0.3 -startChain: + interchain-security-cd query block --node tcp://7.7.8.253:26658 -startChain: + grep -q -v '{"block_id":{"hash":"","parts":{"total":0,"hash": -startChain: ""}},"block":null}' -startChain: + sleep 0.3 -startChain: + interchain-security-cd query block --node tcp://7.7.8.253:26658 -startChain: + grep -q -v '{"block_id":{"hash":"","parts":{"total":0,"hash": -startChain: ""}},"block":null}' -startChain: + sleep 0.3 -startChain: + interchain-security-cd query block --node tcp://7.7.8.253:26658 -startChain: + grep -q -v '{"block_id":{"hash":"","parts":{"total":0,"hash": -startChain: ""}},"block":null}' -startChain: + sleep 0.3 -startChain: + interchain-security-cd query block --node tcp://7.7.8.253:26658 -startChain: + grep -q -v '{"block_id":{"hash":"","parts":{"total":0,"hash": -startChain: ""}},"block":null}' -startChain: done!!!!!!!! -Add to hermes alice -exile install vapor thing little toss immune notable lounge december final easy strike title end program interest quote cloth forget forward job october twenty -running misbehaviour: step 6 == addIbcConnectionAction -addIbcConnection: 2023-07-06T13:41:33.651990Z INFO ThreadId(01) using default configuration from '/root/.hermes/config.toml' -addIbcConnection: 2023-07-06T13:41:33.652224Z INFO ThreadId(01) running Hermes v1.4.0+7e5bdd2c -addIbcConnection: 2023-07-06T13:41:33.673137Z INFO ThreadId(01) Creating a new connection with pre-existing clients 07-tendermint-0 and 07-tendermint-0 -addIbcConnection: 2023-07-06T13:41:33.674718Z DEBUG ThreadId(01) do_conn_open_handshake with connection end states: UNINITIALIZED, UNINITIALIZED -addIbcConnection: 2023-07-06T13:41:33.682110Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ConnectionOpenInit}: sending 1 messages as 1 batches to chain consu in parallel -addIbcConnection: 2023-07-06T13:41:33.682142Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ConnectionOpenInit}:send_tx_with_account_sequence_retry{chain=consu account.sequence=0}: max fee, for use in tx simulation: Fee { amount: "0stake", gas_limit: 20000000 } -addIbcConnection: 2023-07-06T13:41:33.687746Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ConnectionOpenInit}:send_tx_with_account_sequence_retry{chain=consu account.sequence=0}:estimate_gas: tx simulation successful, gas amount used: 64850 -addIbcConnection: 2023-07-06T13:41:33.687779Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ConnectionOpenInit}:send_tx_with_account_sequence_retry{chain=consu account.sequence=0}: send_tx: using 64850 gas, fee Fee { amount: "0stake", gas_limit: 71335 } id=consu -addIbcConnection: 2023-07-06T13:41:33.697971Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ConnectionOpenInit}:send_tx_with_account_sequence_retry{chain=consu account.sequence=0}: gas estimation succeeded -addIbcConnection: 2023-07-06T13:41:33.697990Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ConnectionOpenInit}:send_tx_with_account_sequence_retry{chain=consu account.sequence=0}: tx was successfully broadcasted, increasing account sequence number response=Response { code: Ok, data: b"", log: "[]", hash: Hash::Sha256(9EC204029FE95E4401C7F0C76B214CBE221EC0E348C63575329871E4E089F0C7) } account.sequence.old=0 account.sequence.new=1 -addIbcConnection: 2023-07-06T13:41:33.698402Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ConnectionOpenInit}:wait_for_block_commits{id=consu}: waiting for commit of tx hashes(s) 9EC204029FE95E4401C7F0C76B214CBE221EC0E348C63575329871E4E089F0C7 -addIbcConnection: 2023-07-06T13:41:34.604085Z INFO ThreadId(01) 🥂 consu => OpenInitConnection(OpenInit { Attributes { connection_id: connection-0, client_id: 07-tendermint-0, counterparty_connection_id: None, counterparty_client_id: 07-tendermint-0 } }) at height 0-3 -addIbcConnection: 2023-07-06T13:41:37.605836Z DEBUG ThreadId(01) do_conn_open_handshake with connection end states: INIT, UNINITIALIZED -addIbcConnection: 2023-07-06T13:41:37.617177Z DEBUG ThreadId(01) foreign_client.wait_and_build_update_client_with_trusted{client=provi->consu:07-tendermint-0 target_height=0-35}:foreign_client.build_update_client_with_trusted{client=provi->consu:07-tendermint-0 target_height=0-35}: building a MsgUpdateAnyClient from trusted height 0-24 to target height 0-35 -addIbcConnection: 2023-07-06T13:41:37.617653Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=update client on source for ConnectionOpenTry}: sending 1 messages as 1 batches to chain consu in parallel -addIbcConnection: 2023-07-06T13:41:37.617670Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=update client on source for ConnectionOpenTry}:send_tx_with_account_sequence_retry{chain=consu account.sequence=1}: max fee, for use in tx simulation: Fee { amount: "0stake", gas_limit: 20000000 } -addIbcConnection: 2023-07-06T13:41:37.620190Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=update client on source for ConnectionOpenTry}:send_tx_with_account_sequence_retry{chain=consu account.sequence=1}:estimate_gas: tx simulation successful, gas amount used: 90567 -addIbcConnection: 2023-07-06T13:41:37.620218Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=update client on source for ConnectionOpenTry}:send_tx_with_account_sequence_retry{chain=consu account.sequence=1}: send_tx: using 90567 gas, fee Fee { amount: "0stake", gas_limit: 99623 } id=consu -addIbcConnection: 2023-07-06T13:41:37.621620Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=update client on source for ConnectionOpenTry}:send_tx_with_account_sequence_retry{chain=consu account.sequence=1}: gas estimation succeeded -addIbcConnection: 2023-07-06T13:41:37.621635Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=update client on source for ConnectionOpenTry}:send_tx_with_account_sequence_retry{chain=consu account.sequence=1}: tx was successfully broadcasted, increasing account sequence number response=Response { code: Ok, data: b"", log: "[]", hash: Hash::Sha256(74509CD276025408AD15BFE5EB5BB74E40CF90BDA872E3317B2A280A8086DD0A) } account.sequence.old=1 account.sequence.new=2 -addIbcConnection: 2023-07-06T13:41:37.621669Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=update client on source for ConnectionOpenTry}:wait_for_block_commits{id=consu}: waiting for commit of tx hashes(s) 74509CD276025408AD15BFE5EB5BB74E40CF90BDA872E3317B2A280A8086DD0A -addIbcConnection: 2023-07-06T13:41:39.566356Z DEBUG ThreadId(01) foreign_client.wait_and_build_update_client_with_trusted{client=consu->provi:07-tendermint-0 target_height=0-8}:foreign_client.build_update_client_with_trusted{client=consu->provi:07-tendermint-0 target_height=0-8}: building a MsgUpdateAnyClient from trusted height 0-1 to target height 0-8 -addIbcConnection: 2023-07-06T13:41:39.569629Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ConnectionOpenTry}: sending 2 messages as 1 batches to chain provi in parallel -addIbcConnection: 2023-07-06T13:41:39.569653Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ConnectionOpenTry}:send_tx_with_account_sequence_retry{chain=provi account.sequence=4}: max fee, for use in tx simulation: Fee { amount: "0stake", gas_limit: 20000000 } -addIbcConnection: 2023-07-06T13:41:39.573097Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ConnectionOpenTry}:send_tx_with_account_sequence_retry{chain=provi account.sequence=4}:estimate_gas: tx simulation successful, gas amount used: 145023 -addIbcConnection: 2023-07-06T13:41:39.573117Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ConnectionOpenTry}:send_tx_with_account_sequence_retry{chain=provi account.sequence=4}: send_tx: using 145023 gas, fee Fee { amount: "0stake", gas_limit: 159525 } id=provi -addIbcConnection: 2023-07-06T13:41:39.575214Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ConnectionOpenTry}:send_tx_with_account_sequence_retry{chain=provi account.sequence=4}: gas estimation succeeded -addIbcConnection: 2023-07-06T13:41:39.575232Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ConnectionOpenTry}:send_tx_with_account_sequence_retry{chain=provi account.sequence=4}: tx was successfully broadcasted, increasing account sequence number response=Response { code: Ok, data: b"", log: "[]", hash: Hash::Sha256(E8BA3F162F915E5AD46FEEC74A590485D86C1A1894D0A4BA359A103A578CC39A) } account.sequence.old=4 account.sequence.new=5 -addIbcConnection: 2023-07-06T13:41:39.575250Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ConnectionOpenTry}:wait_for_block_commits{id=provi}: waiting for commit of tx hashes(s) E8BA3F162F915E5AD46FEEC74A590485D86C1A1894D0A4BA359A103A578CC39A -addIbcConnection: 2023-07-06T13:41:40.784731Z INFO ThreadId(01) 🥂 provi => OpenTryConnection(OpenTry { Attributes { connection_id: connection-0, client_id: 07-tendermint-0, counterparty_connection_id: connection-0, counterparty_client_id: 07-tendermint-0 } }) at height 0-38 -addIbcConnection: 2023-07-06T13:41:43.788504Z DEBUG ThreadId(01) do_conn_open_handshake with connection end states: INIT, TRYOPEN -addIbcConnection: 2023-07-06T13:41:43.803088Z DEBUG ThreadId(01) foreign_client.wait_and_build_update_client_with_trusted{client=consu->provi:07-tendermint-0 target_height=0-12}:foreign_client.build_update_client_with_trusted{client=consu->provi:07-tendermint-0 target_height=0-12}: building a MsgUpdateAnyClient from trusted height 0-8 to target height 0-12 -addIbcConnection: 2023-07-06T13:41:43.803748Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=update client on source for ConnectionOpenAck}: sending 1 messages as 1 batches to chain provi in parallel -addIbcConnection: 2023-07-06T13:41:43.803768Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=update client on source for ConnectionOpenAck}:send_tx_with_account_sequence_retry{chain=provi account.sequence=5}: max fee, for use in tx simulation: Fee { amount: "0stake", gas_limit: 20000000 } -addIbcConnection: 2023-07-06T13:41:43.806064Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=update client on source for ConnectionOpenAck}:send_tx_with_account_sequence_retry{chain=provi account.sequence=5}:estimate_gas: tx simulation successful, gas amount used: 89528 -addIbcConnection: 2023-07-06T13:41:43.806098Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=update client on source for ConnectionOpenAck}:send_tx_with_account_sequence_retry{chain=provi account.sequence=5}: send_tx: using 89528 gas, fee Fee { amount: "0stake", gas_limit: 98480 } id=provi -addIbcConnection: 2023-07-06T13:41:43.807899Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=update client on source for ConnectionOpenAck}:send_tx_with_account_sequence_retry{chain=provi account.sequence=5}: gas estimation succeeded -addIbcConnection: 2023-07-06T13:41:43.807927Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=update client on source for ConnectionOpenAck}:send_tx_with_account_sequence_retry{chain=provi account.sequence=5}: tx was successfully broadcasted, increasing account sequence number response=Response { code: Ok, data: b"", log: "[]", hash: Hash::Sha256(EA9E9ACDC04C5B01D1FB896F0F890654A638E0B941A5158A10E8875CE77652F2) } account.sequence.old=5 account.sequence.new=6 -addIbcConnection: 2023-07-06T13:41:43.807958Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=update client on source for ConnectionOpenAck}:wait_for_block_commits{id=provi}: waiting for commit of tx hashes(s) EA9E9ACDC04C5B01D1FB896F0F890654A638E0B941A5158A10E8875CE77652F2 -addIbcConnection: 2023-07-06T13:41:45.847364Z DEBUG ThreadId(01) foreign_client.wait_and_build_update_client_with_trusted{client=provi->consu:07-tendermint-0 target_height=0-43}:foreign_client.build_update_client_with_trusted{client=provi->consu:07-tendermint-0 target_height=0-43}: building a MsgUpdateAnyClient from trusted height 0-35 to target height 0-43 -addIbcConnection: 2023-07-06T13:41:45.849127Z WARN ThreadId(01) client consensus proof height too high, waiting for destination chain to advance beyond 0-12 -addIbcConnection: 2023-07-06T13:41:46.351889Z WARN ThreadId(01) client consensus proof height too high, waiting for destination chain to advance beyond 0-12 -addIbcConnection: 2023-07-06T13:41:46.854377Z WARN ThreadId(01) client consensus proof height too high, waiting for destination chain to advance beyond 0-12 -addIbcConnection: 2023-07-06T13:41:47.357350Z WARN ThreadId(01) client consensus proof height too high, waiting for destination chain to advance beyond 0-12 -addIbcConnection: 2023-07-06T13:41:47.858783Z WARN ThreadId(01) client consensus proof height too high, waiting for destination chain to advance beyond 0-12 -addIbcConnection: 2023-07-06T13:41:48.361092Z WARN ThreadId(01) client consensus proof height too high, waiting for destination chain to advance beyond 0-12 -addIbcConnection: 2023-07-06T13:41:48.864586Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ConnectionOpenAck}: sending 2 messages as 1 batches to chain consu in parallel -addIbcConnection: 2023-07-06T13:41:48.864751Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ConnectionOpenAck}:send_tx_with_account_sequence_retry{chain=consu account.sequence=2}: max fee, for use in tx simulation: Fee { amount: "0stake", gas_limit: 20000000 } -addIbcConnection: 2023-07-06T13:41:48.869116Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ConnectionOpenAck}:send_tx_with_account_sequence_retry{chain=consu account.sequence=2}:estimate_gas: tx simulation successful, gas amount used: 136553 -addIbcConnection: 2023-07-06T13:41:48.869258Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ConnectionOpenAck}:send_tx_with_account_sequence_retry{chain=consu account.sequence=2}: send_tx: using 136553 gas, fee Fee { amount: "0stake", gas_limit: 150208 } id=consu -addIbcConnection: 2023-07-06T13:41:48.872435Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ConnectionOpenAck}:send_tx_with_account_sequence_retry{chain=consu account.sequence=2}: gas estimation succeeded -addIbcConnection: 2023-07-06T13:41:48.872457Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ConnectionOpenAck}:send_tx_with_account_sequence_retry{chain=consu account.sequence=2}: tx was successfully broadcasted, increasing account sequence number response=Response { code: Ok, data: b"", log: "[]", hash: Hash::Sha256(BC11B3B03639E601B8BCEA4E435FB7C2738A66FFAE084B86901F4C08CE7A3088) } account.sequence.old=2 account.sequence.new=3 -addIbcConnection: 2023-07-06T13:41:48.872490Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ConnectionOpenAck}:wait_for_block_commits{id=consu}: waiting for commit of tx hashes(s) BC11B3B03639E601B8BCEA4E435FB7C2738A66FFAE084B86901F4C08CE7A3088 -addIbcConnection: 2023-07-06T13:41:49.782925Z INFO ThreadId(01) 🥂 consu => OpenAckConnection(OpenAck { Attributes { connection_id: connection-0, client_id: 07-tendermint-0, counterparty_connection_id: connection-0, counterparty_client_id: 07-tendermint-0 } }) at height 0-14 -addIbcConnection: 2023-07-06T13:41:52.788392Z DEBUG ThreadId(01) do_conn_open_handshake with connection end states: OPEN, TRYOPEN -addIbcConnection: 2023-07-06T13:41:52.906982Z DEBUG ThreadId(01) foreign_client.wait_and_build_update_client_with_trusted{client=consu->provi:07-tendermint-0 target_height=0-17}:foreign_client.build_update_client_with_trusted{client=consu->provi:07-tendermint-0 target_height=0-17}: building a MsgUpdateAnyClient from trusted height 0-12 to target height 0-17 -addIbcConnection: 2023-07-06T13:41:52.908074Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ConnectionOpenConfirm}: sending 2 messages as 1 batches to chain provi in parallel -addIbcConnection: 2023-07-06T13:41:52.908099Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ConnectionOpenConfirm}:send_tx_with_account_sequence_retry{chain=provi account.sequence=6}: max fee, for use in tx simulation: Fee { amount: "0stake", gas_limit: 20000000 } -addIbcConnection: 2023-07-06T13:41:52.910991Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ConnectionOpenConfirm}:send_tx_with_account_sequence_retry{chain=provi account.sequence=6}:estimate_gas: tx simulation successful, gas amount used: 107744 -addIbcConnection: 2023-07-06T13:41:52.911015Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ConnectionOpenConfirm}:send_tx_with_account_sequence_retry{chain=provi account.sequence=6}: send_tx: using 107744 gas, fee Fee { amount: "0stake", gas_limit: 118518 } id=provi -addIbcConnection: 2023-07-06T13:41:52.912787Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ConnectionOpenConfirm}:send_tx_with_account_sequence_retry{chain=provi account.sequence=6}: gas estimation succeeded -addIbcConnection: 2023-07-06T13:41:52.912816Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ConnectionOpenConfirm}:send_tx_with_account_sequence_retry{chain=provi account.sequence=6}: tx was successfully broadcasted, increasing account sequence number response=Response { code: Ok, data: b"", log: "[]", hash: Hash::Sha256(19E113EC6AC82948F02EDA44129BC048E0A47162E5067D1943846AAF50A42614) } account.sequence.old=6 account.sequence.new=7 -addIbcConnection: 2023-07-06T13:41:52.912837Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ConnectionOpenConfirm}:wait_for_block_commits{id=provi}: waiting for commit of tx hashes(s) 19E113EC6AC82948F02EDA44129BC048E0A47162E5067D1943846AAF50A42614 -addIbcConnection: 2023-07-06T13:41:54.425339Z INFO ThreadId(01) 🥂 provi => OpenConfirmConnection(OpenConfirm { Attributes { connection_id: connection-0, client_id: 07-tendermint-0, counterparty_connection_id: connection-0, counterparty_client_id: 07-tendermint-0 } }) at height 0-51 -addIbcConnection: SUCCESS Connection { -addIbcConnection: delay_period: 0ns, -addIbcConnection: a_side: ConnectionSide { -addIbcConnection: chain: BaseChainHandle { -addIbcConnection: chain_id: ChainId { -addIbcConnection: id: "consu", -addIbcConnection: version: 0, -addIbcConnection: }, -addIbcConnection: runtime_sender: Sender { .. }, -addIbcConnection: }, -addIbcConnection: client_id: ClientId( -addIbcConnection: "07-tendermint-0", -addIbcConnection: ), -addIbcConnection: connection_id: Some( -addIbcConnection: ConnectionId( -addIbcConnection: "connection-0", -addIbcConnection: ), -addIbcConnection: ), -addIbcConnection: }, -addIbcConnection: 2023-07-06T13:41:57.429980Z DEBUG ThreadId(01) do_conn_open_handshake with connection end states: OPEN, OPEN -addIbcConnection: 2023-07-06T13:41:57.430033Z INFO ThreadId(01) connection handshake already finished for Connection { delay_period: 0ns, a_side: ConnectionSide { chain: BaseChainHandle { chain_id: consu }, client_id: 07-tendermint-0, connection_id: connection-0 }, b_side: ConnectionSide { chain: BaseChainHandle { chain_id: provi }, client_id: 07-tendermint-0, connection_id: connection-0 } } -addIbcConnection: b_side: ConnectionSide { -addIbcConnection: chain: BaseChainHandle { -addIbcConnection: chain_id: ChainId { -addIbcConnection: id: "provi", -addIbcConnection: version: 0, -addIbcConnection: }, -addIbcConnection: runtime_sender: Sender { .. }, -addIbcConnection: }, -addIbcConnection: client_id: ClientId( -addIbcConnection: "07-tendermint-0", -addIbcConnection: ), -addIbcConnection: connection_id: Some( -addIbcConnection: ConnectionId( -addIbcConnection: "connection-0", -addIbcConnection: ), -addIbcConnection: ), -addIbcConnection: }, -addIbcConnection: } -running misbehaviour: step 7 == addIbcChannelAction -addIbcChannel cmd: /usr/local/bin/docker exec interchain-security-instance hermes create channel --a-chain consu --a-connection connection-0 --a-port consumer --b-port provider --channel-version 1 --order ordered -addIBCChannel: 2023-07-06T13:41:57.547830Z INFO ThreadId(01) using default configuration from '/root/.hermes/config.toml' -addIBCChannel: 2023-07-06T13:41:57.548081Z INFO ThreadId(01) running Hermes v1.4.0+7e5bdd2c -addIBCChannel: 2023-07-06T13:41:57.555837Z DEBUG ThreadId(01) do_chan_open_handshake with channel end states: UNINITIALIZED, UNINITIALIZED -addIBCChannel: 2023-07-06T13:41:57.558015Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ChannelOpenInit}: sending 1 messages as 1 batches to chain consu in parallel -addIBCChannel: 2023-07-06T13:41:57.558033Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ChannelOpenInit}:send_tx_with_account_sequence_retry{chain=consu account.sequence=3}: max fee, for use in tx simulation: Fee { amount: "0stake", gas_limit: 20000000 } -addIBCChannel: 2023-07-06T13:41:57.559559Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ChannelOpenInit}:send_tx_with_account_sequence_retry{chain=consu account.sequence=3}:estimate_gas: tx simulation successful, gas amount used: 105716 -addIBCChannel: 2023-07-06T13:41:57.559585Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ChannelOpenInit}:send_tx_with_account_sequence_retry{chain=consu account.sequence=3}: send_tx: using 105716 gas, fee Fee { amount: "0stake", gas_limit: 116287 } id=consu -addIBCChannel: 2023-07-06T13:41:57.560421Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ChannelOpenInit}:send_tx_with_account_sequence_retry{chain=consu account.sequence=3}: gas estimation succeeded -addIBCChannel: 2023-07-06T13:41:57.560456Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ChannelOpenInit}:send_tx_with_account_sequence_retry{chain=consu account.sequence=3}: tx was successfully broadcasted, increasing account sequence number response=Response { code: Ok, data: b"", log: "[]", hash: Hash::Sha256(D292C3B02B20817864D17E714B857671429E40C903B1A138BFFE01FA9DC36481) } account.sequence.old=3 account.sequence.new=4 -addIBCChannel: 2023-07-06T13:41:57.560603Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ChannelOpenInit}:wait_for_block_commits{id=consu}: waiting for commit of tx hashes(s) D292C3B02B20817864D17E714B857671429E40C903B1A138BFFE01FA9DC36481 -addIBCChannel: 2023-07-06T13:41:58.766853Z INFO ThreadId(01) 🎊 consu => OpenInitChannel(OpenInit { port_id: consumer, channel_id: channel-0, connection_id: None, counterparty_port_id: provider, counterparty_channel_id: None }) at height 0-23 -addIBCChannel: 2023-07-06T13:42:01.768412Z DEBUG ThreadId(01) do_chan_open_handshake with channel end states: INIT, UNINITIALIZED -addIBCChannel: 2023-07-06T13:42:01.992553Z DEBUG ThreadId(01) foreign_client.wait_and_build_update_client_with_trusted{client=consu->provi:07-tendermint-0 target_height=0-26}:foreign_client.build_update_client_with_trusted{client=consu->provi:07-tendermint-0 target_height=0-26}: building a MsgUpdateAnyClient from trusted height 0-17 to target height 0-26 -addIBCChannel: 2023-07-06T13:42:01.995379Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ChannelOpenTry}: sending 2 messages as 1 batches to chain provi in parallel -addIBCChannel: 2023-07-06T13:42:01.995414Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ChannelOpenTry}:send_tx_with_account_sequence_retry{chain=provi account.sequence=7}: max fee, for use in tx simulation: Fee { amount: "0stake", gas_limit: 20000000 } -addIBCChannel: 2023-07-06T13:42:01.998257Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ChannelOpenTry}:send_tx_with_account_sequence_retry{chain=provi account.sequence=7}:estimate_gas: tx simulation successful, gas amount used: 178082 -addIBCChannel: 2023-07-06T13:42:01.998390Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ChannelOpenTry}:send_tx_with_account_sequence_retry{chain=provi account.sequence=7}: send_tx: using 178082 gas, fee Fee { amount: "0stake", gas_limit: 195890 } id=provi -addIBCChannel: 2023-07-06T13:42:02.000446Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ChannelOpenTry}:send_tx_with_account_sequence_retry{chain=provi account.sequence=7}: gas estimation succeeded -addIBCChannel: 2023-07-06T13:42:02.000519Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ChannelOpenTry}:send_tx_with_account_sequence_retry{chain=provi account.sequence=7}: tx was successfully broadcasted, increasing account sequence number response=Response { code: Ok, data: b"", log: "[]", hash: Hash::Sha256(FBECF31CD695F9309D5B2873D99952012B57A09E319F58DDA24EEB1C3CBB708B) } account.sequence.old=7 account.sequence.new=8 -addIBCChannel: 2023-07-06T13:42:02.000567Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ChannelOpenTry}:wait_for_block_commits{id=provi}: waiting for commit of tx hashes(s) FBECF31CD695F9309D5B2873D99952012B57A09E319F58DDA24EEB1C3CBB708B -addIBCChannel: 2023-07-06T13:42:03.208124Z INFO ThreadId(01) 🎊 provi => OpenTryChannel(OpenTry { port_id: provider, channel_id: channel-0, connection_id: connection-0, counterparty_port_id: consumer, counterparty_channel_id: channel-0 }) at height 0-60 -addIBCChannel: 2023-07-06T13:42:06.211700Z DEBUG ThreadId(01) do_chan_open_handshake with channel end states: INIT, TRYOPEN -addIBCChannel: 2023-07-06T13:42:07.155628Z DEBUG ThreadId(01) foreign_client.wait_and_build_update_client_with_trusted{client=provi->consu:07-tendermint-0 target_height=0-64}:foreign_client.build_update_client_with_trusted{client=provi->consu:07-tendermint-0 target_height=0-64}: building a MsgUpdateAnyClient from trusted height 0-43 to target height 0-64 -addIBCChannel: 2023-07-06T13:42:07.156874Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ChannelOpenAck}: sending 2 messages as 1 batches to chain consu in parallel -addIBCChannel: 2023-07-06T13:42:07.156904Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ChannelOpenAck}:send_tx_with_account_sequence_retry{chain=consu account.sequence=4}: max fee, for use in tx simulation: Fee { amount: "0stake", gas_limit: 20000000 } -addIBCChannel: 2023-07-06T13:42:07.162517Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ChannelOpenAck}:send_tx_with_account_sequence_retry{chain=consu account.sequence=4}:estimate_gas: tx simulation successful, gas amount used: 191360 -addIBCChannel: 2023-07-06T13:42:07.162556Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ChannelOpenAck}:send_tx_with_account_sequence_retry{chain=consu account.sequence=4}: send_tx: using 191360 gas, fee Fee { amount: "0stake", gas_limit: 210496 } id=consu -addIBCChannel: 2023-07-06T13:42:07.164845Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ChannelOpenAck}:send_tx_with_account_sequence_retry{chain=consu account.sequence=4}: gas estimation succeeded -addIBCChannel: 2023-07-06T13:42:07.164886Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ChannelOpenAck}:send_tx_with_account_sequence_retry{chain=consu account.sequence=4}: tx was successfully broadcasted, increasing account sequence number response=Response { code: Ok, data: b"", log: "[]", hash: Hash::Sha256(23718DD074BC636CFB0241A6AF6596CBD307001ED137545BB1358175D170A1EB) } account.sequence.old=4 account.sequence.new=5 -addIBCChannel: 2023-07-06T13:42:07.164925Z DEBUG ThreadId(06) send_messages_and_wait_commit{chain=consu tracking_id=ChannelOpenAck}:wait_for_block_commits{id=consu}: waiting for commit of tx hashes(s) 23718DD074BC636CFB0241A6AF6596CBD307001ED137545BB1358175D170A1EB -addIBCChannel: 2023-07-06T13:42:08.070971Z INFO ThreadId(01) 🎊 consu => OpenAckChannel(OpenAck { port_id: consumer, channel_id: channel-0, connection_id: connection-0, counterparty_port_id: provider, counterparty_channel_id: channel-0 }) at height 0-32 -addIBCChannel: 2023-07-06T13:42:11.075915Z DEBUG ThreadId(01) do_chan_open_handshake with channel end states: OPEN, TRYOPEN -addIBCChannel: 2023-07-06T13:42:11.916333Z DEBUG ThreadId(01) foreign_client.wait_and_build_update_client_with_trusted{client=consu->provi:07-tendermint-0 target_height=0-36}:foreign_client.build_update_client_with_trusted{client=consu->provi:07-tendermint-0 target_height=0-36}: building a MsgUpdateAnyClient from trusted height 0-26 to target height 0-36 -addIBCChannel: 2023-07-06T13:42:11.917179Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ChannelOpenConfirm}: sending 2 messages as 1 batches to chain provi in parallel -addIBCChannel: 2023-07-06T13:42:11.917200Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ChannelOpenConfirm}:send_tx_with_account_sequence_retry{chain=provi account.sequence=8}: max fee, for use in tx simulation: Fee { amount: "0stake", gas_limit: 20000000 } -addIBCChannel: 2023-07-06T13:42:11.919198Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ChannelOpenConfirm}:send_tx_with_account_sequence_retry{chain=provi account.sequence=8}:estimate_gas: tx simulation successful, gas amount used: 130497 -addIBCChannel: 2023-07-06T13:42:11.919309Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ChannelOpenConfirm}:send_tx_with_account_sequence_retry{chain=provi account.sequence=8}: send_tx: using 130497 gas, fee Fee { amount: "0stake", gas_limit: 143546 } id=provi -addIBCChannel: 2023-07-06T13:42:11.920857Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ChannelOpenConfirm}:send_tx_with_account_sequence_retry{chain=provi account.sequence=8}: gas estimation succeeded -addIBCChannel: 2023-07-06T13:42:11.920873Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ChannelOpenConfirm}:send_tx_with_account_sequence_retry{chain=provi account.sequence=8}: tx was successfully broadcasted, increasing account sequence number response=Response { code: Ok, data: b"", log: "[]", hash: Hash::Sha256(3EDF18EF3501459702FD77A210F897DA50CE5C1330D1924EDF9E68FB51C83560) } account.sequence.old=8 account.sequence.new=9 -addIBCChannel: 2023-07-06T13:42:11.920893Z DEBUG ThreadId(15) send_messages_and_wait_commit{chain=provi tracking_id=ChannelOpenConfirm}:wait_for_block_commits{id=provi}: waiting for commit of tx hashes(s) 3EDF18EF3501459702FD77A210F897DA50CE5C1330D1924EDF9E68FB51C83560 -addIBCChannel: 2023-07-06T13:42:12.525147Z INFO ThreadId(01) 🎊 provi => OpenConfirmChannel(OpenConfirm { port_id: provider, channel_id: channel-0, connection_id: connection-0, counterparty_port_id: consumer, counterparty_channel_id: channel-0 }) at height 0-69 -addIBCChannel: 2023-07-06T13:42:15.528560Z DEBUG ThreadId(01) do_chan_open_handshake with channel end states: OPEN, OPEN -addIBCChannel: 2023-07-06T13:42:15.528613Z INFO ThreadId(01) channel handshake already finished for Channel { ordering: ORDER_ORDERED, a_side: ChannelSide { chain: BaseChainHandle { chain_id: consu }, client_id: 07-tendermint-0, connection_id: connection-0, port_id: consumer, channel_id: channel-0, version: 1 }, b_side: ChannelSide { chain: BaseChainHandle { chain_id: provi }, client_id: 07-tendermint-0, connection_id: connection-0, port_id: provider, channel_id: channel-0, version: 1 }, connection_delay: 0ns } -addIBCChannel: SUCCESS Channel { -addIBCChannel: ordering: Ordered, -addIBCChannel: a_side: ChannelSide { -addIBCChannel: chain: BaseChainHandle { -addIBCChannel: chain_id: ChainId { -addIBCChannel: id: "consu", -addIBCChannel: version: 0, -addIBCChannel: }, -addIBCChannel: runtime_sender: Sender { .. }, -addIBCChannel: }, -addIBCChannel: client_id: ClientId( -addIBCChannel: "07-tendermint-0", -addIBCChannel: ), -addIBCChannel: connection_id: ConnectionId( -addIBCChannel: "connection-0", -addIBCChannel: ), -addIBCChannel: port_id: PortId( -addIBCChannel: "consumer", -addIBCChannel: ), -addIBCChannel: channel_id: Some( -addIBCChannel: ChannelId( -addIBCChannel: "channel-0", -addIBCChannel: ), -addIBCChannel: ), -addIBCChannel: version: Some( -addIBCChannel: Version( -addIBCChannel: "1", -addIBCChannel: ), -addIBCChannel: ), -addIBCChannel: }, -addIBCChannel: b_side: ChannelSide { -addIBCChannel: chain: BaseChainHandle { -addIBCChannel: chain_id: ChainId { -addIBCChannel: id: "provi", -addIBCChannel: version: 0, -addIBCChannel: }, -addIBCChannel: runtime_sender: Sender { .. }, -addIBCChannel: }, -addIBCChannel: client_id: ClientId( -addIBCChannel: "07-tendermint-0", -addIBCChannel: ), -addIBCChannel: connection_id: ConnectionId( -addIBCChannel: "connection-0", -addIBCChannel: ), -addIBCChannel: port_id: PortId( -addIBCChannel: "provider", -addIBCChannel: ), -addIBCChannel: channel_id: Some( -addIBCChannel: ChannelId( -addIBCChannel: "channel-0", -addIBCChannel: ), -addIBCChannel: ), -addIBCChannel: version: Some( -addIBCChannel: Version( -addIBCChannel: "1", -addIBCChannel: ), -addIBCChannel: ), -addIBCChannel: }, -addIBCChannel: connection_delay: 0ns, -addIBCChannel: } -running misbehaviour: step 8 == delegateTokensAction -delegate cmd: /usr/local/bin/docker exec interchain-security-instance interchain-security-pd tx staking delegate cosmosvaloper19pe9pg5dv9k5fzgzmsrgnw9rl9asf7ddtrgtng 11000000stake --from validatoralice --chain-id provi --home /provi/validatoralice --node tcp://7.7.7.4:26658 --keyring-backend test -b block -y -running misbehaviour: step 9 == relayPacketsAction -running misbehaviour: step 10 == forkConsumerChainAction -forkConsumerChain - reconfigure node cmd: /usr/local/bin/docker exec interchain-security-instance /bin/bash /testnet-scripts/fork-consumer.sh interchain-security-cd alice consu 7.7.8 7.7.7 pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear /root/.hermes/config_fork.toml -fork consumer validator : + BIN=interchain-security-cd -fork consumer validator : + VAL_ID=alice -fork consumer validator : + CHAIN_ID=consu -fork consumer validator : + CONS_CHAIN_PREFIX=7.7.8 -fork consumer validator : + PROV_CHAIN_PREFIX=7.7.7 -fork consumer validator : + VAL_MNEMONIC='pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear' -fork consumer validator : + FORK_HERMES_CONFIG=/root/.hermes/config_fork.toml -fork consumer validator : + FORK_NODE_DIR=/consu/validatorfork -fork consumer validator : + mkdir /consu/validatorfork -fork consumer validator : + cp -r /consu/validatoralice/config /consu/validatoralice/data /consu/validatoralice/keyring-test /consu/validatoralice/logs /consu/validatorfork -fork consumer validator : + rm -f /consu/validatorfork/addrbook.json -fork consumer validator : + tee /root/.hermes/config_fork.toml -fork consumer validator : [global] -fork consumer validator : log_level = "debug" -fork consumer validator : -fork consumer validator : [mode] -fork consumer validator : -fork consumer validator : [mode.clients] -fork consumer validator : enabled = true -fork consumer validator : refresh = true -fork consumer validator : misbehaviour = true -fork consumer validator : -fork consumer validator : [mode.connections] -fork consumer validator : enabled = false -fork consumer validator : -fork consumer validator : [mode.channels] -fork consumer validator : enabled = false -fork consumer validator : -fork consumer validator : [mode.packets] -fork consumer validator : enabled = true -fork consumer validator : -fork consumer validator : [[chains]] -fork consumer validator : id = "consu" -fork consumer validator : ccv_consumer_chain = true -fork consumer validator : account_prefix = "cosmos" -fork consumer validator : clock_drift = "5s" -fork consumer validator : gas_multiplier = 1.1 -fork consumer validator : grpc_addr = "tcp://7.7.8.252:9091" -fork consumer validator : key_name = "query" -fork consumer validator : max_gas = 2000000 -fork consumer validator : rpc_addr = "http://7.7.8.252:26658" -fork consumer validator : rpc_timeout = "10s" -fork consumer validator : store_prefix = "ibc" -fork consumer validator : trusting_period = "2days" -fork consumer validator : websocket_addr = "ws://7.7.8.252:26658/websocket" -fork consumer validator : -fork consumer validator : [chains.gas_price] -fork consumer validator : denom = "stake" -fork consumer validator : price = 0.00 -fork consumer validator : -fork consumer validator : [chains.trust_threshold] -fork consumer validator : denominator = "3" -fork consumer validator : numerator = "1" -fork consumer validator : -fork consumer validator : [[chains]] -fork consumer validator : id = "provi" -fork consumer validator : account_prefix = "cosmos" -fork consumer validator : clock_drift = "5s" -fork consumer validator : gas_multiplier = 1.1 -fork consumer validator : grpc_addr = "tcp://7.7.7.4:9091" -fork consumer validator : key_name = "query" -fork consumer validator : max_gas = 2000000 -fork consumer validator : rpc_addr = "http://7.7.7.4:26658" -fork consumer validator : rpc_timeout = "10s" -fork consumer validator : store_prefix = "ibc" -fork consumer validator : trusting_period = "2days" -fork consumer validator : websocket_addr = "ws://7.7.7.4:26658/websocket" -fork consumer validator : -fork consumer validator : [chains.gas_price] -fork consumer validator : denom = "stake" -fork consumer validator : price = 0.00 -fork consumer validator : -fork consumer validator : [chains.trust_threshold] -fork consumer validator : denominator = "3" -fork consumer validator : numerator = "1" -fork consumer validator : + echo pave immune ethics wrap gain ceiling always holiday employ earth tumble real ice engage false unable carbon equal fresh sick tattoo nature pupil nuclear -fork consumer validator : + ip netns exec consu-sybil interchain-security-cd --home /consu/validatorfork --address tcp://7.7.8.252:26655 --rpc.laddr tcp://7.7.8.252:26658 --grpc.address 7.7.8.252:9091 --log_level info --p2p.laddr tcp://7.7.8.252:26656 --grpc-web.enable=false start -running misbehaviour: step 11 == startRelayerAction -started Hermes -running misbehaviour: step 12 == updateLightClientAction -=============== finished misbehaviour tests in 1m40.817256s =============== -=============== tearing down misbehaviour testRun =============== -TOTAL TIME ELAPSED: 2m28.504412625s From 0a6cd879d266f0a5e8ff86f6673c8ff76ea5f5bc Mon Sep 17 00:00:00 2001 From: Simon Noetzlin Date: Thu, 6 Jul 2023 15:58:18 +0200 Subject: [PATCH 25/33] typo --- Dockerfile | 2 +- tests/e2e/step_delegation.go | 43 ++++++++++++++++++++++-- tests/e2e/steps_consumer_misbehaviour.go | 2 +- 3 files changed, 42 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 03939617be..ba351f2e78 100644 --- a/Dockerfile +++ b/Dockerfile @@ -36,7 +36,7 @@ FROM informalofftermatt/cometmock:latest as cometmock-builder # Get GoRelayer FROM informalofftermatt/gorelayer:nogas AS gorelayer-builder -FROM --platform=linux/amd64 fedora:36 +FROM --platform=linux/arm64 fedora:36 RUN dnf update -y RUN dnf install -y which iproute iputils procps-ng vim-minimal tmux net-tools htop jq USER root diff --git a/tests/e2e/step_delegation.go b/tests/e2e/step_delegation.go index 05c963d81a..f33fc136d4 100644 --- a/tests/e2e/step_delegation.go +++ b/tests/e2e/step_delegation.go @@ -14,13 +14,32 @@ func stepsDelegate(consumerName string) []Step { chainID("provi"): ChainState{ ValPowers: &map[validatorID]uint{ validatorID("alice"): 511, - validatorID("bob"): 20, + validatorID("bob"): 500, + validatorID("carol"): 500, }, }, chainID(consumerName): ChainState{ ValPowers: &map[validatorID]uint{ validatorID("alice"): 500, - validatorID("bob"): 20, + validatorID("bob"): 500, + validatorID("carol"): 500, + }, + }, + }, + }, + { + action: SendTokensAction{ + chain: chainID(consumerName), + from: validatorID("alice"), + to: validatorID("bob"), + amount: 1, + }, + state: State{ + chainID(consumerName): ChainState{ + // Tx should not go through, ICS channel is not setup until first VSC packet has been relayed to consumer + ValBalances: &map[validatorID]uint{ + validatorID("alice"): 10000000000, + validatorID("bob"): 10000000000, }, }, }, @@ -36,7 +55,25 @@ func stepsDelegate(consumerName string) []Step { chainID(consumerName): ChainState{ ValPowers: &map[validatorID]uint{ validatorID("alice"): 511, - validatorID("bob"): 20, + validatorID("bob"): 500, + validatorID("carol"): 500, + }, + }, + }, + }, + { + action: SendTokensAction{ + chain: chainID(consumerName), + from: validatorID("alice"), + to: validatorID("bob"), + amount: 1, + }, + state: State{ + chainID(consumerName): ChainState{ + // Now tx should execute + ValBalances: &map[validatorID]uint{ + validatorID("alice"): 9999999999, + validatorID("bob"): 10000000001, }, }, }, diff --git a/tests/e2e/steps_consumer_misbehaviour.go b/tests/e2e/steps_consumer_misbehaviour.go index 13ac2d9361..b4f6e1eb3f 100644 --- a/tests/e2e/steps_consumer_misbehaviour.go +++ b/tests/e2e/steps_consumer_misbehaviour.go @@ -5,7 +5,7 @@ import ( ) // starts a provider chain and a consumer chain with two validators, -// where the voting power distributed in order that the smallest validator +// where the voting power is distributed in order that the smallest validator // can soft opt-out of validating the consumer chain. func stepsStartChainsWithSoftOptOut(consumerName string) []Step { s := []Step{ From 9ad0721b11c354a6f40391d2778f63245950c13e Mon Sep 17 00:00:00 2001 From: Simon Noetzlin Date: Thu, 6 Jul 2023 16:47:40 +0200 Subject: [PATCH 26/33] update doc --- Dockerfile | 2 +- tests/e2e/steps_consumer_misbehaviour.go | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index ba351f2e78..03939617be 100644 --- a/Dockerfile +++ b/Dockerfile @@ -36,7 +36,7 @@ FROM informalofftermatt/cometmock:latest as cometmock-builder # Get GoRelayer FROM informalofftermatt/gorelayer:nogas AS gorelayer-builder -FROM --platform=linux/arm64 fedora:36 +FROM --platform=linux/amd64 fedora:36 RUN dnf update -y RUN dnf install -y which iproute iputils procps-ng vim-minimal tmux net-tools htop jq USER root diff --git a/tests/e2e/steps_consumer_misbehaviour.go b/tests/e2e/steps_consumer_misbehaviour.go index b4f6e1eb3f..7cd4dbd613 100644 --- a/tests/e2e/steps_consumer_misbehaviour.go +++ b/tests/e2e/steps_consumer_misbehaviour.go @@ -198,14 +198,14 @@ func stepsStartChainsWithSoftOptOut(consumerName string) []Step { return s } -// stepsCauseConsumerMisbehaviour causes a consumer chain to misbehave by creating a fork, -// and relays the light client attack evidence to the provider +// stepsCauseConsumerMisbehaviour forks a consumer chain in order to cause a ICS misbehaviour. +// The malicious validator behind the attack gets jailed and the consumer client freezed on the provider. func stepsCauseConsumerMisbehaviour(consumerName string) []Step { consumerClientID := "07-tendermint-0" forkRelayerConfig := "/root/.hermes/config_fork.toml" - return []Step{ { + // start a consumer chain's validator clone action: forkConsumerChainAction{ consumerChain: chainID(consumerName), providerChain: chainID("provi"), @@ -215,6 +215,7 @@ func stepsCauseConsumerMisbehaviour(consumerName string) []Step { state: State{}, }, { + // start relayer to detect ICS misbehaviour action: startRelayerAction{}, state: State{ // The consumer client shouldn't be frozen on the provider yet since @@ -230,6 +231,8 @@ func stepsCauseConsumerMisbehaviour(consumerName string) []Step { }, }, { + // update the consumer client hosted on the provider + // using the consumer fork as the primary node action: updateLightClientAction{ hostChain: chainID("provi"), relayerConfig: forkRelayerConfig, From e0de36d72f25306e2039d997d01210953f14961d Mon Sep 17 00:00:00 2001 From: Simon Noetzlin Date: Tue, 11 Jul 2023 10:09:56 +0200 Subject: [PATCH 27/33] update ICS misbehaviour test --- .../ccv/provider/v1/tx.proto | 3 +- tests/e2e/actions.go | 2 - tests/integration/misbehaviour.go | 133 +++++++++++++----- x/ccv/provider/client/cli/tx.go | 8 +- x/ccv/provider/keeper/misbehaviour.go | 14 +- x/ccv/provider/keeper/msg_server.go | 9 +- x/ccv/provider/types/codec.go | 5 + x/ccv/provider/types/msg.go | 19 ++- x/ccv/provider/types/tx.pb.go | 79 +++++------ 9 files changed, 179 insertions(+), 93 deletions(-) diff --git a/proto/interchain_security/ccv/provider/v1/tx.proto b/proto/interchain_security/ccv/provider/v1/tx.proto index 61be3064ea..dafd1cee79 100644 --- a/proto/interchain_security/ccv/provider/v1/tx.proto +++ b/proto/interchain_security/ccv/provider/v1/tx.proto @@ -7,7 +7,6 @@ import "google/api/annotations.proto"; import "gogoproto/gogo.proto"; import "cosmos_proto/cosmos.proto"; import "google/protobuf/any.proto"; -import "ibc/lightclients/tendermint/v1/tendermint.proto"; // Msg defines the Msg service. service Msg { @@ -55,7 +54,7 @@ message MsgSubmitConsumerMisbehaviour { string submitter = 1; // The Misbehaviour of the consumer chain wrapping // two conflicting IBC headers - ibc.lightclients.tendermint.v1.Misbehaviour misbehaviour = 2; + google.protobuf.Any misbehaviour = 2; } message MsgSubmitConsumerMisbehaviourResponse {} diff --git a/tests/e2e/actions.go b/tests/e2e/actions.go index 2e1863f070..b48d20b687 100644 --- a/tests/e2e/actions.go +++ b/tests/e2e/actions.go @@ -840,8 +840,6 @@ func (tr TestRun) addChainToHermes( } saveMnemonicCommand := fmt.Sprintf(`echo '%s' > %s`, mnemonic, "/root/.hermes/mnemonic.txt") - fmt.Println("Add to hermes", action.validator) - fmt.Println(mnemonic) //#nosec G204 -- Bypass linter warning for spawning subprocess with cmd arguments. bz, err = exec.Command("docker", "exec", tr.containerConfig.instanceName, "bash", "-c", saveMnemonicCommand, diff --git a/tests/integration/misbehaviour.go b/tests/integration/misbehaviour.go index 13ad7e6230..1628bf890c 100644 --- a/tests/integration/misbehaviour.go +++ b/tests/integration/misbehaviour.go @@ -4,66 +4,123 @@ import ( "time" sdk "github.com/cosmos/cosmos-sdk/types" + stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" "github.com/cosmos/interchain-security/v2/x/ccv/provider/types" ibctmtypes "github.com/cosmos/ibc-go/v4/modules/light-clients/07-tendermint/types" tmtypes "github.com/tendermint/tendermint/types" ) +// TestHandleConsumerMisbehaviour verifies first that ICS misbehaviour is handled +// only if its conlflicting headers are valid. Then, it checks +// that validators who signed the incorrect header are jailed and tombstoned. func (s *CCVTestSuite) TestHandleConsumerMisbehaviour() { s.SetupCCVChannel(s.path) // required to have the consumer client revision height greater than 0 s.SendEmptyVSCPacket() + // create signing info for all validators for _, v := range s.providerChain.Vals.Validators { s.setDefaultValSigningInfo(*v) } - altTime := s.providerCtx().BlockTime().Add(time.Minute) + // create a new header timestamp + headerTs := s.providerCtx().BlockTime().Add(time.Minute) + // get trusted validators and height clientHeight := s.consumerChain.LastHeader.TrustedHeight clientTMValset := tmtypes.NewValidatorSet(s.consumerChain.Vals.Validators) clientSigners := s.consumerChain.Signers + // create an alternative validator set using more than 1/3 of the trusted validator set altValset := tmtypes.NewValidatorSet(s.consumerChain.Vals.Validators[0:2]) altSigners := make(map[string]tmtypes.PrivValidator, 1) altSigners[clientTMValset.Validators[0].Address.String()] = clientSigners[clientTMValset.Validators[0].Address.String()] altSigners[clientTMValset.Validators[1].Address.String()] = clientSigners[clientTMValset.Validators[1].Address.String()] - - misb := &ibctmtypes.Misbehaviour{ - ClientId: s.path.EndpointA.ClientID, - Header1: s.consumerChain.CreateTMClientHeader( - s.consumerChain.ChainID, - int64(clientHeight.RevisionHeight+1), - clientHeight, - altTime, - clientTMValset, - clientTMValset, - clientTMValset, - clientSigners, - ), - Header2: s.consumerChain.CreateTMClientHeader( - s.consumerChain.ChainID, - int64(clientHeight.RevisionHeight+1), - clientHeight, - altTime, - altValset, - altValset, - clientTMValset, - altSigners, - ), + testCases := []struct { + name string + misbehaviour *ibctmtypes.Misbehaviour + expPass bool + }{ + { + "invalid misbehaviour with empty header1 - shouldn't pass", + &ibctmtypes.Misbehaviour{ + Header1: &ibctmtypes.Header{}, + Header2: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight+1), + clientHeight, + headerTs, + altValset, + altValset, + clientTMValset, + altSigners, + ), + }, + false, + }, + { + "valid misbehaviour - should pass", + &ibctmtypes.Misbehaviour{ + ClientId: s.path.EndpointA.ClientID, + Header1: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight+1), + clientHeight, + headerTs, + clientTMValset, + clientTMValset, + clientTMValset, + clientSigners, + ), + // the resulting Header2 will have a different BlockID + // than Header1 since doesn't share the same valset and signers + Header2: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight+1), + clientHeight, + headerTs, + altValset, + altValset, + clientTMValset, + altSigners, + ), + }, + true, + }, } - err := s.providerApp.GetProviderKeeper().HandleConsumerMisbehaviour(s.providerCtx(), *misb) - s.NoError(err) - - for _, v := range altValset.Validators { - consuAddr := sdk.ConsAddress(v.Address.Bytes()) - provAddr := s.providerApp.GetProviderKeeper().GetProviderAddrFromConsumerAddr(s.providerCtx(), s.consumerChain.ChainID, types.NewConsumerConsAddress(consuAddr)) - val, ok := s.providerApp.GetTestStakingKeeper().GetValidatorByConsAddr(s.providerCtx(), provAddr.Address) - s.Require().True(ok) - s.Require().True(val.Jailed) - s.Require().True(s.providerApp.GetTestSlashingKeeper().IsTombstoned(s.providerCtx(), provAddr.Address)) + for _, tc := range testCases { + s.Run(tc.name, func() { + err := s.providerApp.GetProviderKeeper().HandleConsumerMisbehaviour(s.providerCtx(), tc.misbehaviour) + if tc.expPass { + s.NoError(err) + // Check that only the validators of the alternate validator set + // , i.e. altValset, are jailed and tombstoned on the provider + for _, consuVal := range clientTMValset.Validators { + provVal := s.getProviderValFromConsumerVal(*consuVal) + provConsAddr, err := provVal.GetConsAddr() + s.Require().NoError(err) + if _, ok := altSigners[consuVal.Address.String()]; ok { + s.Require().True(provVal.Jailed) + s.Require().True(s.providerApp.GetTestSlashingKeeper().IsTombstoned(s.providerCtx(), provConsAddr)) + } else { + s.Require().False(provVal.Jailed) + s.Require().False(s.providerApp.GetTestSlashingKeeper().IsTombstoned(s.providerCtx(), provConsAddr)) + } + } + } else { + // Check that no validators are jailed or tombstoned on the provider + for _, consuVal := range clientTMValset.Validators { + s.Error(err) + provVal := s.getProviderValFromConsumerVal(*consuVal) + s.Require().False(provVal.Jailed) + provConsAddr, err := provVal.GetConsAddr() + s.Require().NoError(err) + s.Require().False(s.providerApp.GetTestSlashingKeeper().IsTombstoned(s.providerCtx(), provConsAddr)) + } + } + }) } } @@ -234,3 +291,11 @@ func (s *CCVTestSuite) TestConstructLightClientEvidence() { }) } } + +func (s *CCVTestSuite) getProviderValFromConsumerVal(valAddr tmtypes.Validator) stakingtypes.Validator { + consuAddr := types.NewConsumerConsAddress(sdk.ConsAddress(valAddr.Address.Bytes())) + provAddr := s.providerApp.GetProviderKeeper().GetProviderAddrFromConsumerAddr(s.providerCtx(), s.consumerChain.ChainID, consuAddr) + val, ok := s.providerApp.GetTestStakingKeeper().GetValidatorByConsAddr(s.providerCtx(), provAddr.Address) + s.Require().True(ok) + return val +} diff --git a/x/ccv/provider/client/cli/tx.go b/x/ccv/provider/client/cli/tx.go index 87b4179b0b..f6776fc1f9 100644 --- a/x/ccv/provider/client/cli/tx.go +++ b/x/ccv/provider/client/cli/tx.go @@ -12,7 +12,7 @@ import ( "github.com/cosmos/cosmos-sdk/version" sdk "github.com/cosmos/cosmos-sdk/types" - ibctmtypes "github.com/cosmos/ibc-go/v4/modules/light-clients/07-tendermint/types" + "github.com/cosmos/ibc-go/v4/modules/core/exported" "github.com/cosmos/interchain-security/v2/x/ccv/provider/types" ) @@ -117,12 +117,12 @@ func NewSubmitConsumerMisbehaviourCmd() *cobra.Command { WithTxConfig(clientCtx.TxConfig).WithAccountRetriever(clientCtx.AccountRetriever) submitter := clientCtx.GetFromAddress() - var misbehavior ibctmtypes.Misbehaviour - if err := clientCtx.Codec.UnmarshalInterfaceJSON([]byte(args[1]), &misbehavior); err != nil { + var misbehaviour exported.Misbehaviour + if err := clientCtx.Codec.UnmarshalInterfaceJSON([]byte(args[1]), misbehaviour); err != nil { return err } - msg, err := types.NewMsgSubmitConsumerMisbehaviour(submitter, &misbehavior) + msg, err := types.NewMsgSubmitConsumerMisbehaviour(submitter, misbehaviour) if err != nil { return err } diff --git a/x/ccv/provider/keeper/misbehaviour.go b/x/ccv/provider/keeper/misbehaviour.go index e285adf652..61748d615f 100644 --- a/x/ccv/provider/keeper/misbehaviour.go +++ b/x/ccv/provider/keeper/misbehaviour.go @@ -8,6 +8,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" evidencetypes "github.com/cosmos/cosmos-sdk/x/evidence/types" + "github.com/cosmos/ibc-go/v4/modules/core/exported" ibctmtypes "github.com/cosmos/ibc-go/v4/modules/light-clients/07-tendermint/types" tmtypes "github.com/tendermint/tendermint/types" ) @@ -15,20 +16,25 @@ import ( // HandleConsumerMisbehaviour checks whether the given IBC misbehaviour is valid and, if they are, the misbehaving // CheckConsumerMisbehaviour check that the given IBC misbehaviour headers forms a valid light client attack evidence. // proceed to the jailing and tombstoning of the bzyantine validators. -func (k Keeper) HandleConsumerMisbehaviour(ctx sdk.Context, misbehaviour ibctmtypes.Misbehaviour) error { +func (k Keeper) HandleConsumerMisbehaviour(ctx sdk.Context, misbehaviour exported.Misbehaviour) error { logger := ctx.Logger() - if err := k.clientKeeper.CheckMisbehaviourAndUpdateState(ctx, &misbehaviour); err != nil { + // Check that the validity of the misbehaviour + if err := k.clientKeeper.CheckMisbehaviourAndUpdateState(ctx, misbehaviour); err != nil { logger.Info("Misbehaviour rejected", err.Error()) return err } + + // Assign the Tendermint client misbehaviour concrete type + tmMisbehaviour := misbehaviour.(*ibctmtypes.Misbehaviour) + // Since the misbehaviour packet was received within the trusting period // w.r.t to the last trusted consensus it entails that the infraction age // isn't too old. see ibc-go/modules/light-clients/07-tendermint/types/misbehaviour_handle.go // construct a ligth client attack evidence - evidence, err := k.ConstructLightClientEvidence(ctx, misbehaviour) + evidence, err := k.ConstructLightClientEvidence(ctx, *tmMisbehaviour) if err != nil { return err } @@ -39,7 +45,7 @@ func (k Keeper) HandleConsumerMisbehaviour(ctx sdk.Context, misbehaviour ibctmty for _, v := range evidence.ByzantineValidators { // convert consumer consensus address consuAddr := sdk.ConsAddress(v.Address.Bytes()) - provAddr := k.GetProviderAddrFromConsumerAddr(ctx, misbehaviour.Header1.Header.ChainID, types.NewConsumerConsAddress(consuAddr)) + provAddr := k.GetProviderAddrFromConsumerAddr(ctx, tmMisbehaviour.Header1.Header.ChainID, types.NewConsumerConsAddress(consuAddr)) k.stakingKeeper.ValidatorByConsAddr(ctx, consuAddr) val, ok := k.stakingKeeper.GetValidatorByConsAddr(ctx, provAddr.Address) diff --git a/x/ccv/provider/keeper/msg_server.go b/x/ccv/provider/keeper/msg_server.go index ca22b66f0d..d11ba91685 100644 --- a/x/ccv/provider/keeper/msg_server.go +++ b/x/ccv/provider/keeper/msg_server.go @@ -7,6 +7,7 @@ import ( errorsmod "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + clienttypes "github.com/cosmos/ibc-go/v4/modules/core/02-client/types" "github.com/cosmos/interchain-security/v2/x/ccv/provider/types" ccvtypes "github.com/cosmos/interchain-security/v2/x/ccv/types" tmprotocrypto "github.com/tendermint/tendermint/proto/tendermint/crypto" @@ -129,7 +130,13 @@ func (k msgServer) RegisterConsumerRewardDenom(goCtx context.Context, msg *types func (k msgServer) SubmitConsumerMisbehaviour(goCtx context.Context, msg *types.MsgSubmitConsumerMisbehaviour) (*types.MsgSubmitConsumerMisbehaviourResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) - if err := k.Keeper.HandleConsumerMisbehaviour(ctx, *msg.Misbehaviour); err != nil { + + misbehaviour, err := clienttypes.UnpackMisbehaviour(msg.Misbehaviour) + if err != nil { + return nil, err + } + + if err := k.Keeper.HandleConsumerMisbehaviour(ctx, misbehaviour); err != nil { return &types.MsgSubmitConsumerMisbehaviourResponse{}, err } diff --git a/x/ccv/provider/types/codec.go b/x/ccv/provider/types/codec.go index 0ef3c2d296..2f28b398f5 100644 --- a/x/ccv/provider/types/codec.go +++ b/x/ccv/provider/types/codec.go @@ -6,6 +6,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/msgservice" govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" + "github.com/cosmos/ibc-go/v4/modules/core/exported" ) // RegisterLegacyAminoCodec registers the necessary x/ibc transfer interfaces and concrete types @@ -40,6 +41,10 @@ func RegisterInterfaces(registry codectypes.InterfaceRegistry) { (*sdk.Msg)(nil), &MsgSubmitConsumerMisbehaviour{}, ) + registry.RegisterInterface( + "ibc.core.client.v1.Misbehaviour", + (*exported.Misbehaviour)(nil), + ) msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) } diff --git a/x/ccv/provider/types/msg.go b/x/ccv/provider/types/msg.go index 9496122342..d3d5a8a60b 100644 --- a/x/ccv/provider/types/msg.go +++ b/x/ccv/provider/types/msg.go @@ -6,8 +6,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - - ibctmtypes "github.com/cosmos/ibc-go/v4/modules/light-clients/07-tendermint/types" + ibcclienttypes "github.com/cosmos/ibc-go/v4/modules/core/02-client/types" + "github.com/cosmos/ibc-go/v4/modules/core/exported" ) // provider message types @@ -147,8 +147,13 @@ func (msg MsgRegisterConsumerRewardDenom) ValidateBasic() error { return nil } -func NewMsgSubmitConsumerMisbehaviour(submitter sdk.AccAddress, m *ibctmtypes.Misbehaviour) (*MsgSubmitConsumerMisbehaviour, error) { - return &MsgSubmitConsumerMisbehaviour{Submitter: submitter.String(), Misbehaviour: m}, nil +func NewMsgSubmitConsumerMisbehaviour(submitter sdk.AccAddress, misbehaviour exported.Misbehaviour) (*MsgSubmitConsumerMisbehaviour, error) { + anyMisbehaviour, err := ibcclienttypes.PackMisbehaviour(misbehaviour) + if err != nil { + return nil, err + } + + return &MsgSubmitConsumerMisbehaviour{Submitter: submitter.String(), Misbehaviour: anyMisbehaviour}, nil } // Route implements the sdk.Msg interface. @@ -164,7 +169,11 @@ func (msg MsgSubmitConsumerMisbehaviour) ValidateBasic() error { if msg.Submitter == "" { return sdkerrors.Wrap(sdkerrors.ErrInvalidAddress, msg.Submitter) } - if err := msg.Misbehaviour.ValidateBasic(); err != nil { + misbehaviour, err := ibcclienttypes.UnpackMisbehaviour(msg.Misbehaviour) + if err != nil { + return err + } + if err := misbehaviour.ValidateBasic(); err != nil { return err } return nil diff --git a/x/ccv/provider/types/tx.pb.go b/x/ccv/provider/types/tx.pb.go index f27ab52533..84f93dc4b1 100644 --- a/x/ccv/provider/types/tx.pb.go +++ b/x/ccv/provider/types/tx.pb.go @@ -6,8 +6,7 @@ package types import ( context "context" fmt "fmt" - _ "github.com/cosmos/cosmos-sdk/codec/types" - types "github.com/cosmos/ibc-go/v4/modules/light-clients/07-tendermint/types" + types "github.com/cosmos/cosmos-sdk/codec/types" _ "github.com/gogo/protobuf/gogoproto" grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" @@ -199,7 +198,7 @@ type MsgSubmitConsumerMisbehaviour struct { Submitter string `protobuf:"bytes,1,opt,name=submitter,proto3" json:"submitter,omitempty"` // The Misbehaviour of the consumer chain wrapping // two conflicting IBC headers - Misbehaviour *types.Misbehaviour `protobuf:"bytes,2,opt,name=misbehaviour,proto3" json:"misbehaviour,omitempty"` + Misbehaviour *types.Any `protobuf:"bytes,2,opt,name=misbehaviour,proto3" json:"misbehaviour,omitempty"` } func (m *MsgSubmitConsumerMisbehaviour) Reset() { *m = MsgSubmitConsumerMisbehaviour{} } @@ -285,43 +284,41 @@ func init() { } var fileDescriptor_43221a4391e9fbf4 = []byte{ - // 568 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0x3f, 0x6f, 0x13, 0x4f, - 0x10, 0xf5, 0xfd, 0xa2, 0x1f, 0x24, 0x9b, 0x80, 0xc4, 0xc9, 0x85, 0x73, 0x98, 0x33, 0x18, 0x01, - 0x29, 0xc2, 0xae, 0x6c, 0x0a, 0x44, 0x24, 0x0a, 0x3b, 0x34, 0x10, 0x59, 0x42, 0x47, 0x81, 0x44, - 0x81, 0x75, 0xb7, 0xbb, 0xac, 0x57, 0xf8, 0x76, 0x4f, 0xbb, 0x7b, 0x47, 0xee, 0x1b, 0x50, 0x42, - 0x85, 0xe8, 0xf2, 0x01, 0x90, 0xf8, 0x1a, 0x94, 0x29, 0xa9, 0x10, 0xb2, 0x1b, 0x6a, 0x4a, 0x2a, - 0xe4, 0xfb, 0x63, 0x5f, 0x84, 0xb1, 0x2c, 0xa0, 0xdb, 0x99, 0x79, 0xfb, 0xde, 0x1b, 0xcd, 0x68, - 0xc0, 0x3e, 0x17, 0x86, 0x2a, 0x3c, 0xf2, 0xb9, 0x18, 0x6a, 0x8a, 0x63, 0xc5, 0x4d, 0x8a, 0x30, - 0x4e, 0x50, 0xa4, 0x64, 0xc2, 0x09, 0x55, 0x28, 0xe9, 0x20, 0x73, 0x0c, 0x23, 0x25, 0x8d, 0xb4, - 0xaf, 0x2f, 0x41, 0x43, 0x8c, 0x13, 0x58, 0xa2, 0x61, 0xd2, 0x71, 0x9a, 0x4c, 0x4a, 0x36, 0xa6, - 0xc8, 0x8f, 0x38, 0xf2, 0x85, 0x90, 0xc6, 0x37, 0x5c, 0x0a, 0x9d, 0x53, 0x38, 0x75, 0x26, 0x99, - 0xcc, 0x9e, 0x68, 0xf6, 0x2a, 0xb2, 0xbb, 0x58, 0xea, 0x50, 0xea, 0x61, 0x5e, 0xc8, 0x83, 0xb2, - 0x54, 0xd0, 0x65, 0x51, 0x10, 0xbf, 0x40, 0xbe, 0x48, 0x8b, 0x12, 0xe2, 0x01, 0x46, 0x63, 0xce, - 0x46, 0x06, 0x8f, 0x39, 0x15, 0x46, 0x23, 0x43, 0x05, 0xa1, 0x2a, 0xe4, 0xc2, 0x64, 0xbe, 0xe7, - 0x51, 0xfe, 0xa1, 0xfd, 0xce, 0x02, 0xf5, 0x81, 0x66, 0x3d, 0xad, 0x39, 0x13, 0x87, 0x52, 0xe8, - 0x38, 0xa4, 0xea, 0x88, 0xa6, 0xf6, 0x2e, 0xd8, 0xcc, 0xbb, 0xe2, 0xa4, 0x61, 0x5d, 0xb5, 0xf6, - 0xb6, 0xbc, 0xf3, 0x59, 0xfc, 0x90, 0xd8, 0x77, 0xc1, 0x85, 0xb2, 0xbb, 0xa1, 0x4f, 0x88, 0x6a, - 0xfc, 0x37, 0xab, 0xf7, 0xed, 0xef, 0x5f, 0x5a, 0x17, 0x53, 0x3f, 0x1c, 0x1f, 0xb4, 0x67, 0x59, - 0xaa, 0x75, 0xdb, 0xdb, 0x29, 0x81, 0x3d, 0x42, 0x94, 0x7d, 0x0d, 0xec, 0xe0, 0x42, 0x62, 0xf8, - 0x92, 0xa6, 0x8d, 0x8d, 0x8c, 0x77, 0x1b, 0x2f, 0x64, 0x0f, 0x36, 0x5f, 0x9f, 0xb4, 0x6a, 0xdf, - 0x4e, 0x5a, 0xb5, 0xb6, 0x0b, 0x9a, 0xcb, 0x8c, 0x79, 0x54, 0x47, 0x52, 0x68, 0xda, 0x7e, 0x0e, - 0xdc, 0x81, 0x66, 0x1e, 0x65, 0x5c, 0x1b, 0xaa, 0x4a, 0x84, 0x47, 0x5f, 0xf9, 0x8a, 0x3c, 0xa0, - 0x42, 0x86, 0x76, 0x1d, 0xfc, 0x4f, 0x66, 0x8f, 0xc2, 0x7f, 0x1e, 0xd8, 0x4d, 0xb0, 0x45, 0x68, - 0x24, 0x35, 0x37, 0xb2, 0x70, 0xee, 0x2d, 0x12, 0x15, 0xfd, 0x3d, 0x70, 0x73, 0x35, 0xff, 0xdc, - 0xc9, 0x7b, 0x0b, 0x5c, 0x19, 0x68, 0xf6, 0x24, 0x0e, 0x42, 0x6e, 0x4a, 0xe0, 0x80, 0xeb, 0x80, - 0x8e, 0xfc, 0x84, 0xcb, 0x58, 0xcd, 0x34, 0x75, 0x56, 0x35, 0x54, 0x15, 0x6e, 0x16, 0x09, 0xfb, - 0x31, 0xd8, 0x09, 0x2b, 0xe8, 0xcc, 0xd4, 0x76, 0x77, 0x1f, 0xf2, 0x00, 0xc3, 0xea, 0x2c, 0x61, - 0x65, 0x7a, 0x49, 0x07, 0x56, 0x15, 0xbc, 0x33, 0x0c, 0x95, 0x2e, 0x6e, 0x81, 0x1b, 0x2b, 0xad, - 0x95, 0x4d, 0x74, 0x7f, 0x6c, 0x80, 0x8d, 0x81, 0x66, 0xf6, 0x5b, 0x0b, 0x5c, 0xfa, 0x75, 0x1b, - 0xee, 0xc1, 0x35, 0xf6, 0x1c, 0x2e, 0x9b, 0x97, 0xd3, 0xfb, 0xe3, 0xaf, 0xa5, 0x37, 0xfb, 0xa3, - 0x05, 0x2e, 0xaf, 0x1a, 0xf4, 0xe1, 0xba, 0x12, 0x2b, 0x48, 0x9c, 0xa3, 0x7f, 0x40, 0x32, 0x77, - 0xfc, 0xc1, 0x02, 0xce, 0x8a, 0x7d, 0xe8, 0xaf, 0xab, 0xf5, 0x7b, 0x0e, 0xe7, 0xd1, 0xdf, 0x73, - 0x94, 0x76, 0xfb, 0x4f, 0x3f, 0x4d, 0x5c, 0xeb, 0x74, 0xe2, 0x5a, 0x5f, 0x27, 0xae, 0xf5, 0x66, - 0xea, 0xd6, 0x4e, 0xa7, 0x6e, 0xed, 0xf3, 0xd4, 0xad, 0x3d, 0xbb, 0xcf, 0xb8, 0x19, 0xc5, 0x01, - 0xc4, 0x32, 0x2c, 0x8e, 0x10, 0x5a, 0xc8, 0xde, 0x9e, 0xdf, 0xc7, 0xa4, 0x8b, 0x8e, 0xcf, 0x1e, - 0x49, 0x93, 0x46, 0x54, 0x07, 0xe7, 0xb2, 0x2b, 0x73, 0xe7, 0x67, 0x00, 0x00, 0x00, 0xff, 0xff, - 0xe3, 0x4f, 0x57, 0x26, 0x55, 0x05, 0x00, 0x00, + // 534 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x94, 0xb1, 0x6f, 0xd3, 0x40, + 0x14, 0xc6, 0x63, 0x22, 0xa0, 0xbd, 0x06, 0x24, 0xac, 0x0c, 0xa9, 0x09, 0x0e, 0x04, 0x01, 0x1d, + 0xc0, 0x56, 0xc3, 0x00, 0x54, 0x62, 0x48, 0xca, 0x02, 0x55, 0x16, 0x33, 0x20, 0x31, 0x10, 0x39, + 0x77, 0xc7, 0xe5, 0x44, 0x7d, 0x67, 0xdd, 0x3b, 0x9b, 0x7a, 0x64, 0x63, 0x84, 0x89, 0xb5, 0x7f, + 0x00, 0x12, 0xff, 0x06, 0x63, 0x47, 0x26, 0x84, 0x92, 0x85, 0x99, 0x91, 0x09, 0xc5, 0xf6, 0x25, + 0xa9, 0x08, 0x51, 0x04, 0x6c, 0xf7, 0xde, 0xfb, 0xfc, 0x7d, 0x3f, 0xe9, 0x59, 0x0f, 0xdd, 0xe6, + 0x42, 0x53, 0x85, 0x47, 0x21, 0x17, 0x03, 0xa0, 0x38, 0x51, 0x5c, 0x67, 0x3e, 0xc6, 0xa9, 0x1f, + 0x2b, 0x99, 0x72, 0x42, 0x95, 0x9f, 0xee, 0xfa, 0xfa, 0xc8, 0x8b, 0x95, 0xd4, 0xd2, 0xbe, 0xbe, + 0x44, 0xed, 0x61, 0x9c, 0x7a, 0x46, 0xed, 0xa5, 0xbb, 0x4e, 0x93, 0x49, 0xc9, 0x0e, 0xa9, 0x1f, + 0xc6, 0xdc, 0x0f, 0x85, 0x90, 0x3a, 0xd4, 0x5c, 0x0a, 0x28, 0x2c, 0x9c, 0x3a, 0x93, 0x4c, 0xe6, + 0x4f, 0x7f, 0xfa, 0x2a, 0xbb, 0xdb, 0x58, 0x42, 0x24, 0x61, 0x50, 0x0c, 0x8a, 0xc2, 0x8c, 0x4a, + 0xbb, 0xbc, 0x1a, 0x26, 0x2f, 0xfd, 0x50, 0x64, 0xc5, 0xa8, 0xfd, 0xc1, 0x42, 0xf5, 0x3e, 0xb0, + 0x2e, 0x00, 0x67, 0x62, 0x5f, 0x0a, 0x48, 0x22, 0xaa, 0x0e, 0x68, 0x66, 0x6f, 0xa3, 0x8d, 0x02, + 0x92, 0x93, 0x86, 0x75, 0xd5, 0xda, 0xd9, 0x0c, 0xce, 0xe7, 0xf5, 0x63, 0x62, 0xdf, 0x43, 0x17, + 0x0c, 0xec, 0x20, 0x24, 0x44, 0x35, 0xce, 0x4c, 0xe7, 0x3d, 0xfb, 0xc7, 0xd7, 0xd6, 0xc5, 0x2c, + 0x8c, 0x0e, 0xf7, 0xda, 0xd3, 0x2e, 0x05, 0x68, 0x07, 0x35, 0x23, 0xec, 0x12, 0xa2, 0xec, 0x6b, + 0xa8, 0x86, 0xcb, 0x88, 0xc1, 0x2b, 0x9a, 0x35, 0xaa, 0xb9, 0xef, 0x16, 0x9e, 0xc7, 0xee, 0x6d, + 0xbc, 0x3d, 0x6e, 0x55, 0xbe, 0x1f, 0xb7, 0x2a, 0x6d, 0x17, 0x35, 0x97, 0x81, 0x05, 0x14, 0x62, + 0x29, 0x80, 0xb6, 0x5f, 0x20, 0xb7, 0x0f, 0x2c, 0xa0, 0x8c, 0x83, 0xa6, 0xca, 0x28, 0x02, 0xfa, + 0x3a, 0x54, 0xe4, 0x11, 0x15, 0x32, 0xb2, 0xeb, 0xe8, 0x2c, 0x99, 0x3e, 0x4a, 0xfe, 0xa2, 0xb0, + 0x9b, 0x68, 0x93, 0xd0, 0x58, 0x02, 0xd7, 0xb2, 0x24, 0x0f, 0xe6, 0x8d, 0x85, 0xfc, 0x1d, 0x74, + 0x73, 0xb5, 0xff, 0x8c, 0xe4, 0x8d, 0x85, 0xae, 0xf4, 0x81, 0x3d, 0x4d, 0x86, 0x11, 0xd7, 0x46, + 0xd8, 0xe7, 0x30, 0xa4, 0xa3, 0x30, 0xe5, 0x32, 0x51, 0xd3, 0x4c, 0xc8, 0xa7, 0x9a, 0xaa, 0x92, + 0x66, 0xde, 0xb0, 0xef, 0xa3, 0x5a, 0xb4, 0xa0, 0xce, 0xa1, 0xb6, 0x3a, 0x75, 0xaf, 0xd8, 0x9a, + 0x67, 0xb6, 0xe6, 0x75, 0x45, 0x16, 0x9c, 0x52, 0x2e, 0xd0, 0xde, 0x42, 0x37, 0x56, 0x22, 0x18, + 0xd8, 0xce, 0xcf, 0x2a, 0xaa, 0xf6, 0x81, 0xd9, 0xef, 0x2d, 0x74, 0xe9, 0xf7, 0xad, 0x3f, 0xf0, + 0xd6, 0xf8, 0x3d, 0xbd, 0x65, 0x7b, 0x71, 0xba, 0x7f, 0xfd, 0xa9, 0x61, 0xb3, 0x3f, 0x59, 0xe8, + 0xf2, 0xaa, 0x85, 0xee, 0xaf, 0x1b, 0xb1, 0xc2, 0xc4, 0x39, 0xf8, 0x0f, 0x26, 0x33, 0xe2, 0x8f, + 0x16, 0x72, 0x56, 0xec, 0xbd, 0xb7, 0x6e, 0xd6, 0x9f, 0x3d, 0x9c, 0x27, 0xff, 0xee, 0x61, 0x70, + 0x7b, 0xcf, 0x3e, 0x8f, 0x5d, 0xeb, 0x64, 0xec, 0x5a, 0xdf, 0xc6, 0xae, 0xf5, 0x6e, 0xe2, 0x56, + 0x4e, 0x26, 0x6e, 0xe5, 0xcb, 0xc4, 0xad, 0x3c, 0x7f, 0xc8, 0xb8, 0x1e, 0x25, 0x43, 0x0f, 0xcb, + 0xa8, 0xbc, 0x1d, 0xfe, 0x3c, 0xf6, 0xce, 0xec, 0xac, 0xa5, 0x1d, 0xff, 0xe8, 0xf4, 0x6d, 0xd3, + 0x59, 0x4c, 0x61, 0x78, 0x2e, 0xff, 0x49, 0xef, 0xfe, 0x0a, 0x00, 0x00, 0xff, 0xff, 0x48, 0x5a, + 0xaf, 0x54, 0x0c, 0x05, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1218,7 +1215,7 @@ func (m *MsgSubmitConsumerMisbehaviour) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Misbehaviour == nil { - m.Misbehaviour = &types.Misbehaviour{} + m.Misbehaviour = &types.Any{} } if err := m.Misbehaviour.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err From 1b718be335576ca975d9664f05cdd1c612df552f Mon Sep 17 00:00:00 2001 From: Simon Noetzlin Date: Tue, 11 Jul 2023 10:16:02 +0200 Subject: [PATCH 28/33] update ICS misbehaviour test --- tests/integration/misbehaviour.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/integration/misbehaviour.go b/tests/integration/misbehaviour.go index 1628bf890c..9934f1d77b 100644 --- a/tests/integration/misbehaviour.go +++ b/tests/integration/misbehaviour.go @@ -5,8 +5,10 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/cosmos/ibc-go/v4/modules/core/exported" "github.com/cosmos/interchain-security/v2/x/ccv/provider/types" + ibcsolotypes "github.com/cosmos/ibc-go/v4/modules/light-clients/06-solomachine/types" ibctmtypes "github.com/cosmos/ibc-go/v4/modules/light-clients/07-tendermint/types" tmtypes "github.com/tendermint/tendermint/types" ) @@ -39,9 +41,14 @@ func (s *CCVTestSuite) TestHandleConsumerMisbehaviour() { altSigners[clientTMValset.Validators[1].Address.String()] = clientSigners[clientTMValset.Validators[1].Address.String()] testCases := []struct { name string - misbehaviour *ibctmtypes.Misbehaviour + misbehaviour exported.Misbehaviour expPass bool }{ + { + "invalid misbehaviour client type - shouldn't pass", + &ibcsolotypes.Misbehaviour{}, + false, + }, { "invalid misbehaviour with empty header1 - shouldn't pass", &ibctmtypes.Misbehaviour{ From 4357efa05c6ec1453a30ba9a28d26dd6f59b13da Mon Sep 17 00:00:00 2001 From: Simon Noetzlin Date: Tue, 11 Jul 2023 11:21:31 +0200 Subject: [PATCH 29/33] revert mixed commits --- .../ccv/provider/v1/tx.proto | 3 +- tests/e2e/actions.go | 2 + tests/integration/misbehaviour.go | 140 +++++------------- x/ccv/provider/client/cli/tx.go | 8 +- x/ccv/provider/keeper/misbehaviour.go | 14 +- x/ccv/provider/keeper/msg_server.go | 9 +- x/ccv/provider/types/codec.go | 5 - x/ccv/provider/types/msg.go | 19 +-- x/ccv/provider/types/tx.pb.go | 79 +++++----- 9 files changed, 93 insertions(+), 186 deletions(-) diff --git a/proto/interchain_security/ccv/provider/v1/tx.proto b/proto/interchain_security/ccv/provider/v1/tx.proto index dafd1cee79..61be3064ea 100644 --- a/proto/interchain_security/ccv/provider/v1/tx.proto +++ b/proto/interchain_security/ccv/provider/v1/tx.proto @@ -7,6 +7,7 @@ import "google/api/annotations.proto"; import "gogoproto/gogo.proto"; import "cosmos_proto/cosmos.proto"; import "google/protobuf/any.proto"; +import "ibc/lightclients/tendermint/v1/tendermint.proto"; // Msg defines the Msg service. service Msg { @@ -54,7 +55,7 @@ message MsgSubmitConsumerMisbehaviour { string submitter = 1; // The Misbehaviour of the consumer chain wrapping // two conflicting IBC headers - google.protobuf.Any misbehaviour = 2; + ibc.lightclients.tendermint.v1.Misbehaviour misbehaviour = 2; } message MsgSubmitConsumerMisbehaviourResponse {} diff --git a/tests/e2e/actions.go b/tests/e2e/actions.go index b48d20b687..2e1863f070 100644 --- a/tests/e2e/actions.go +++ b/tests/e2e/actions.go @@ -840,6 +840,8 @@ func (tr TestRun) addChainToHermes( } saveMnemonicCommand := fmt.Sprintf(`echo '%s' > %s`, mnemonic, "/root/.hermes/mnemonic.txt") + fmt.Println("Add to hermes", action.validator) + fmt.Println(mnemonic) //#nosec G204 -- Bypass linter warning for spawning subprocess with cmd arguments. bz, err = exec.Command("docker", "exec", tr.containerConfig.instanceName, "bash", "-c", saveMnemonicCommand, diff --git a/tests/integration/misbehaviour.go b/tests/integration/misbehaviour.go index 9934f1d77b..13ad7e6230 100644 --- a/tests/integration/misbehaviour.go +++ b/tests/integration/misbehaviour.go @@ -4,130 +4,66 @@ import ( "time" sdk "github.com/cosmos/cosmos-sdk/types" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" - "github.com/cosmos/ibc-go/v4/modules/core/exported" "github.com/cosmos/interchain-security/v2/x/ccv/provider/types" - ibcsolotypes "github.com/cosmos/ibc-go/v4/modules/light-clients/06-solomachine/types" ibctmtypes "github.com/cosmos/ibc-go/v4/modules/light-clients/07-tendermint/types" tmtypes "github.com/tendermint/tendermint/types" ) -// TestHandleConsumerMisbehaviour verifies first that ICS misbehaviour is handled -// only if its conlflicting headers are valid. Then, it checks -// that validators who signed the incorrect header are jailed and tombstoned. func (s *CCVTestSuite) TestHandleConsumerMisbehaviour() { s.SetupCCVChannel(s.path) // required to have the consumer client revision height greater than 0 s.SendEmptyVSCPacket() - // create signing info for all validators for _, v := range s.providerChain.Vals.Validators { s.setDefaultValSigningInfo(*v) } - // create a new header timestamp - headerTs := s.providerCtx().BlockTime().Add(time.Minute) + altTime := s.providerCtx().BlockTime().Add(time.Minute) - // get trusted validators and height clientHeight := s.consumerChain.LastHeader.TrustedHeight clientTMValset := tmtypes.NewValidatorSet(s.consumerChain.Vals.Validators) clientSigners := s.consumerChain.Signers - // create an alternative validator set using more than 1/3 of the trusted validator set altValset := tmtypes.NewValidatorSet(s.consumerChain.Vals.Validators[0:2]) altSigners := make(map[string]tmtypes.PrivValidator, 1) altSigners[clientTMValset.Validators[0].Address.String()] = clientSigners[clientTMValset.Validators[0].Address.String()] altSigners[clientTMValset.Validators[1].Address.String()] = clientSigners[clientTMValset.Validators[1].Address.String()] - testCases := []struct { - name string - misbehaviour exported.Misbehaviour - expPass bool - }{ - { - "invalid misbehaviour client type - shouldn't pass", - &ibcsolotypes.Misbehaviour{}, - false, - }, - { - "invalid misbehaviour with empty header1 - shouldn't pass", - &ibctmtypes.Misbehaviour{ - Header1: &ibctmtypes.Header{}, - Header2: s.consumerChain.CreateTMClientHeader( - s.consumerChain.ChainID, - int64(clientHeight.RevisionHeight+1), - clientHeight, - headerTs, - altValset, - altValset, - clientTMValset, - altSigners, - ), - }, - false, - }, - { - "valid misbehaviour - should pass", - &ibctmtypes.Misbehaviour{ - ClientId: s.path.EndpointA.ClientID, - Header1: s.consumerChain.CreateTMClientHeader( - s.consumerChain.ChainID, - int64(clientHeight.RevisionHeight+1), - clientHeight, - headerTs, - clientTMValset, - clientTMValset, - clientTMValset, - clientSigners, - ), - // the resulting Header2 will have a different BlockID - // than Header1 since doesn't share the same valset and signers - Header2: s.consumerChain.CreateTMClientHeader( - s.consumerChain.ChainID, - int64(clientHeight.RevisionHeight+1), - clientHeight, - headerTs, - altValset, - altValset, - clientTMValset, - altSigners, - ), - }, - true, - }, + + misb := &ibctmtypes.Misbehaviour{ + ClientId: s.path.EndpointA.ClientID, + Header1: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight+1), + clientHeight, + altTime, + clientTMValset, + clientTMValset, + clientTMValset, + clientSigners, + ), + Header2: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight+1), + clientHeight, + altTime, + altValset, + altValset, + clientTMValset, + altSigners, + ), } - for _, tc := range testCases { - s.Run(tc.name, func() { - err := s.providerApp.GetProviderKeeper().HandleConsumerMisbehaviour(s.providerCtx(), tc.misbehaviour) - if tc.expPass { - s.NoError(err) - // Check that only the validators of the alternate validator set - // , i.e. altValset, are jailed and tombstoned on the provider - for _, consuVal := range clientTMValset.Validators { - provVal := s.getProviderValFromConsumerVal(*consuVal) - provConsAddr, err := provVal.GetConsAddr() - s.Require().NoError(err) - if _, ok := altSigners[consuVal.Address.String()]; ok { - s.Require().True(provVal.Jailed) - s.Require().True(s.providerApp.GetTestSlashingKeeper().IsTombstoned(s.providerCtx(), provConsAddr)) - } else { - s.Require().False(provVal.Jailed) - s.Require().False(s.providerApp.GetTestSlashingKeeper().IsTombstoned(s.providerCtx(), provConsAddr)) - } - } - } else { - // Check that no validators are jailed or tombstoned on the provider - for _, consuVal := range clientTMValset.Validators { - s.Error(err) - provVal := s.getProviderValFromConsumerVal(*consuVal) - s.Require().False(provVal.Jailed) - provConsAddr, err := provVal.GetConsAddr() - s.Require().NoError(err) - s.Require().False(s.providerApp.GetTestSlashingKeeper().IsTombstoned(s.providerCtx(), provConsAddr)) - } - } - }) + err := s.providerApp.GetProviderKeeper().HandleConsumerMisbehaviour(s.providerCtx(), *misb) + s.NoError(err) + + for _, v := range altValset.Validators { + consuAddr := sdk.ConsAddress(v.Address.Bytes()) + provAddr := s.providerApp.GetProviderKeeper().GetProviderAddrFromConsumerAddr(s.providerCtx(), s.consumerChain.ChainID, types.NewConsumerConsAddress(consuAddr)) + val, ok := s.providerApp.GetTestStakingKeeper().GetValidatorByConsAddr(s.providerCtx(), provAddr.Address) + s.Require().True(ok) + s.Require().True(val.Jailed) + s.Require().True(s.providerApp.GetTestSlashingKeeper().IsTombstoned(s.providerCtx(), provAddr.Address)) } } @@ -298,11 +234,3 @@ func (s *CCVTestSuite) TestConstructLightClientEvidence() { }) } } - -func (s *CCVTestSuite) getProviderValFromConsumerVal(valAddr tmtypes.Validator) stakingtypes.Validator { - consuAddr := types.NewConsumerConsAddress(sdk.ConsAddress(valAddr.Address.Bytes())) - provAddr := s.providerApp.GetProviderKeeper().GetProviderAddrFromConsumerAddr(s.providerCtx(), s.consumerChain.ChainID, consuAddr) - val, ok := s.providerApp.GetTestStakingKeeper().GetValidatorByConsAddr(s.providerCtx(), provAddr.Address) - s.Require().True(ok) - return val -} diff --git a/x/ccv/provider/client/cli/tx.go b/x/ccv/provider/client/cli/tx.go index f6776fc1f9..87b4179b0b 100644 --- a/x/ccv/provider/client/cli/tx.go +++ b/x/ccv/provider/client/cli/tx.go @@ -12,7 +12,7 @@ import ( "github.com/cosmos/cosmos-sdk/version" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/ibc-go/v4/modules/core/exported" + ibctmtypes "github.com/cosmos/ibc-go/v4/modules/light-clients/07-tendermint/types" "github.com/cosmos/interchain-security/v2/x/ccv/provider/types" ) @@ -117,12 +117,12 @@ func NewSubmitConsumerMisbehaviourCmd() *cobra.Command { WithTxConfig(clientCtx.TxConfig).WithAccountRetriever(clientCtx.AccountRetriever) submitter := clientCtx.GetFromAddress() - var misbehaviour exported.Misbehaviour - if err := clientCtx.Codec.UnmarshalInterfaceJSON([]byte(args[1]), misbehaviour); err != nil { + var misbehavior ibctmtypes.Misbehaviour + if err := clientCtx.Codec.UnmarshalInterfaceJSON([]byte(args[1]), &misbehavior); err != nil { return err } - msg, err := types.NewMsgSubmitConsumerMisbehaviour(submitter, misbehaviour) + msg, err := types.NewMsgSubmitConsumerMisbehaviour(submitter, &misbehavior) if err != nil { return err } diff --git a/x/ccv/provider/keeper/misbehaviour.go b/x/ccv/provider/keeper/misbehaviour.go index 61748d615f..e285adf652 100644 --- a/x/ccv/provider/keeper/misbehaviour.go +++ b/x/ccv/provider/keeper/misbehaviour.go @@ -8,7 +8,6 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" evidencetypes "github.com/cosmos/cosmos-sdk/x/evidence/types" - "github.com/cosmos/ibc-go/v4/modules/core/exported" ibctmtypes "github.com/cosmos/ibc-go/v4/modules/light-clients/07-tendermint/types" tmtypes "github.com/tendermint/tendermint/types" ) @@ -16,25 +15,20 @@ import ( // HandleConsumerMisbehaviour checks whether the given IBC misbehaviour is valid and, if they are, the misbehaving // CheckConsumerMisbehaviour check that the given IBC misbehaviour headers forms a valid light client attack evidence. // proceed to the jailing and tombstoning of the bzyantine validators. -func (k Keeper) HandleConsumerMisbehaviour(ctx sdk.Context, misbehaviour exported.Misbehaviour) error { +func (k Keeper) HandleConsumerMisbehaviour(ctx sdk.Context, misbehaviour ibctmtypes.Misbehaviour) error { logger := ctx.Logger() - // Check that the validity of the misbehaviour - if err := k.clientKeeper.CheckMisbehaviourAndUpdateState(ctx, misbehaviour); err != nil { + if err := k.clientKeeper.CheckMisbehaviourAndUpdateState(ctx, &misbehaviour); err != nil { logger.Info("Misbehaviour rejected", err.Error()) return err } - - // Assign the Tendermint client misbehaviour concrete type - tmMisbehaviour := misbehaviour.(*ibctmtypes.Misbehaviour) - // Since the misbehaviour packet was received within the trusting period // w.r.t to the last trusted consensus it entails that the infraction age // isn't too old. see ibc-go/modules/light-clients/07-tendermint/types/misbehaviour_handle.go // construct a ligth client attack evidence - evidence, err := k.ConstructLightClientEvidence(ctx, *tmMisbehaviour) + evidence, err := k.ConstructLightClientEvidence(ctx, misbehaviour) if err != nil { return err } @@ -45,7 +39,7 @@ func (k Keeper) HandleConsumerMisbehaviour(ctx sdk.Context, misbehaviour exporte for _, v := range evidence.ByzantineValidators { // convert consumer consensus address consuAddr := sdk.ConsAddress(v.Address.Bytes()) - provAddr := k.GetProviderAddrFromConsumerAddr(ctx, tmMisbehaviour.Header1.Header.ChainID, types.NewConsumerConsAddress(consuAddr)) + provAddr := k.GetProviderAddrFromConsumerAddr(ctx, misbehaviour.Header1.Header.ChainID, types.NewConsumerConsAddress(consuAddr)) k.stakingKeeper.ValidatorByConsAddr(ctx, consuAddr) val, ok := k.stakingKeeper.GetValidatorByConsAddr(ctx, provAddr.Address) diff --git a/x/ccv/provider/keeper/msg_server.go b/x/ccv/provider/keeper/msg_server.go index d11ba91685..ca22b66f0d 100644 --- a/x/ccv/provider/keeper/msg_server.go +++ b/x/ccv/provider/keeper/msg_server.go @@ -7,7 +7,6 @@ import ( errorsmod "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" - clienttypes "github.com/cosmos/ibc-go/v4/modules/core/02-client/types" "github.com/cosmos/interchain-security/v2/x/ccv/provider/types" ccvtypes "github.com/cosmos/interchain-security/v2/x/ccv/types" tmprotocrypto "github.com/tendermint/tendermint/proto/tendermint/crypto" @@ -130,13 +129,7 @@ func (k msgServer) RegisterConsumerRewardDenom(goCtx context.Context, msg *types func (k msgServer) SubmitConsumerMisbehaviour(goCtx context.Context, msg *types.MsgSubmitConsumerMisbehaviour) (*types.MsgSubmitConsumerMisbehaviourResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) - - misbehaviour, err := clienttypes.UnpackMisbehaviour(msg.Misbehaviour) - if err != nil { - return nil, err - } - - if err := k.Keeper.HandleConsumerMisbehaviour(ctx, misbehaviour); err != nil { + if err := k.Keeper.HandleConsumerMisbehaviour(ctx, *msg.Misbehaviour); err != nil { return &types.MsgSubmitConsumerMisbehaviourResponse{}, err } diff --git a/x/ccv/provider/types/codec.go b/x/ccv/provider/types/codec.go index 2f28b398f5..0ef3c2d296 100644 --- a/x/ccv/provider/types/codec.go +++ b/x/ccv/provider/types/codec.go @@ -6,7 +6,6 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/msgservice" govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" - "github.com/cosmos/ibc-go/v4/modules/core/exported" ) // RegisterLegacyAminoCodec registers the necessary x/ibc transfer interfaces and concrete types @@ -41,10 +40,6 @@ func RegisterInterfaces(registry codectypes.InterfaceRegistry) { (*sdk.Msg)(nil), &MsgSubmitConsumerMisbehaviour{}, ) - registry.RegisterInterface( - "ibc.core.client.v1.Misbehaviour", - (*exported.Misbehaviour)(nil), - ) msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) } diff --git a/x/ccv/provider/types/msg.go b/x/ccv/provider/types/msg.go index d3d5a8a60b..9496122342 100644 --- a/x/ccv/provider/types/msg.go +++ b/x/ccv/provider/types/msg.go @@ -6,8 +6,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - ibcclienttypes "github.com/cosmos/ibc-go/v4/modules/core/02-client/types" - "github.com/cosmos/ibc-go/v4/modules/core/exported" + + ibctmtypes "github.com/cosmos/ibc-go/v4/modules/light-clients/07-tendermint/types" ) // provider message types @@ -147,13 +147,8 @@ func (msg MsgRegisterConsumerRewardDenom) ValidateBasic() error { return nil } -func NewMsgSubmitConsumerMisbehaviour(submitter sdk.AccAddress, misbehaviour exported.Misbehaviour) (*MsgSubmitConsumerMisbehaviour, error) { - anyMisbehaviour, err := ibcclienttypes.PackMisbehaviour(misbehaviour) - if err != nil { - return nil, err - } - - return &MsgSubmitConsumerMisbehaviour{Submitter: submitter.String(), Misbehaviour: anyMisbehaviour}, nil +func NewMsgSubmitConsumerMisbehaviour(submitter sdk.AccAddress, m *ibctmtypes.Misbehaviour) (*MsgSubmitConsumerMisbehaviour, error) { + return &MsgSubmitConsumerMisbehaviour{Submitter: submitter.String(), Misbehaviour: m}, nil } // Route implements the sdk.Msg interface. @@ -169,11 +164,7 @@ func (msg MsgSubmitConsumerMisbehaviour) ValidateBasic() error { if msg.Submitter == "" { return sdkerrors.Wrap(sdkerrors.ErrInvalidAddress, msg.Submitter) } - misbehaviour, err := ibcclienttypes.UnpackMisbehaviour(msg.Misbehaviour) - if err != nil { - return err - } - if err := misbehaviour.ValidateBasic(); err != nil { + if err := msg.Misbehaviour.ValidateBasic(); err != nil { return err } return nil diff --git a/x/ccv/provider/types/tx.pb.go b/x/ccv/provider/types/tx.pb.go index 84f93dc4b1..f27ab52533 100644 --- a/x/ccv/provider/types/tx.pb.go +++ b/x/ccv/provider/types/tx.pb.go @@ -6,7 +6,8 @@ package types import ( context "context" fmt "fmt" - types "github.com/cosmos/cosmos-sdk/codec/types" + _ "github.com/cosmos/cosmos-sdk/codec/types" + types "github.com/cosmos/ibc-go/v4/modules/light-clients/07-tendermint/types" _ "github.com/gogo/protobuf/gogoproto" grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" @@ -198,7 +199,7 @@ type MsgSubmitConsumerMisbehaviour struct { Submitter string `protobuf:"bytes,1,opt,name=submitter,proto3" json:"submitter,omitempty"` // The Misbehaviour of the consumer chain wrapping // two conflicting IBC headers - Misbehaviour *types.Any `protobuf:"bytes,2,opt,name=misbehaviour,proto3" json:"misbehaviour,omitempty"` + Misbehaviour *types.Misbehaviour `protobuf:"bytes,2,opt,name=misbehaviour,proto3" json:"misbehaviour,omitempty"` } func (m *MsgSubmitConsumerMisbehaviour) Reset() { *m = MsgSubmitConsumerMisbehaviour{} } @@ -284,41 +285,43 @@ func init() { } var fileDescriptor_43221a4391e9fbf4 = []byte{ - // 534 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x94, 0xb1, 0x6f, 0xd3, 0x40, - 0x14, 0xc6, 0x63, 0x22, 0xa0, 0xbd, 0x06, 0x24, 0xac, 0x0c, 0xa9, 0x09, 0x0e, 0x04, 0x01, 0x1d, - 0xc0, 0x56, 0xc3, 0x00, 0x54, 0x62, 0x48, 0xca, 0x02, 0x55, 0x16, 0x33, 0x20, 0x31, 0x10, 0x39, - 0x77, 0xc7, 0xe5, 0x44, 0x7d, 0x67, 0xdd, 0x3b, 0x9b, 0x7a, 0x64, 0x63, 0x84, 0x89, 0xb5, 0x7f, - 0x00, 0x12, 0xff, 0x06, 0x63, 0x47, 0x26, 0x84, 0x92, 0x85, 0x99, 0x91, 0x09, 0xc5, 0xf6, 0x25, - 0xa9, 0x08, 0x51, 0x04, 0x6c, 0xf7, 0xde, 0xfb, 0xfc, 0x7d, 0x3f, 0xe9, 0x59, 0x0f, 0xdd, 0xe6, - 0x42, 0x53, 0x85, 0x47, 0x21, 0x17, 0x03, 0xa0, 0x38, 0x51, 0x5c, 0x67, 0x3e, 0xc6, 0xa9, 0x1f, - 0x2b, 0x99, 0x72, 0x42, 0x95, 0x9f, 0xee, 0xfa, 0xfa, 0xc8, 0x8b, 0x95, 0xd4, 0xd2, 0xbe, 0xbe, - 0x44, 0xed, 0x61, 0x9c, 0x7a, 0x46, 0xed, 0xa5, 0xbb, 0x4e, 0x93, 0x49, 0xc9, 0x0e, 0xa9, 0x1f, - 0xc6, 0xdc, 0x0f, 0x85, 0x90, 0x3a, 0xd4, 0x5c, 0x0a, 0x28, 0x2c, 0x9c, 0x3a, 0x93, 0x4c, 0xe6, - 0x4f, 0x7f, 0xfa, 0x2a, 0xbb, 0xdb, 0x58, 0x42, 0x24, 0x61, 0x50, 0x0c, 0x8a, 0xc2, 0x8c, 0x4a, - 0xbb, 0xbc, 0x1a, 0x26, 0x2f, 0xfd, 0x50, 0x64, 0xc5, 0xa8, 0xfd, 0xc1, 0x42, 0xf5, 0x3e, 0xb0, - 0x2e, 0x00, 0x67, 0x62, 0x5f, 0x0a, 0x48, 0x22, 0xaa, 0x0e, 0x68, 0x66, 0x6f, 0xa3, 0x8d, 0x02, - 0x92, 0x93, 0x86, 0x75, 0xd5, 0xda, 0xd9, 0x0c, 0xce, 0xe7, 0xf5, 0x63, 0x62, 0xdf, 0x43, 0x17, - 0x0c, 0xec, 0x20, 0x24, 0x44, 0x35, 0xce, 0x4c, 0xe7, 0x3d, 0xfb, 0xc7, 0xd7, 0xd6, 0xc5, 0x2c, - 0x8c, 0x0e, 0xf7, 0xda, 0xd3, 0x2e, 0x05, 0x68, 0x07, 0x35, 0x23, 0xec, 0x12, 0xa2, 0xec, 0x6b, - 0xa8, 0x86, 0xcb, 0x88, 0xc1, 0x2b, 0x9a, 0x35, 0xaa, 0xb9, 0xef, 0x16, 0x9e, 0xc7, 0xee, 0x6d, - 0xbc, 0x3d, 0x6e, 0x55, 0xbe, 0x1f, 0xb7, 0x2a, 0x6d, 0x17, 0x35, 0x97, 0x81, 0x05, 0x14, 0x62, - 0x29, 0x80, 0xb6, 0x5f, 0x20, 0xb7, 0x0f, 0x2c, 0xa0, 0x8c, 0x83, 0xa6, 0xca, 0x28, 0x02, 0xfa, - 0x3a, 0x54, 0xe4, 0x11, 0x15, 0x32, 0xb2, 0xeb, 0xe8, 0x2c, 0x99, 0x3e, 0x4a, 0xfe, 0xa2, 0xb0, - 0x9b, 0x68, 0x93, 0xd0, 0x58, 0x02, 0xd7, 0xb2, 0x24, 0x0f, 0xe6, 0x8d, 0x85, 0xfc, 0x1d, 0x74, - 0x73, 0xb5, 0xff, 0x8c, 0xe4, 0x8d, 0x85, 0xae, 0xf4, 0x81, 0x3d, 0x4d, 0x86, 0x11, 0xd7, 0x46, - 0xd8, 0xe7, 0x30, 0xa4, 0xa3, 0x30, 0xe5, 0x32, 0x51, 0xd3, 0x4c, 0xc8, 0xa7, 0x9a, 0xaa, 0x92, - 0x66, 0xde, 0xb0, 0xef, 0xa3, 0x5a, 0xb4, 0xa0, 0xce, 0xa1, 0xb6, 0x3a, 0x75, 0xaf, 0xd8, 0x9a, - 0x67, 0xb6, 0xe6, 0x75, 0x45, 0x16, 0x9c, 0x52, 0x2e, 0xd0, 0xde, 0x42, 0x37, 0x56, 0x22, 0x18, - 0xd8, 0xce, 0xcf, 0x2a, 0xaa, 0xf6, 0x81, 0xd9, 0xef, 0x2d, 0x74, 0xe9, 0xf7, 0xad, 0x3f, 0xf0, - 0xd6, 0xf8, 0x3d, 0xbd, 0x65, 0x7b, 0x71, 0xba, 0x7f, 0xfd, 0xa9, 0x61, 0xb3, 0x3f, 0x59, 0xe8, - 0xf2, 0xaa, 0x85, 0xee, 0xaf, 0x1b, 0xb1, 0xc2, 0xc4, 0x39, 0xf8, 0x0f, 0x26, 0x33, 0xe2, 0x8f, - 0x16, 0x72, 0x56, 0xec, 0xbd, 0xb7, 0x6e, 0xd6, 0x9f, 0x3d, 0x9c, 0x27, 0xff, 0xee, 0x61, 0x70, - 0x7b, 0xcf, 0x3e, 0x8f, 0x5d, 0xeb, 0x64, 0xec, 0x5a, 0xdf, 0xc6, 0xae, 0xf5, 0x6e, 0xe2, 0x56, - 0x4e, 0x26, 0x6e, 0xe5, 0xcb, 0xc4, 0xad, 0x3c, 0x7f, 0xc8, 0xb8, 0x1e, 0x25, 0x43, 0x0f, 0xcb, - 0xa8, 0xbc, 0x1d, 0xfe, 0x3c, 0xf6, 0xce, 0xec, 0xac, 0xa5, 0x1d, 0xff, 0xe8, 0xf4, 0x6d, 0xd3, - 0x59, 0x4c, 0x61, 0x78, 0x2e, 0xff, 0x49, 0xef, 0xfe, 0x0a, 0x00, 0x00, 0xff, 0xff, 0x48, 0x5a, - 0xaf, 0x54, 0x0c, 0x05, 0x00, 0x00, + // 568 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0x3f, 0x6f, 0x13, 0x4f, + 0x10, 0xf5, 0xfd, 0xa2, 0x1f, 0x24, 0x9b, 0x80, 0xc4, 0xc9, 0x85, 0x73, 0x98, 0x33, 0x18, 0x01, + 0x29, 0xc2, 0xae, 0x6c, 0x0a, 0x44, 0x24, 0x0a, 0x3b, 0x34, 0x10, 0x59, 0x42, 0x47, 0x81, 0x44, + 0x81, 0x75, 0xb7, 0xbb, 0xac, 0x57, 0xf8, 0x76, 0x4f, 0xbb, 0x7b, 0x47, 0xee, 0x1b, 0x50, 0x42, + 0x85, 0xe8, 0xf2, 0x01, 0x90, 0xf8, 0x1a, 0x94, 0x29, 0xa9, 0x10, 0xb2, 0x1b, 0x6a, 0x4a, 0x2a, + 0xe4, 0xfb, 0x63, 0x5f, 0x84, 0xb1, 0x2c, 0xa0, 0xdb, 0x99, 0x79, 0xfb, 0xde, 0x1b, 0xcd, 0x68, + 0xc0, 0x3e, 0x17, 0x86, 0x2a, 0x3c, 0xf2, 0xb9, 0x18, 0x6a, 0x8a, 0x63, 0xc5, 0x4d, 0x8a, 0x30, + 0x4e, 0x50, 0xa4, 0x64, 0xc2, 0x09, 0x55, 0x28, 0xe9, 0x20, 0x73, 0x0c, 0x23, 0x25, 0x8d, 0xb4, + 0xaf, 0x2f, 0x41, 0x43, 0x8c, 0x13, 0x58, 0xa2, 0x61, 0xd2, 0x71, 0x9a, 0x4c, 0x4a, 0x36, 0xa6, + 0xc8, 0x8f, 0x38, 0xf2, 0x85, 0x90, 0xc6, 0x37, 0x5c, 0x0a, 0x9d, 0x53, 0x38, 0x75, 0x26, 0x99, + 0xcc, 0x9e, 0x68, 0xf6, 0x2a, 0xb2, 0xbb, 0x58, 0xea, 0x50, 0xea, 0x61, 0x5e, 0xc8, 0x83, 0xb2, + 0x54, 0xd0, 0x65, 0x51, 0x10, 0xbf, 0x40, 0xbe, 0x48, 0x8b, 0x12, 0xe2, 0x01, 0x46, 0x63, 0xce, + 0x46, 0x06, 0x8f, 0x39, 0x15, 0x46, 0x23, 0x43, 0x05, 0xa1, 0x2a, 0xe4, 0xc2, 0x64, 0xbe, 0xe7, + 0x51, 0xfe, 0xa1, 0xfd, 0xce, 0x02, 0xf5, 0x81, 0x66, 0x3d, 0xad, 0x39, 0x13, 0x87, 0x52, 0xe8, + 0x38, 0xa4, 0xea, 0x88, 0xa6, 0xf6, 0x2e, 0xd8, 0xcc, 0xbb, 0xe2, 0xa4, 0x61, 0x5d, 0xb5, 0xf6, + 0xb6, 0xbc, 0xf3, 0x59, 0xfc, 0x90, 0xd8, 0x77, 0xc1, 0x85, 0xb2, 0xbb, 0xa1, 0x4f, 0x88, 0x6a, + 0xfc, 0x37, 0xab, 0xf7, 0xed, 0xef, 0x5f, 0x5a, 0x17, 0x53, 0x3f, 0x1c, 0x1f, 0xb4, 0x67, 0x59, + 0xaa, 0x75, 0xdb, 0xdb, 0x29, 0x81, 0x3d, 0x42, 0x94, 0x7d, 0x0d, 0xec, 0xe0, 0x42, 0x62, 0xf8, + 0x92, 0xa6, 0x8d, 0x8d, 0x8c, 0x77, 0x1b, 0x2f, 0x64, 0x0f, 0x36, 0x5f, 0x9f, 0xb4, 0x6a, 0xdf, + 0x4e, 0x5a, 0xb5, 0xb6, 0x0b, 0x9a, 0xcb, 0x8c, 0x79, 0x54, 0x47, 0x52, 0x68, 0xda, 0x7e, 0x0e, + 0xdc, 0x81, 0x66, 0x1e, 0x65, 0x5c, 0x1b, 0xaa, 0x4a, 0x84, 0x47, 0x5f, 0xf9, 0x8a, 0x3c, 0xa0, + 0x42, 0x86, 0x76, 0x1d, 0xfc, 0x4f, 0x66, 0x8f, 0xc2, 0x7f, 0x1e, 0xd8, 0x4d, 0xb0, 0x45, 0x68, + 0x24, 0x35, 0x37, 0xb2, 0x70, 0xee, 0x2d, 0x12, 0x15, 0xfd, 0x3d, 0x70, 0x73, 0x35, 0xff, 0xdc, + 0xc9, 0x7b, 0x0b, 0x5c, 0x19, 0x68, 0xf6, 0x24, 0x0e, 0x42, 0x6e, 0x4a, 0xe0, 0x80, 0xeb, 0x80, + 0x8e, 0xfc, 0x84, 0xcb, 0x58, 0xcd, 0x34, 0x75, 0x56, 0x35, 0x54, 0x15, 0x6e, 0x16, 0x09, 0xfb, + 0x31, 0xd8, 0x09, 0x2b, 0xe8, 0xcc, 0xd4, 0x76, 0x77, 0x1f, 0xf2, 0x00, 0xc3, 0xea, 0x2c, 0x61, + 0x65, 0x7a, 0x49, 0x07, 0x56, 0x15, 0xbc, 0x33, 0x0c, 0x95, 0x2e, 0x6e, 0x81, 0x1b, 0x2b, 0xad, + 0x95, 0x4d, 0x74, 0x7f, 0x6c, 0x80, 0x8d, 0x81, 0x66, 0xf6, 0x5b, 0x0b, 0x5c, 0xfa, 0x75, 0x1b, + 0xee, 0xc1, 0x35, 0xf6, 0x1c, 0x2e, 0x9b, 0x97, 0xd3, 0xfb, 0xe3, 0xaf, 0xa5, 0x37, 0xfb, 0xa3, + 0x05, 0x2e, 0xaf, 0x1a, 0xf4, 0xe1, 0xba, 0x12, 0x2b, 0x48, 0x9c, 0xa3, 0x7f, 0x40, 0x32, 0x77, + 0xfc, 0xc1, 0x02, 0xce, 0x8a, 0x7d, 0xe8, 0xaf, 0xab, 0xf5, 0x7b, 0x0e, 0xe7, 0xd1, 0xdf, 0x73, + 0x94, 0x76, 0xfb, 0x4f, 0x3f, 0x4d, 0x5c, 0xeb, 0x74, 0xe2, 0x5a, 0x5f, 0x27, 0xae, 0xf5, 0x66, + 0xea, 0xd6, 0x4e, 0xa7, 0x6e, 0xed, 0xf3, 0xd4, 0xad, 0x3d, 0xbb, 0xcf, 0xb8, 0x19, 0xc5, 0x01, + 0xc4, 0x32, 0x2c, 0x8e, 0x10, 0x5a, 0xc8, 0xde, 0x9e, 0xdf, 0xc7, 0xa4, 0x8b, 0x8e, 0xcf, 0x1e, + 0x49, 0x93, 0x46, 0x54, 0x07, 0xe7, 0xb2, 0x2b, 0x73, 0xe7, 0x67, 0x00, 0x00, 0x00, 0xff, 0xff, + 0xe3, 0x4f, 0x57, 0x26, 0x55, 0x05, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1215,7 +1218,7 @@ func (m *MsgSubmitConsumerMisbehaviour) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Misbehaviour == nil { - m.Misbehaviour = &types.Any{} + m.Misbehaviour = &types.Misbehaviour{} } if err := m.Misbehaviour.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err From 2be79d715f4dc738cea07b20982bf9d3fff8a302 Mon Sep 17 00:00:00 2001 From: Simon Noetzlin Date: Tue, 11 Jul 2023 10:09:56 +0200 Subject: [PATCH 30/33] update ICS misbehaviour test --- .../ccv/provider/v1/tx.proto | 3 +- tests/e2e/actions.go | 2 - tests/integration/misbehaviour.go | 133 +++++++++++++----- x/ccv/provider/client/cli/tx.go | 8 +- x/ccv/provider/keeper/misbehaviour.go | 14 +- x/ccv/provider/keeper/msg_server.go | 9 +- x/ccv/provider/types/codec.go | 5 + x/ccv/provider/types/msg.go | 19 ++- x/ccv/provider/types/tx.pb.go | 79 +++++------ 9 files changed, 179 insertions(+), 93 deletions(-) diff --git a/proto/interchain_security/ccv/provider/v1/tx.proto b/proto/interchain_security/ccv/provider/v1/tx.proto index 61be3064ea..dafd1cee79 100644 --- a/proto/interchain_security/ccv/provider/v1/tx.proto +++ b/proto/interchain_security/ccv/provider/v1/tx.proto @@ -7,7 +7,6 @@ import "google/api/annotations.proto"; import "gogoproto/gogo.proto"; import "cosmos_proto/cosmos.proto"; import "google/protobuf/any.proto"; -import "ibc/lightclients/tendermint/v1/tendermint.proto"; // Msg defines the Msg service. service Msg { @@ -55,7 +54,7 @@ message MsgSubmitConsumerMisbehaviour { string submitter = 1; // The Misbehaviour of the consumer chain wrapping // two conflicting IBC headers - ibc.lightclients.tendermint.v1.Misbehaviour misbehaviour = 2; + google.protobuf.Any misbehaviour = 2; } message MsgSubmitConsumerMisbehaviourResponse {} diff --git a/tests/e2e/actions.go b/tests/e2e/actions.go index 2e1863f070..b48d20b687 100644 --- a/tests/e2e/actions.go +++ b/tests/e2e/actions.go @@ -840,8 +840,6 @@ func (tr TestRun) addChainToHermes( } saveMnemonicCommand := fmt.Sprintf(`echo '%s' > %s`, mnemonic, "/root/.hermes/mnemonic.txt") - fmt.Println("Add to hermes", action.validator) - fmt.Println(mnemonic) //#nosec G204 -- Bypass linter warning for spawning subprocess with cmd arguments. bz, err = exec.Command("docker", "exec", tr.containerConfig.instanceName, "bash", "-c", saveMnemonicCommand, diff --git a/tests/integration/misbehaviour.go b/tests/integration/misbehaviour.go index 13ad7e6230..1628bf890c 100644 --- a/tests/integration/misbehaviour.go +++ b/tests/integration/misbehaviour.go @@ -4,66 +4,123 @@ import ( "time" sdk "github.com/cosmos/cosmos-sdk/types" + stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" "github.com/cosmos/interchain-security/v2/x/ccv/provider/types" ibctmtypes "github.com/cosmos/ibc-go/v4/modules/light-clients/07-tendermint/types" tmtypes "github.com/tendermint/tendermint/types" ) +// TestHandleConsumerMisbehaviour verifies first that ICS misbehaviour is handled +// only if its conlflicting headers are valid. Then, it checks +// that validators who signed the incorrect header are jailed and tombstoned. func (s *CCVTestSuite) TestHandleConsumerMisbehaviour() { s.SetupCCVChannel(s.path) // required to have the consumer client revision height greater than 0 s.SendEmptyVSCPacket() + // create signing info for all validators for _, v := range s.providerChain.Vals.Validators { s.setDefaultValSigningInfo(*v) } - altTime := s.providerCtx().BlockTime().Add(time.Minute) + // create a new header timestamp + headerTs := s.providerCtx().BlockTime().Add(time.Minute) + // get trusted validators and height clientHeight := s.consumerChain.LastHeader.TrustedHeight clientTMValset := tmtypes.NewValidatorSet(s.consumerChain.Vals.Validators) clientSigners := s.consumerChain.Signers + // create an alternative validator set using more than 1/3 of the trusted validator set altValset := tmtypes.NewValidatorSet(s.consumerChain.Vals.Validators[0:2]) altSigners := make(map[string]tmtypes.PrivValidator, 1) altSigners[clientTMValset.Validators[0].Address.String()] = clientSigners[clientTMValset.Validators[0].Address.String()] altSigners[clientTMValset.Validators[1].Address.String()] = clientSigners[clientTMValset.Validators[1].Address.String()] - - misb := &ibctmtypes.Misbehaviour{ - ClientId: s.path.EndpointA.ClientID, - Header1: s.consumerChain.CreateTMClientHeader( - s.consumerChain.ChainID, - int64(clientHeight.RevisionHeight+1), - clientHeight, - altTime, - clientTMValset, - clientTMValset, - clientTMValset, - clientSigners, - ), - Header2: s.consumerChain.CreateTMClientHeader( - s.consumerChain.ChainID, - int64(clientHeight.RevisionHeight+1), - clientHeight, - altTime, - altValset, - altValset, - clientTMValset, - altSigners, - ), + testCases := []struct { + name string + misbehaviour *ibctmtypes.Misbehaviour + expPass bool + }{ + { + "invalid misbehaviour with empty header1 - shouldn't pass", + &ibctmtypes.Misbehaviour{ + Header1: &ibctmtypes.Header{}, + Header2: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight+1), + clientHeight, + headerTs, + altValset, + altValset, + clientTMValset, + altSigners, + ), + }, + false, + }, + { + "valid misbehaviour - should pass", + &ibctmtypes.Misbehaviour{ + ClientId: s.path.EndpointA.ClientID, + Header1: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight+1), + clientHeight, + headerTs, + clientTMValset, + clientTMValset, + clientTMValset, + clientSigners, + ), + // the resulting Header2 will have a different BlockID + // than Header1 since doesn't share the same valset and signers + Header2: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight+1), + clientHeight, + headerTs, + altValset, + altValset, + clientTMValset, + altSigners, + ), + }, + true, + }, } - err := s.providerApp.GetProviderKeeper().HandleConsumerMisbehaviour(s.providerCtx(), *misb) - s.NoError(err) - - for _, v := range altValset.Validators { - consuAddr := sdk.ConsAddress(v.Address.Bytes()) - provAddr := s.providerApp.GetProviderKeeper().GetProviderAddrFromConsumerAddr(s.providerCtx(), s.consumerChain.ChainID, types.NewConsumerConsAddress(consuAddr)) - val, ok := s.providerApp.GetTestStakingKeeper().GetValidatorByConsAddr(s.providerCtx(), provAddr.Address) - s.Require().True(ok) - s.Require().True(val.Jailed) - s.Require().True(s.providerApp.GetTestSlashingKeeper().IsTombstoned(s.providerCtx(), provAddr.Address)) + for _, tc := range testCases { + s.Run(tc.name, func() { + err := s.providerApp.GetProviderKeeper().HandleConsumerMisbehaviour(s.providerCtx(), tc.misbehaviour) + if tc.expPass { + s.NoError(err) + // Check that only the validators of the alternate validator set + // , i.e. altValset, are jailed and tombstoned on the provider + for _, consuVal := range clientTMValset.Validators { + provVal := s.getProviderValFromConsumerVal(*consuVal) + provConsAddr, err := provVal.GetConsAddr() + s.Require().NoError(err) + if _, ok := altSigners[consuVal.Address.String()]; ok { + s.Require().True(provVal.Jailed) + s.Require().True(s.providerApp.GetTestSlashingKeeper().IsTombstoned(s.providerCtx(), provConsAddr)) + } else { + s.Require().False(provVal.Jailed) + s.Require().False(s.providerApp.GetTestSlashingKeeper().IsTombstoned(s.providerCtx(), provConsAddr)) + } + } + } else { + // Check that no validators are jailed or tombstoned on the provider + for _, consuVal := range clientTMValset.Validators { + s.Error(err) + provVal := s.getProviderValFromConsumerVal(*consuVal) + s.Require().False(provVal.Jailed) + provConsAddr, err := provVal.GetConsAddr() + s.Require().NoError(err) + s.Require().False(s.providerApp.GetTestSlashingKeeper().IsTombstoned(s.providerCtx(), provConsAddr)) + } + } + }) } } @@ -234,3 +291,11 @@ func (s *CCVTestSuite) TestConstructLightClientEvidence() { }) } } + +func (s *CCVTestSuite) getProviderValFromConsumerVal(valAddr tmtypes.Validator) stakingtypes.Validator { + consuAddr := types.NewConsumerConsAddress(sdk.ConsAddress(valAddr.Address.Bytes())) + provAddr := s.providerApp.GetProviderKeeper().GetProviderAddrFromConsumerAddr(s.providerCtx(), s.consumerChain.ChainID, consuAddr) + val, ok := s.providerApp.GetTestStakingKeeper().GetValidatorByConsAddr(s.providerCtx(), provAddr.Address) + s.Require().True(ok) + return val +} diff --git a/x/ccv/provider/client/cli/tx.go b/x/ccv/provider/client/cli/tx.go index 87b4179b0b..f6776fc1f9 100644 --- a/x/ccv/provider/client/cli/tx.go +++ b/x/ccv/provider/client/cli/tx.go @@ -12,7 +12,7 @@ import ( "github.com/cosmos/cosmos-sdk/version" sdk "github.com/cosmos/cosmos-sdk/types" - ibctmtypes "github.com/cosmos/ibc-go/v4/modules/light-clients/07-tendermint/types" + "github.com/cosmos/ibc-go/v4/modules/core/exported" "github.com/cosmos/interchain-security/v2/x/ccv/provider/types" ) @@ -117,12 +117,12 @@ func NewSubmitConsumerMisbehaviourCmd() *cobra.Command { WithTxConfig(clientCtx.TxConfig).WithAccountRetriever(clientCtx.AccountRetriever) submitter := clientCtx.GetFromAddress() - var misbehavior ibctmtypes.Misbehaviour - if err := clientCtx.Codec.UnmarshalInterfaceJSON([]byte(args[1]), &misbehavior); err != nil { + var misbehaviour exported.Misbehaviour + if err := clientCtx.Codec.UnmarshalInterfaceJSON([]byte(args[1]), misbehaviour); err != nil { return err } - msg, err := types.NewMsgSubmitConsumerMisbehaviour(submitter, &misbehavior) + msg, err := types.NewMsgSubmitConsumerMisbehaviour(submitter, misbehaviour) if err != nil { return err } diff --git a/x/ccv/provider/keeper/misbehaviour.go b/x/ccv/provider/keeper/misbehaviour.go index e285adf652..61748d615f 100644 --- a/x/ccv/provider/keeper/misbehaviour.go +++ b/x/ccv/provider/keeper/misbehaviour.go @@ -8,6 +8,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" evidencetypes "github.com/cosmos/cosmos-sdk/x/evidence/types" + "github.com/cosmos/ibc-go/v4/modules/core/exported" ibctmtypes "github.com/cosmos/ibc-go/v4/modules/light-clients/07-tendermint/types" tmtypes "github.com/tendermint/tendermint/types" ) @@ -15,20 +16,25 @@ import ( // HandleConsumerMisbehaviour checks whether the given IBC misbehaviour is valid and, if they are, the misbehaving // CheckConsumerMisbehaviour check that the given IBC misbehaviour headers forms a valid light client attack evidence. // proceed to the jailing and tombstoning of the bzyantine validators. -func (k Keeper) HandleConsumerMisbehaviour(ctx sdk.Context, misbehaviour ibctmtypes.Misbehaviour) error { +func (k Keeper) HandleConsumerMisbehaviour(ctx sdk.Context, misbehaviour exported.Misbehaviour) error { logger := ctx.Logger() - if err := k.clientKeeper.CheckMisbehaviourAndUpdateState(ctx, &misbehaviour); err != nil { + // Check that the validity of the misbehaviour + if err := k.clientKeeper.CheckMisbehaviourAndUpdateState(ctx, misbehaviour); err != nil { logger.Info("Misbehaviour rejected", err.Error()) return err } + + // Assign the Tendermint client misbehaviour concrete type + tmMisbehaviour := misbehaviour.(*ibctmtypes.Misbehaviour) + // Since the misbehaviour packet was received within the trusting period // w.r.t to the last trusted consensus it entails that the infraction age // isn't too old. see ibc-go/modules/light-clients/07-tendermint/types/misbehaviour_handle.go // construct a ligth client attack evidence - evidence, err := k.ConstructLightClientEvidence(ctx, misbehaviour) + evidence, err := k.ConstructLightClientEvidence(ctx, *tmMisbehaviour) if err != nil { return err } @@ -39,7 +45,7 @@ func (k Keeper) HandleConsumerMisbehaviour(ctx sdk.Context, misbehaviour ibctmty for _, v := range evidence.ByzantineValidators { // convert consumer consensus address consuAddr := sdk.ConsAddress(v.Address.Bytes()) - provAddr := k.GetProviderAddrFromConsumerAddr(ctx, misbehaviour.Header1.Header.ChainID, types.NewConsumerConsAddress(consuAddr)) + provAddr := k.GetProviderAddrFromConsumerAddr(ctx, tmMisbehaviour.Header1.Header.ChainID, types.NewConsumerConsAddress(consuAddr)) k.stakingKeeper.ValidatorByConsAddr(ctx, consuAddr) val, ok := k.stakingKeeper.GetValidatorByConsAddr(ctx, provAddr.Address) diff --git a/x/ccv/provider/keeper/msg_server.go b/x/ccv/provider/keeper/msg_server.go index ca22b66f0d..d11ba91685 100644 --- a/x/ccv/provider/keeper/msg_server.go +++ b/x/ccv/provider/keeper/msg_server.go @@ -7,6 +7,7 @@ import ( errorsmod "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + clienttypes "github.com/cosmos/ibc-go/v4/modules/core/02-client/types" "github.com/cosmos/interchain-security/v2/x/ccv/provider/types" ccvtypes "github.com/cosmos/interchain-security/v2/x/ccv/types" tmprotocrypto "github.com/tendermint/tendermint/proto/tendermint/crypto" @@ -129,7 +130,13 @@ func (k msgServer) RegisterConsumerRewardDenom(goCtx context.Context, msg *types func (k msgServer) SubmitConsumerMisbehaviour(goCtx context.Context, msg *types.MsgSubmitConsumerMisbehaviour) (*types.MsgSubmitConsumerMisbehaviourResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) - if err := k.Keeper.HandleConsumerMisbehaviour(ctx, *msg.Misbehaviour); err != nil { + + misbehaviour, err := clienttypes.UnpackMisbehaviour(msg.Misbehaviour) + if err != nil { + return nil, err + } + + if err := k.Keeper.HandleConsumerMisbehaviour(ctx, misbehaviour); err != nil { return &types.MsgSubmitConsumerMisbehaviourResponse{}, err } diff --git a/x/ccv/provider/types/codec.go b/x/ccv/provider/types/codec.go index 0ef3c2d296..2f28b398f5 100644 --- a/x/ccv/provider/types/codec.go +++ b/x/ccv/provider/types/codec.go @@ -6,6 +6,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/msgservice" govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" + "github.com/cosmos/ibc-go/v4/modules/core/exported" ) // RegisterLegacyAminoCodec registers the necessary x/ibc transfer interfaces and concrete types @@ -40,6 +41,10 @@ func RegisterInterfaces(registry codectypes.InterfaceRegistry) { (*sdk.Msg)(nil), &MsgSubmitConsumerMisbehaviour{}, ) + registry.RegisterInterface( + "ibc.core.client.v1.Misbehaviour", + (*exported.Misbehaviour)(nil), + ) msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) } diff --git a/x/ccv/provider/types/msg.go b/x/ccv/provider/types/msg.go index 9496122342..d3d5a8a60b 100644 --- a/x/ccv/provider/types/msg.go +++ b/x/ccv/provider/types/msg.go @@ -6,8 +6,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - - ibctmtypes "github.com/cosmos/ibc-go/v4/modules/light-clients/07-tendermint/types" + ibcclienttypes "github.com/cosmos/ibc-go/v4/modules/core/02-client/types" + "github.com/cosmos/ibc-go/v4/modules/core/exported" ) // provider message types @@ -147,8 +147,13 @@ func (msg MsgRegisterConsumerRewardDenom) ValidateBasic() error { return nil } -func NewMsgSubmitConsumerMisbehaviour(submitter sdk.AccAddress, m *ibctmtypes.Misbehaviour) (*MsgSubmitConsumerMisbehaviour, error) { - return &MsgSubmitConsumerMisbehaviour{Submitter: submitter.String(), Misbehaviour: m}, nil +func NewMsgSubmitConsumerMisbehaviour(submitter sdk.AccAddress, misbehaviour exported.Misbehaviour) (*MsgSubmitConsumerMisbehaviour, error) { + anyMisbehaviour, err := ibcclienttypes.PackMisbehaviour(misbehaviour) + if err != nil { + return nil, err + } + + return &MsgSubmitConsumerMisbehaviour{Submitter: submitter.String(), Misbehaviour: anyMisbehaviour}, nil } // Route implements the sdk.Msg interface. @@ -164,7 +169,11 @@ func (msg MsgSubmitConsumerMisbehaviour) ValidateBasic() error { if msg.Submitter == "" { return sdkerrors.Wrap(sdkerrors.ErrInvalidAddress, msg.Submitter) } - if err := msg.Misbehaviour.ValidateBasic(); err != nil { + misbehaviour, err := ibcclienttypes.UnpackMisbehaviour(msg.Misbehaviour) + if err != nil { + return err + } + if err := misbehaviour.ValidateBasic(); err != nil { return err } return nil diff --git a/x/ccv/provider/types/tx.pb.go b/x/ccv/provider/types/tx.pb.go index f27ab52533..84f93dc4b1 100644 --- a/x/ccv/provider/types/tx.pb.go +++ b/x/ccv/provider/types/tx.pb.go @@ -6,8 +6,7 @@ package types import ( context "context" fmt "fmt" - _ "github.com/cosmos/cosmos-sdk/codec/types" - types "github.com/cosmos/ibc-go/v4/modules/light-clients/07-tendermint/types" + types "github.com/cosmos/cosmos-sdk/codec/types" _ "github.com/gogo/protobuf/gogoproto" grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" @@ -199,7 +198,7 @@ type MsgSubmitConsumerMisbehaviour struct { Submitter string `protobuf:"bytes,1,opt,name=submitter,proto3" json:"submitter,omitempty"` // The Misbehaviour of the consumer chain wrapping // two conflicting IBC headers - Misbehaviour *types.Misbehaviour `protobuf:"bytes,2,opt,name=misbehaviour,proto3" json:"misbehaviour,omitempty"` + Misbehaviour *types.Any `protobuf:"bytes,2,opt,name=misbehaviour,proto3" json:"misbehaviour,omitempty"` } func (m *MsgSubmitConsumerMisbehaviour) Reset() { *m = MsgSubmitConsumerMisbehaviour{} } @@ -285,43 +284,41 @@ func init() { } var fileDescriptor_43221a4391e9fbf4 = []byte{ - // 568 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0x3f, 0x6f, 0x13, 0x4f, - 0x10, 0xf5, 0xfd, 0xa2, 0x1f, 0x24, 0x9b, 0x80, 0xc4, 0xc9, 0x85, 0x73, 0x98, 0x33, 0x18, 0x01, - 0x29, 0xc2, 0xae, 0x6c, 0x0a, 0x44, 0x24, 0x0a, 0x3b, 0x34, 0x10, 0x59, 0x42, 0x47, 0x81, 0x44, - 0x81, 0x75, 0xb7, 0xbb, 0xac, 0x57, 0xf8, 0x76, 0x4f, 0xbb, 0x7b, 0x47, 0xee, 0x1b, 0x50, 0x42, - 0x85, 0xe8, 0xf2, 0x01, 0x90, 0xf8, 0x1a, 0x94, 0x29, 0xa9, 0x10, 0xb2, 0x1b, 0x6a, 0x4a, 0x2a, - 0xe4, 0xfb, 0x63, 0x5f, 0x84, 0xb1, 0x2c, 0xa0, 0xdb, 0x99, 0x79, 0xfb, 0xde, 0x1b, 0xcd, 0x68, - 0xc0, 0x3e, 0x17, 0x86, 0x2a, 0x3c, 0xf2, 0xb9, 0x18, 0x6a, 0x8a, 0x63, 0xc5, 0x4d, 0x8a, 0x30, - 0x4e, 0x50, 0xa4, 0x64, 0xc2, 0x09, 0x55, 0x28, 0xe9, 0x20, 0x73, 0x0c, 0x23, 0x25, 0x8d, 0xb4, - 0xaf, 0x2f, 0x41, 0x43, 0x8c, 0x13, 0x58, 0xa2, 0x61, 0xd2, 0x71, 0x9a, 0x4c, 0x4a, 0x36, 0xa6, - 0xc8, 0x8f, 0x38, 0xf2, 0x85, 0x90, 0xc6, 0x37, 0x5c, 0x0a, 0x9d, 0x53, 0x38, 0x75, 0x26, 0x99, - 0xcc, 0x9e, 0x68, 0xf6, 0x2a, 0xb2, 0xbb, 0x58, 0xea, 0x50, 0xea, 0x61, 0x5e, 0xc8, 0x83, 0xb2, - 0x54, 0xd0, 0x65, 0x51, 0x10, 0xbf, 0x40, 0xbe, 0x48, 0x8b, 0x12, 0xe2, 0x01, 0x46, 0x63, 0xce, - 0x46, 0x06, 0x8f, 0x39, 0x15, 0x46, 0x23, 0x43, 0x05, 0xa1, 0x2a, 0xe4, 0xc2, 0x64, 0xbe, 0xe7, - 0x51, 0xfe, 0xa1, 0xfd, 0xce, 0x02, 0xf5, 0x81, 0x66, 0x3d, 0xad, 0x39, 0x13, 0x87, 0x52, 0xe8, - 0x38, 0xa4, 0xea, 0x88, 0xa6, 0xf6, 0x2e, 0xd8, 0xcc, 0xbb, 0xe2, 0xa4, 0x61, 0x5d, 0xb5, 0xf6, - 0xb6, 0xbc, 0xf3, 0x59, 0xfc, 0x90, 0xd8, 0x77, 0xc1, 0x85, 0xb2, 0xbb, 0xa1, 0x4f, 0x88, 0x6a, - 0xfc, 0x37, 0xab, 0xf7, 0xed, 0xef, 0x5f, 0x5a, 0x17, 0x53, 0x3f, 0x1c, 0x1f, 0xb4, 0x67, 0x59, - 0xaa, 0x75, 0xdb, 0xdb, 0x29, 0x81, 0x3d, 0x42, 0x94, 0x7d, 0x0d, 0xec, 0xe0, 0x42, 0x62, 0xf8, - 0x92, 0xa6, 0x8d, 0x8d, 0x8c, 0x77, 0x1b, 0x2f, 0x64, 0x0f, 0x36, 0x5f, 0x9f, 0xb4, 0x6a, 0xdf, - 0x4e, 0x5a, 0xb5, 0xb6, 0x0b, 0x9a, 0xcb, 0x8c, 0x79, 0x54, 0x47, 0x52, 0x68, 0xda, 0x7e, 0x0e, - 0xdc, 0x81, 0x66, 0x1e, 0x65, 0x5c, 0x1b, 0xaa, 0x4a, 0x84, 0x47, 0x5f, 0xf9, 0x8a, 0x3c, 0xa0, - 0x42, 0x86, 0x76, 0x1d, 0xfc, 0x4f, 0x66, 0x8f, 0xc2, 0x7f, 0x1e, 0xd8, 0x4d, 0xb0, 0x45, 0x68, - 0x24, 0x35, 0x37, 0xb2, 0x70, 0xee, 0x2d, 0x12, 0x15, 0xfd, 0x3d, 0x70, 0x73, 0x35, 0xff, 0xdc, - 0xc9, 0x7b, 0x0b, 0x5c, 0x19, 0x68, 0xf6, 0x24, 0x0e, 0x42, 0x6e, 0x4a, 0xe0, 0x80, 0xeb, 0x80, - 0x8e, 0xfc, 0x84, 0xcb, 0x58, 0xcd, 0x34, 0x75, 0x56, 0x35, 0x54, 0x15, 0x6e, 0x16, 0x09, 0xfb, - 0x31, 0xd8, 0x09, 0x2b, 0xe8, 0xcc, 0xd4, 0x76, 0x77, 0x1f, 0xf2, 0x00, 0xc3, 0xea, 0x2c, 0x61, - 0x65, 0x7a, 0x49, 0x07, 0x56, 0x15, 0xbc, 0x33, 0x0c, 0x95, 0x2e, 0x6e, 0x81, 0x1b, 0x2b, 0xad, - 0x95, 0x4d, 0x74, 0x7f, 0x6c, 0x80, 0x8d, 0x81, 0x66, 0xf6, 0x5b, 0x0b, 0x5c, 0xfa, 0x75, 0x1b, - 0xee, 0xc1, 0x35, 0xf6, 0x1c, 0x2e, 0x9b, 0x97, 0xd3, 0xfb, 0xe3, 0xaf, 0xa5, 0x37, 0xfb, 0xa3, - 0x05, 0x2e, 0xaf, 0x1a, 0xf4, 0xe1, 0xba, 0x12, 0x2b, 0x48, 0x9c, 0xa3, 0x7f, 0x40, 0x32, 0x77, - 0xfc, 0xc1, 0x02, 0xce, 0x8a, 0x7d, 0xe8, 0xaf, 0xab, 0xf5, 0x7b, 0x0e, 0xe7, 0xd1, 0xdf, 0x73, - 0x94, 0x76, 0xfb, 0x4f, 0x3f, 0x4d, 0x5c, 0xeb, 0x74, 0xe2, 0x5a, 0x5f, 0x27, 0xae, 0xf5, 0x66, - 0xea, 0xd6, 0x4e, 0xa7, 0x6e, 0xed, 0xf3, 0xd4, 0xad, 0x3d, 0xbb, 0xcf, 0xb8, 0x19, 0xc5, 0x01, - 0xc4, 0x32, 0x2c, 0x8e, 0x10, 0x5a, 0xc8, 0xde, 0x9e, 0xdf, 0xc7, 0xa4, 0x8b, 0x8e, 0xcf, 0x1e, - 0x49, 0x93, 0x46, 0x54, 0x07, 0xe7, 0xb2, 0x2b, 0x73, 0xe7, 0x67, 0x00, 0x00, 0x00, 0xff, 0xff, - 0xe3, 0x4f, 0x57, 0x26, 0x55, 0x05, 0x00, 0x00, + // 534 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x94, 0xb1, 0x6f, 0xd3, 0x40, + 0x14, 0xc6, 0x63, 0x22, 0xa0, 0xbd, 0x06, 0x24, 0xac, 0x0c, 0xa9, 0x09, 0x0e, 0x04, 0x01, 0x1d, + 0xc0, 0x56, 0xc3, 0x00, 0x54, 0x62, 0x48, 0xca, 0x02, 0x55, 0x16, 0x33, 0x20, 0x31, 0x10, 0x39, + 0x77, 0xc7, 0xe5, 0x44, 0x7d, 0x67, 0xdd, 0x3b, 0x9b, 0x7a, 0x64, 0x63, 0x84, 0x89, 0xb5, 0x7f, + 0x00, 0x12, 0xff, 0x06, 0x63, 0x47, 0x26, 0x84, 0x92, 0x85, 0x99, 0x91, 0x09, 0xc5, 0xf6, 0x25, + 0xa9, 0x08, 0x51, 0x04, 0x6c, 0xf7, 0xde, 0xfb, 0xfc, 0x7d, 0x3f, 0xe9, 0x59, 0x0f, 0xdd, 0xe6, + 0x42, 0x53, 0x85, 0x47, 0x21, 0x17, 0x03, 0xa0, 0x38, 0x51, 0x5c, 0x67, 0x3e, 0xc6, 0xa9, 0x1f, + 0x2b, 0x99, 0x72, 0x42, 0x95, 0x9f, 0xee, 0xfa, 0xfa, 0xc8, 0x8b, 0x95, 0xd4, 0xd2, 0xbe, 0xbe, + 0x44, 0xed, 0x61, 0x9c, 0x7a, 0x46, 0xed, 0xa5, 0xbb, 0x4e, 0x93, 0x49, 0xc9, 0x0e, 0xa9, 0x1f, + 0xc6, 0xdc, 0x0f, 0x85, 0x90, 0x3a, 0xd4, 0x5c, 0x0a, 0x28, 0x2c, 0x9c, 0x3a, 0x93, 0x4c, 0xe6, + 0x4f, 0x7f, 0xfa, 0x2a, 0xbb, 0xdb, 0x58, 0x42, 0x24, 0x61, 0x50, 0x0c, 0x8a, 0xc2, 0x8c, 0x4a, + 0xbb, 0xbc, 0x1a, 0x26, 0x2f, 0xfd, 0x50, 0x64, 0xc5, 0xa8, 0xfd, 0xc1, 0x42, 0xf5, 0x3e, 0xb0, + 0x2e, 0x00, 0x67, 0x62, 0x5f, 0x0a, 0x48, 0x22, 0xaa, 0x0e, 0x68, 0x66, 0x6f, 0xa3, 0x8d, 0x02, + 0x92, 0x93, 0x86, 0x75, 0xd5, 0xda, 0xd9, 0x0c, 0xce, 0xe7, 0xf5, 0x63, 0x62, 0xdf, 0x43, 0x17, + 0x0c, 0xec, 0x20, 0x24, 0x44, 0x35, 0xce, 0x4c, 0xe7, 0x3d, 0xfb, 0xc7, 0xd7, 0xd6, 0xc5, 0x2c, + 0x8c, 0x0e, 0xf7, 0xda, 0xd3, 0x2e, 0x05, 0x68, 0x07, 0x35, 0x23, 0xec, 0x12, 0xa2, 0xec, 0x6b, + 0xa8, 0x86, 0xcb, 0x88, 0xc1, 0x2b, 0x9a, 0x35, 0xaa, 0xb9, 0xef, 0x16, 0x9e, 0xc7, 0xee, 0x6d, + 0xbc, 0x3d, 0x6e, 0x55, 0xbe, 0x1f, 0xb7, 0x2a, 0x6d, 0x17, 0x35, 0x97, 0x81, 0x05, 0x14, 0x62, + 0x29, 0x80, 0xb6, 0x5f, 0x20, 0xb7, 0x0f, 0x2c, 0xa0, 0x8c, 0x83, 0xa6, 0xca, 0x28, 0x02, 0xfa, + 0x3a, 0x54, 0xe4, 0x11, 0x15, 0x32, 0xb2, 0xeb, 0xe8, 0x2c, 0x99, 0x3e, 0x4a, 0xfe, 0xa2, 0xb0, + 0x9b, 0x68, 0x93, 0xd0, 0x58, 0x02, 0xd7, 0xb2, 0x24, 0x0f, 0xe6, 0x8d, 0x85, 0xfc, 0x1d, 0x74, + 0x73, 0xb5, 0xff, 0x8c, 0xe4, 0x8d, 0x85, 0xae, 0xf4, 0x81, 0x3d, 0x4d, 0x86, 0x11, 0xd7, 0x46, + 0xd8, 0xe7, 0x30, 0xa4, 0xa3, 0x30, 0xe5, 0x32, 0x51, 0xd3, 0x4c, 0xc8, 0xa7, 0x9a, 0xaa, 0x92, + 0x66, 0xde, 0xb0, 0xef, 0xa3, 0x5a, 0xb4, 0xa0, 0xce, 0xa1, 0xb6, 0x3a, 0x75, 0xaf, 0xd8, 0x9a, + 0x67, 0xb6, 0xe6, 0x75, 0x45, 0x16, 0x9c, 0x52, 0x2e, 0xd0, 0xde, 0x42, 0x37, 0x56, 0x22, 0x18, + 0xd8, 0xce, 0xcf, 0x2a, 0xaa, 0xf6, 0x81, 0xd9, 0xef, 0x2d, 0x74, 0xe9, 0xf7, 0xad, 0x3f, 0xf0, + 0xd6, 0xf8, 0x3d, 0xbd, 0x65, 0x7b, 0x71, 0xba, 0x7f, 0xfd, 0xa9, 0x61, 0xb3, 0x3f, 0x59, 0xe8, + 0xf2, 0xaa, 0x85, 0xee, 0xaf, 0x1b, 0xb1, 0xc2, 0xc4, 0x39, 0xf8, 0x0f, 0x26, 0x33, 0xe2, 0x8f, + 0x16, 0x72, 0x56, 0xec, 0xbd, 0xb7, 0x6e, 0xd6, 0x9f, 0x3d, 0x9c, 0x27, 0xff, 0xee, 0x61, 0x70, + 0x7b, 0xcf, 0x3e, 0x8f, 0x5d, 0xeb, 0x64, 0xec, 0x5a, 0xdf, 0xc6, 0xae, 0xf5, 0x6e, 0xe2, 0x56, + 0x4e, 0x26, 0x6e, 0xe5, 0xcb, 0xc4, 0xad, 0x3c, 0x7f, 0xc8, 0xb8, 0x1e, 0x25, 0x43, 0x0f, 0xcb, + 0xa8, 0xbc, 0x1d, 0xfe, 0x3c, 0xf6, 0xce, 0xec, 0xac, 0xa5, 0x1d, 0xff, 0xe8, 0xf4, 0x6d, 0xd3, + 0x59, 0x4c, 0x61, 0x78, 0x2e, 0xff, 0x49, 0xef, 0xfe, 0x0a, 0x00, 0x00, 0xff, 0xff, 0x48, 0x5a, + 0xaf, 0x54, 0x0c, 0x05, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1218,7 +1215,7 @@ func (m *MsgSubmitConsumerMisbehaviour) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Misbehaviour == nil { - m.Misbehaviour = &types.Misbehaviour{} + m.Misbehaviour = &types.Any{} } if err := m.Misbehaviour.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err From e734e5375ec7b6872be35ce60a8fae5e0142f9fe Mon Sep 17 00:00:00 2001 From: Simon Noetzlin Date: Tue, 11 Jul 2023 10:16:02 +0200 Subject: [PATCH 31/33] update ICS misbehaviour test --- tests/integration/misbehaviour.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/integration/misbehaviour.go b/tests/integration/misbehaviour.go index 1628bf890c..9934f1d77b 100644 --- a/tests/integration/misbehaviour.go +++ b/tests/integration/misbehaviour.go @@ -5,8 +5,10 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/cosmos/ibc-go/v4/modules/core/exported" "github.com/cosmos/interchain-security/v2/x/ccv/provider/types" + ibcsolotypes "github.com/cosmos/ibc-go/v4/modules/light-clients/06-solomachine/types" ibctmtypes "github.com/cosmos/ibc-go/v4/modules/light-clients/07-tendermint/types" tmtypes "github.com/tendermint/tendermint/types" ) @@ -39,9 +41,14 @@ func (s *CCVTestSuite) TestHandleConsumerMisbehaviour() { altSigners[clientTMValset.Validators[1].Address.String()] = clientSigners[clientTMValset.Validators[1].Address.String()] testCases := []struct { name string - misbehaviour *ibctmtypes.Misbehaviour + misbehaviour exported.Misbehaviour expPass bool }{ + { + "invalid misbehaviour client type - shouldn't pass", + &ibcsolotypes.Misbehaviour{}, + false, + }, { "invalid misbehaviour with empty header1 - shouldn't pass", &ibctmtypes.Misbehaviour{ From 865e43b99a49250934c07d37e32a7c221518871f Mon Sep 17 00:00:00 2001 From: Simon Noetzlin Date: Wed, 12 Jul 2023 10:32:37 +0200 Subject: [PATCH 32/33] Add test for MsgSubmitConsumerMisbehaviour parsing --- tests/integration/misbehaviour.go | 99 ++++++++++++++++++++++++++++++ testutil/integration/debug_test.go | 4 ++ 2 files changed, 103 insertions(+) diff --git a/tests/integration/misbehaviour.go b/tests/integration/misbehaviour.go index 9934f1d77b..bb6c16aa98 100644 --- a/tests/integration/misbehaviour.go +++ b/tests/integration/misbehaviour.go @@ -6,6 +6,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" "github.com/cosmos/ibc-go/v4/modules/core/exported" + "github.com/cosmos/interchain-security/v2/x/ccv/provider" "github.com/cosmos/interchain-security/v2/x/ccv/provider/types" ibcsolotypes "github.com/cosmos/ibc-go/v4/modules/light-clients/06-solomachine/types" @@ -100,6 +101,10 @@ func (s *CCVTestSuite) TestHandleConsumerMisbehaviour() { for _, tc := range testCases { s.Run(tc.name, func() { err := s.providerApp.GetProviderKeeper().HandleConsumerMisbehaviour(s.providerCtx(), tc.misbehaviour) + // get clienstate + cs, ok := s.providerApp.GetIBCKeeper().ClientKeeper.GetClientState(s.providerCtx(), s.path.EndpointB.ClientID) + s.Require().True(ok) + if tc.expPass { s.NoError(err) // Check that only the validators of the alternate validator set @@ -111,11 +116,16 @@ func (s *CCVTestSuite) TestHandleConsumerMisbehaviour() { if _, ok := altSigners[consuVal.Address.String()]; ok { s.Require().True(provVal.Jailed) s.Require().True(s.providerApp.GetTestSlashingKeeper().IsTombstoned(s.providerCtx(), provConsAddr)) + } else { s.Require().False(provVal.Jailed) s.Require().False(s.providerApp.GetTestSlashingKeeper().IsTombstoned(s.providerCtx(), provConsAddr)) + s.Require().NotZero(cs.(*ibctmtypes.ClientState).FrozenHeight) + } } + // verify that the client was frozen + s.Require().NotZero(cs.(*ibctmtypes.ClientState).FrozenHeight) } else { // Check that no validators are jailed or tombstoned on the provider for _, consuVal := range clientTMValset.Validators { @@ -126,6 +136,8 @@ func (s *CCVTestSuite) TestHandleConsumerMisbehaviour() { s.Require().NoError(err) s.Require().False(s.providerApp.GetTestSlashingKeeper().IsTombstoned(s.providerCtx(), provConsAddr)) } + // verify that the client wasn't frozen + s.Require().Zero(cs.(*ibctmtypes.ClientState).FrozenHeight) } }) } @@ -299,6 +311,93 @@ func (s *CCVTestSuite) TestConstructLightClientEvidence() { } } +// TestMsgSubmitConsumerClientHandler tests that the provider +// handler can parse MsgSubmitConsumerMisbehaviour +// TODO: move this to x/provider/handler_test.go +func (s *CCVTestSuite) TestMsgSubmitConsumerMisbehaviourHandler() { + s.SetupCCVChannel(s.path) + // required to have the consumer client revision height greater than 0 + s.SendEmptyVSCPacket() + + // create signing info for all validators + for _, v := range s.providerChain.Vals.Validators { + s.setDefaultValSigningInfo(*v) + } + + // create a new header timestamp + headerTs := s.providerCtx().BlockTime().Add(time.Minute) + + // get trusted validators and height + clientHeight := s.consumerChain.LastHeader.TrustedHeight + clientTMValset := tmtypes.NewValidatorSet(s.consumerChain.Vals.Validators) + clientSigners := s.consumerChain.Signers + + altValset := tmtypes.NewValidatorSet(s.consumerChain.Vals.Validators[0:2]) + altSigners := make(map[string]tmtypes.PrivValidator, 1) + altSigners[clientTMValset.Validators[0].Address.String()] = clientSigners[clientTMValset.Validators[0].Address.String()] + altSigners[clientTMValset.Validators[1].Address.String()] = clientSigners[clientTMValset.Validators[1].Address.String()] + + testCases := []struct { + name string + misbehaviour *ibctmtypes.Misbehaviour + expPass bool + }{ + { + "invalid MsgSubmitMisbehaviour shouldn't pass", + &ibctmtypes.Misbehaviour{}, + false, + }, + { + + "valid MsgSubmitMisbehaviour should pass", + &ibctmtypes.Misbehaviour{ + ClientId: s.path.EndpointA.ClientID, + Header1: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight+1), + clientHeight, + headerTs, + clientTMValset, + clientTMValset, + clientTMValset, + clientSigners, + ), + // the resulting Header2 will have a different BlockID + // than Header1 since doesn't share the same valset and signers + Header2: s.consumerChain.CreateTMClientHeader( + s.consumerChain.ChainID, + int64(clientHeight.RevisionHeight+1), + clientHeight, + headerTs, + altValset, + altValset, + clientTMValset, + altSigners, + ), + }, + true, + }, + } + + for _, tc := range testCases { + s.Run(tc.name, func() { + // build the msg using the misbehaviour data + msg, err := types.NewMsgSubmitConsumerMisbehaviour(s.providerChain.SenderAccount.GetAddress(), tc.misbehaviour) + s.Require().NoError(err) + + k := s.providerApp.GetProviderKeeper() + + // Try to handle the message + _, err = provider.NewHandler(&k)(s.providerCtx(), msg) + if tc.expPass { + s.Require().NoError(err) + } else { + s.Require().Error(err) + } + }) + } +} + func (s *CCVTestSuite) getProviderValFromConsumerVal(valAddr tmtypes.Validator) stakingtypes.Validator { consuAddr := types.NewConsumerConsAddress(sdk.ConsAddress(valAddr.Address.Bytes())) provAddr := s.providerApp.GetProviderKeeper().GetProviderAddrFromConsumerAddr(s.providerCtx(), s.consumerChain.ChainID, consuAddr) diff --git a/testutil/integration/debug_test.go b/testutil/integration/debug_test.go index 3bafef8295..37ab9209f5 100644 --- a/testutil/integration/debug_test.go +++ b/testutil/integration/debug_test.go @@ -268,3 +268,7 @@ func TestHandleConsumerMisbehaviour(t *testing.T) { func TestConstructLightClientEvidence(t *testing.T) { runCCVTestByName(t, "TestConstructLightClientEvidence") } + +func TestMsgSubmitConsumerMisbehaviourHandler(t *testing.T) { + runCCVTestByName(t, "TestMsgSubmitConsumerMisbehaviourHandler") +} From 6874b00ba6222f10f6cd33834dd9a3d2fce80803 Mon Sep 17 00:00:00 2001 From: Simon Noetzlin Date: Fri, 14 Jul 2023 08:44:01 +0200 Subject: [PATCH 33/33] fix linter --- tests/integration/misbehaviour.go | 1 - x/ccv/provider/keeper/misbehaviour.go | 2 -- 2 files changed, 3 deletions(-) diff --git a/tests/integration/misbehaviour.go b/tests/integration/misbehaviour.go index bb6c16aa98..c7fa0d4705 100644 --- a/tests/integration/misbehaviour.go +++ b/tests/integration/misbehaviour.go @@ -348,7 +348,6 @@ func (s *CCVTestSuite) TestMsgSubmitConsumerMisbehaviourHandler() { false, }, { - "valid MsgSubmitMisbehaviour should pass", &ibctmtypes.Misbehaviour{ ClientId: s.path.EndpointA.ClientID, diff --git a/x/ccv/provider/keeper/misbehaviour.go b/x/ccv/provider/keeper/misbehaviour.go index 61748d615f..aebf806fa8 100644 --- a/x/ccv/provider/keeper/misbehaviour.go +++ b/x/ccv/provider/keeper/misbehaviour.go @@ -79,7 +79,6 @@ func (k Keeper) HandleConsumerMisbehaviour(ctx sdk.Context, misbehaviour exporte // ConstructLightClientEvidence constructs and returns a CometBFT Ligth Client Attack(LCA) evidence struct // from the given misbehaviour func (k Keeper) ConstructLightClientEvidence(ctx sdk.Context, misbehaviour ibctmtypes.Misbehaviour) (*tmtypes.LightClientAttackEvidence, error) { - // construct the trusted and conflicetd ligth blocks trusted, err := headerToLightBlock(*misbehaviour.Header1) if err != nil { @@ -120,7 +119,6 @@ func (k Keeper) ConstructLightClientEvidence(ctx sdk.Context, misbehaviour ibctm // GetCommonFromMisbehaviour checks whether the given ibc misbehaviour's headers share common trusted height // and that a consensus state exists for this height. In this case, it returns the associated trusted height, timestamp and valset. func (k Keeper) GetTrustedInfoFromMisbehaviour(ctx sdk.Context, misbehaviour ibctmtypes.Misbehaviour) (int64, time.Time, *tmtypes.ValidatorSet, error) { - // a common trusted height is required commonHeight := misbehaviour.Header1.TrustedHeight if !commonHeight.EQ(misbehaviour.Header2.TrustedHeight) {