Skip to content

Commit 5581c9c

Browse files
committed
change ComputeConsumerUnbondingPeriod logic
1 parent c7faf2b commit 5581c9c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

x/ccv/consumer/types/keys.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const (
3434
ConsumerToSendToProviderName = "cons_to_send_to_provider"
3535

3636
// UnbondingPeriod is the time duration to mature the VSC packets
37-
UnbondingPeriod time.Duration = 600 * time.Second
37+
UnbondingPeriod time.Duration = 96 * time.Hour
3838
)
3939

4040
// Iota generated keys/key prefixes (as a byte), supports 256 possible values

x/ccv/utils/utils.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,11 @@ func ComputeConsumerUnbondingPeriod(providerUnbondingPeriod time.Duration) time.
126126
// In general, the unbonding period on the consumer
127127
// is one day less than the unbonding period on the provider
128128
return providerUnbondingPeriod - 24*time.Hour // one day less
129-
} else if providerUnbondingPeriod >= 24*time.Hour {
130-
// If the unbonding period on the provider is
131-
// between one day and one week, then the unbonding period
132-
// on the consumer is one hour less
133-
return providerUnbondingPeriod - time.Hour // one hour less
129+
// } else if providerUnbondingPeriod >= 24*time.Hour {
130+
// // If the unbonding period on the provider is
131+
// // between one day and one week, then the unbonding period
132+
// // on the consumer is one hour less
133+
// return providerUnbondingPeriod - time.Hour // one hour less
134134
} else {
135135
// If the unbonding period on the provider is
136136
// less than one day, then the unbonding period

0 commit comments

Comments
 (0)