Skip to content

Commit

Permalink
Channel initialization timeout (cosmos#406)
Browse files Browse the repository at this point in the history
* add provider-based timeout params

* add InitTimeoutTimestamp to store

* add init timeout logic

* params boilerplate code & making tests pass

* add TestInitTimeout* e2e tests

* improve e2e tests; add test case to TestUndelegationDuringInit

* remove VSC timeout

* remove VSC timeout param

* add testcase to TestValidateParams

* handle StopConsumerChain error & gofmt

* Fix init timeout conflicts (cosmos#409)

* Importable e2e tests (cosmos#401)

* fixes

* add comment to GetInitTimeoutTimestamp

* Update proto/interchain_security/ccv/provider/v1/provider.proto

Co-authored-by: Aditya <adityasripal@gmail.com>

* fix formatting in proto file

* add comment to SetConsumerChain

* fix typo

* add comment re. EndBlock order

* change name of testcase in TestUndelegationDuringInit

Co-authored-by: Shawn Marshall-Spitzbart <44221603+smarshall-spitzbart@users.noreply.github.com>
Co-authored-by: Aditya <adityasripal@gmail.com>
  • Loading branch information
3 people authored Nov 1, 2022
1 parent a6b8233 commit 46d5c05
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions proto/interchain_security/ccv/provider/v1/provider.proto
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,14 @@ message ConsumerAdditionProposal {
// Params defines the parameters for CCV Provider module
message Params {
ibc.lightclients.tendermint.v1.ClientState template_client = 1;
// TrustingPeriodFraction is used to compute the consumer and provider IBC client's TrustingPeriod from the chain defined UnbondingPeriod
int64 trusting_period_fraction = 2;
// Sent IBC packets will timeout after this duration
google.protobuf.Duration ccv_timeout_period = 2
google.protobuf.Duration ccv_timeout_period = 3
[(gogoproto.nullable) = false, (gogoproto.stdduration) = true];
// TrustingPeriodFraction is used to compute the consumer and provider IBC client's TrustingPeriod
int64 trusting_period_fraction = 3;
// The channel initialization (IBC channel opening handshake) will timeout after this duration
google.protobuf.Duration init_timeout_period = 4
[(gogoproto.nullable) = false, (gogoproto.stdduration) = true];
}

message HandshakeMetadata {
Expand Down

0 comments on commit 46d5c05

Please sign in to comment.