Skip to content

Bump blockifier to 0.14.0 #3416

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

Open
wants to merge 59 commits into
base: master
Choose a base branch
from
Open

Conversation

franciszekjob
Copy link
Contributor

@franciszekjob franciszekjob commented May 28, 2025

Towards #3174

Stack:

Introduced changes

Bump blockifier to v0.14.0

Checklist

  • Linked relevant issue
  • Updated relevant documentation
  • Added relevant tests
  • Performed self-review of the code
  • Added changes to CHANGELOG.md

@franciszekjob franciszekjob requested review from kkawula and ksew1 June 10, 2025 16:40
Copy link
Member

@cptartur cptartur left a comment

Choose a reason for hiding this comment

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

Looks good

if err_str.contains("error sending request for url") {
if err_str.contains("error sending request") {
Copy link
Member

Choose a reason for hiding this comment

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

We mostly throw these errors from ForkStateReader, I think it's unlikely it's coming from blockifier itself, it's not making any requests to the network.
It might be from reqwest or some other network related package maybe?

@@ -29,22 +29,22 @@ license = "MIT"
license-file = "LICENSE"

[workspace.dependencies]
blockifier = { git = "https://github.com/software-mansion-labs/sequencer.git", branch = "main-v0.13.5-modified-sierra-dep", default-features = false, features = ["testing", "tracing"] }
blockifier = { git = "https://github.com/starkware-libs/sequencer.git", branch = "main-v0.14.0", default-features = false, features = ["testing", "tracing"] }
Copy link
Member

Choose a reason for hiding this comment

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

Supposedly there has been an RC crates release for blockifier but it's quite old at this point. We should probably still track a branch and monitor releases.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yup, it's quite old.

Copy link
Member

Choose a reason for hiding this comment

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

Let's upgrade it once there's something not rc released.

Comment on lines 32 to 34
let syscall_gas_cost = syscall_gas_costs
.get_syscall_gas_cost(selector)
.expect("Failed to get syscall gas cost");
Copy link
Member

Choose a reason for hiding this comment

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

Let's both improve the error and test it with maat eventually.

Comment on lines +265 to +276
core::pedersen::pedersen(1, 2);
core::pedersen::pedersen(1, 2);
core::pedersen::pedersen(1, 2);
core::pedersen::pedersen(1, 2);
core::pedersen::pedersen(1, 2);
core::pedersen::pedersen(1, 2);
core::pedersen::pedersen(1, 2);
core::pedersen::pedersen(1, 2);
core::pedersen::pedersen(1, 2);
core::pedersen::pedersen(1, 2);
core::pedersen::pedersen(1, 2);
core::pedersen::pedersen(1, 2);
Copy link
Member

Choose a reason for hiding this comment

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

Did you link the correct comment? How are deprecated syscalls related to this?

) -> ProfilerDeprecatedSyscallSelector {
match value {
DeprecatedSyscallSelector::CallContract => ProfilerDeprecatedSyscallSelector::CallContract,
DeprecatedSyscallSelector::DelegateCall => ProfilerDeprecatedSyscallSelector::DelegateCall,
DeprecatedSyscallSelector::DelegateL1Handler => {
ProfilerDeprecatedSyscallSelector::DelegateL1Handler
}
DeprecatedSyscallSelector::Deploy => ProfilerDeprecatedSyscallSelector::Deploy,
DeprecatedSyscallSelector::Deploy | DeprecatedSyscallSelector::MetaTxV0 => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe let's add a separate arm for MetaTxV0 with a TODO comment?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually, I've added it as a variant of ProfilerDeprecatedSyscallSelector in cairo-aoontations, so should be fine now.

Copy link
Member

@cptartur cptartur left a comment

Choose a reason for hiding this comment

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

Didn't

@@ -29,22 +29,22 @@ license = "MIT"
license-file = "LICENSE"

[workspace.dependencies]
blockifier = { git = "https://github.com/software-mansion-labs/sequencer.git", branch = "main-v0.13.5-modified-sierra-dep", default-features = false, features = ["testing", "tracing"] }
blockifier = { git = "https://github.com/starkware-libs/sequencer.git", branch = "main-v0.14.0", default-features = false, features = ["testing", "tracing"] }
Copy link
Member

Choose a reason for hiding this comment

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

Let's upgrade it once there's something not rc released.

Comment on lines +265 to +276
core::pedersen::pedersen(1, 2);
core::pedersen::pedersen(1, 2);
core::pedersen::pedersen(1, 2);
core::pedersen::pedersen(1, 2);
core::pedersen::pedersen(1, 2);
core::pedersen::pedersen(1, 2);
core::pedersen::pedersen(1, 2);
core::pedersen::pedersen(1, 2);
core::pedersen::pedersen(1, 2);
core::pedersen::pedersen(1, 2);
core::pedersen::pedersen(1, 2);
core::pedersen::pedersen(1, 2);
Copy link
Member

Choose a reason for hiding this comment

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

Right, make sense. Steps are more expensive without these much repetitions of pedersen?

gas_consumed: u64,
) -> ProfilerExecutionResources {
let mut profiler_syscall_counter = HashMap::new();
Copy link
Member

@ksew1 ksew1 Jun 16, 2025

Choose a reason for hiding this comment

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

Please don't delete this it will be used in #3472

@ddoktorski ddoktorski mentioned this pull request Jun 16, 2025
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.

6 participants