|
9 | 9 | clienttypes "github.com/cosmos/ibc-go/v3/modules/core/02-client/types"
|
10 | 10 | channeltypes "github.com/cosmos/ibc-go/v3/modules/core/04-channel/types"
|
11 | 11 | host "github.com/cosmos/ibc-go/v3/modules/core/24-host"
|
| 12 | + consumertypes "github.com/cosmos/interchain-security/x/ccv/consumer/types" |
12 | 13 | ccv "github.com/cosmos/interchain-security/x/ccv/types"
|
13 | 14 | abci "github.com/tendermint/tendermint/abci/types"
|
14 | 15 | )
|
@@ -91,15 +92,19 @@ func ComputeConsumerUnbondingPeriod(providerUnbondingPeriod time.Duration) time.
|
91 | 92 | // In general, the unbonding period on the consumer
|
92 | 93 | // is one day less than the unbonding period on the provider
|
93 | 94 | return providerUnbondingPeriod - 24*time.Hour // one day less
|
94 |
| - } else if providerUnbondingPeriod >= 24*time.Hour { |
95 |
| - // If the unbonding period on the provider is |
96 |
| - // between one day and one week, then the unbonding period |
97 |
| - // on the consumer is one hour less |
98 |
| - return providerUnbondingPeriod - time.Hour // one hour less |
| 95 | + // } else if providerUnbondingPeriod >= 24*time.Hour { |
| 96 | + // // If the unbonding period on the provider is |
| 97 | + // // between one day and one week, then the unbonding period |
| 98 | + // // on the consumer is one hour less |
| 99 | + // return providerUnbondingPeriod - time.Hour // one hour less |
99 | 100 | } else {
|
100 | 101 | // If the unbonding period on the provider is
|
101 | 102 | // less than one day, then the unbonding period
|
102 | 103 | // on the consumer is the same as on the provider
|
103 |
| - return providerUnbondingPeriod |
| 104 | + //return providerUnbondingPeriod |
| 105 | + |
| 106 | + // Use a hardcoded consumer unbonding period of 10mins in order |
| 107 | + // to be bigger duration than on the provider |
| 108 | + return consumertypes.UnbondingPeriod |
104 | 109 | }
|
105 | 110 | }
|
0 commit comments