Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change mock clock check #269

Merged
merged 2 commits into from
Nov 14, 2023
Merged

Change mock clock check #269

merged 2 commits into from
Nov 14, 2023

Conversation

guibescos
Copy link
Contributor

No description provided.

Copy link

vercel bot commented Nov 14, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
staking ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 14, 2023 6:40pm
staking-devnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 14, 2023 6:40pm

@guibescos guibescos changed the title Fix Fix mock clock in prod Nov 14, 2023
@guibescos guibescos changed the title Fix mock clock in prod Change mock clock check Nov 14, 2023
// Thus, if mockClockTime is 0 we need to use real time.
if ("mockClockTime" in this.config && this.config.mockClockTime.gtn(0)) {
// This is a hack, we are using this deprecated flag to flag whether we are using the mock clock or not
if (this.config.freeze) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems like an optional constructor argument to StakeConnection would be better than using this flag

@guibescos guibescos merged commit 121b94e into main Nov 14, 2023
6 checks passed
@guibescos guibescos deleted the fix-mock-clock branch November 14, 2023 19:46
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