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

distinguish between optimistic and non-optimistic sync progress #3987

Merged
merged 2 commits into from
Aug 18, 2022
Merged

Conversation

tersec
Copy link
Contributor

@tersec tersec commented Aug 18, 2022

#3963

I'm not certain this is the best formatting, but it's arguably better to put the opt after rather than before the time stamp, since there's a race-condition like setup where exactly when the execution client verifies a payload can vary, and this makes the churn more readable in that case.

There's a case for doing this for "opt synced" too, but there, at least, there isn't any additional changing information to read (the estimated time).

@github-actions
Copy link

Unit Test Results

       12 files  ±0       860 suites  ±0   1h 7m 0s ⏱️ + 4m 44s
  1 975 tests ±0    1 828 ✔️ ±0  147 💤 ±0  0 ±0 
10 601 runs  ±0  10 411 ✔️ ±0  190 💤 ±0  0 ±0 

Results for commit 96168e4. ± Comparison against base commit 5c8e58e.

elif node.backfiller.inProgress:
"backfill: " & node.backfiller.syncStatus
elif node.dag.is_optimistic(node.dag.head.root):
elif optimistic_head:
Copy link
Member

Choose a reason for hiding this comment

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

I think it makes sense to keep the same formatting for both syncing and synced (so one can quickly grep for : opt for example

Copy link
Member

Choose a reason for hiding this comment

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

maybe /opt instead which allows grepping without "" :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

elif node.backfiller.inProgress:
"backfill: " & node.backfiller.syncStatus
elif node.dag.is_optimistic(node.dag.head.root):
elif optimistic_head:
Copy link
Member

Choose a reason for hiding this comment

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

maybe /opt instead which allows grepping without "" :)

@tersec tersec enabled auto-merge (squash) August 18, 2022 09:30
@tersec tersec merged commit 2f62567 into unstable Aug 18, 2022
@tersec tersec deleted the jm3 branch August 18, 2022 13:22
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.

None yet

2 participants