From 1da2a2b698f57a8a9e2e760519b8827c35be449d Mon Sep 17 00:00:00 2001 From: Daniel T <30197399+danwt@users.noreply.github.com> Date: Fri, 17 Jun 2022 14:44:34 +0100 Subject: [PATCH] Use currentTimestamp() >= p.stopTime in StopConsumerChainProposalHandler Tackle https://github.com/cosmos/ibc/issues/768 --- spec/app/ics-028-cross-chain-validation/methods.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/app/ics-028-cross-chain-validation/methods.md b/spec/app/ics-028-cross-chain-validation/methods.md index 01a425f2f..dc4b8629f 100644 --- a/spec/app/ics-028-cross-chain-validation/methods.md +++ b/spec/app/ics-028-cross-chain-validation/methods.md @@ -842,7 +842,7 @@ function onChanOpenConfirm( // PCF: Provider Chain Function // implements governance proposal Handler function StopConsumerChainProposalHandler(p: StopConsumerChainProposal) { - if currentTimestamp() > p.stopTime { + if currentTimestamp() >= p.stopTime { // stop the consumer chain and do not lock the unbonding StopConsumerChain(p.chainId, false) } @@ -1917,4 +1917,4 @@ function DistributeRewards() { - For each token type defined as a pair `(denomination, amount)` in `ccvAccount`, a transfer token (as defined in [ICS 20](../ics-020-fungible-token-transfer/README.md)) is initiated. - `lastDistributionTransferHeight` is set to the current height. - **Error Condition** - - None. \ No newline at end of file + - None.