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

chore(blockifier): add visited pcs trait to remove add visited pcs fr… #821

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

meship-starkware
Copy link
Contributor

@meship-starkware meship-starkware commented Sep 16, 2024

…om state API


This change is Reviewable

Copy link

codecov bot commented Sep 16, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 70.27%. Comparing base (b0cfe82) to head (e621c96).
Report is 51 commits behind head on main.

Files with missing lines Patch % Lines
crates/blockifier/src/state/state_api.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #821      +/-   ##
==========================================
- Coverage   74.18%   70.27%   -3.91%     
==========================================
  Files         359       87     -272     
  Lines       36240    11120   -25120     
  Branches    36240    11120   -25120     
==========================================
- Hits        26886     7815   -19071     
+ Misses       7220     2917    -4303     
+ Partials     2134      388    -1746     
Flag Coverage Δ
70.27% <0.00%> (-3.91%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor Author

@meship-starkware meship-starkware left a comment

Choose a reason for hiding this comment

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

Reviewable status: 0 of 2 files reviewed, 1 unresolved discussion (waiting on @noaov1)


crates/blockifier/src/state/state_api.rs line 107 at r1 (raw file):

    ) -> StateResult<()>;
}

I am not sure this trait should be here. Do we want to allow other full nodes to use this trait if they want to implement add_visited_pcs of their own?

Copy link
Collaborator

@noaov1 noaov1 left a comment

Choose a reason for hiding this comment

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

Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @meship-starkware)


crates/blockifier/src/state/state_api.rs line 107 at r1 (raw file):
Good point. I think it can stay in this file as it is only used by the State trait.
Do we have a test that uses a State other than the CachedState? (a state that does not implement the add_visited_pcs method)

Do we want to allow other full nodes to use this trait if they want to implement add_visited_pcs of their own?

WDYM?

@meship-starkware meship-starkware force-pushed the meship/blockifier/add_visited_pcs_trait branch from cf2831b to 07c1226 Compare September 24, 2024 14:13
@meship-starkware meship-starkware force-pushed the meship/blockifier/add_visited_pcs_trait branch from 07c1226 to e621c96 Compare September 24, 2024 14:32
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