Skip to content

Removes start publication from checkpoint #111

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

Merged
merged 3 commits into from
May 8, 2025
Merged

Conversation

LeoPatOZ
Copy link
Collaborator

@LeoPatOZ LeoPatOZ commented Apr 25, 2025

As we have decided not to allow for parallel proving (i.e. proving publications not starting from the latest proven), we no longer should / need to accept 'start' checkpoint when proving a transition - it will always be the latest proven checkpoint.

Slightly more gas efficient

Im not sure if we need to check L238 in the prover manager

Copy link

github-actions bot commented Apr 25, 2025

Changes to gas cost

Generated at commit: 057d6183a276633b2392cd6bcb6c65fbc1aae835, compared to commit: 6d08743d2312340033442e3745582597c7041ff9

🧾 Summary (10% most significant diffs)

Contract Method Avg (+/-) %
CheckpointTracker proveTransition -499 ✅ -0.68%

Full diff report 👇
Contract Deployment Cost (+/-) Method Min (+/-) % Avg (+/-) % Median (+/-) % Max (+/-) % # Calls (+/-)
CheckpointTracker 814,040 (-95,792) proveTransition 73,175 (-499) -0.68% 73,175 (-499) -0.68% 73,175 (-499) -0.68% 73,175 (-499) -0.68% 1 (0)

@LeoPatOZ LeoPatOZ requested a review from ggonzalez94 April 25, 2025 08:18
@ggonzalez94
Copy link
Collaborator

ggonzalez94 commented May 8, 2025

@LeoPatOZ I made the changes we discussed yesterday so we can merge this PR.

  • The interface still has start as part of the proveTransition function so anyone can extend it with their own implementation
  • The implementation of CheckPointTracker does not use that parameter

Please take a quick look

@LeoPatOZ LeoPatOZ merged commit ab57d87 into main May 8, 2025
6 checks passed
@LeoPatOZ LeoPatOZ deleted the remove-start-checkpoint branch May 8, 2025 10:15
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