Skip to content

Commit

Permalink
return error is clock time is less or equal than Jan 1st 1970 12:00 AM
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Rodriguez committed Dec 1, 2021
1 parent 083d9f1 commit b734f8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/apps/transfer/client/cli/tx.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package cli

import (
"errors"
"fmt"
"strings"
"time"
Expand Down Expand Up @@ -104,8 +105,7 @@ corresponding to the counterparty channel. Any timeout set to 0 is disabled.`),
timeoutTimestamp = consensusStateTimestamp + timeoutTimestamp
}
} else {
// rare case: if local clock time is equal to or earlier than Jan 1st, 1970 12:00 AM
timeoutTimestamp = consensusStateTimestamp + timeoutTimestamp
return errors.New("local clock time is not greater than Jan 1st, 1970 12:00 AM")
}
}
}
Expand Down

0 comments on commit b734f8d

Please sign in to comment.