Skip to content

Conversation

@julienrbrt
Copy link

ref: cosmos/cosmos-sdk#18239 (comment)

I am not too familiar with CodeQL expression, so I have used GitHub Copilot to help me.

@calvinaco
Copy link
Contributor

Hello @julienrbrt , thank you for your PR and sorry the late reply.

I read your Cosmos SDK reference and understand the use of time.Now() are at the genesis generation and test cases, which are legit cases.

However, I believe the existence of this rule is for a wider context that inside any state transition there shouldn't be use of time.Now() anywhere to avoid non-determinism.

As a result, I don't think we should loosen this rule or suggest to use UTC time.

Happy to discuss further here.

@julienrbrt
Copy link
Author

That is definitely true. Do you think there is a way to tweak this rule better then?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants