-
Notifications
You must be signed in to change notification settings - Fork 31
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): remove syscall_gas_costs from os_constans #2864
chore(blockifier): remove syscall_gas_costs from os_constans #2864
Conversation
43571e9
to
d5e0738
Compare
3c6c184
to
cbd78b0
Compare
8d3e3f2
to
01e61b3
Compare
cbd78b0
to
387ef7c
Compare
01e61b3
to
42fa457
Compare
387ef7c
to
5ae0664
Compare
cd9dca7
to
74046d7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dismissed @graphite-app[bot] from a discussion.
Reviewable status: 0 of 14 files reviewed, 1 unresolved discussion (waiting on @noaov1 and @Yonatan-Starkware)
crates/blockifier/src/execution/entry_point.rs
line 160 at r2 (raw file):
)); println!("remaining_gas: {}", remaining_gas);
remove before merge
Code quote:
println!("remaining_gas: {}", remaining_gas);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 9 of 10 files at r1, 5 of 5 files at r2, all commit messages.
Reviewable status: all files reviewed, 4 unresolved discussions (waiting on @noaov1 and @Yonatan-Starkware)
crates/blockifier/src/execution/execution_utils.rs
line 88 at r2 (raw file):
} update_remaining_gas(remaining_gas, &call_info); println!("here with remaining gas: {}", remaining_gas);
same
Code quote:
println!("here with remaining gas: {}", remaining_gas);
crates/blockifier/resources/versioned_constants_0_13_4.json
line 217 at r2 (raw file):
"builtin_instance_counter": {}, "n_memory_holes": 0 },
add this with 0 to all old versioned constans
Code quote:
"Keccak": {
"n_steps": 100,
"builtin_instance_counter": {},
"n_memory_holes": 0
},
crates/blockifier/src/execution/syscalls/syscall_tests/out_of_gas.rs
line 37 at r2 (raw file):
// 'Out of gas' retdata: retdata![felt!["0x4f7574206f6620676173"]], gas_consumed: REQUIRED_GAS_STORAGE_READ_WRITE_TEST ,
Why? I am just curious as to why it works without the 70 now
Code quote:
gas_consumed: REQUIRED_GAS_STORAGE_READ_WRITE_TEST
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: all files reviewed, 4 unresolved discussions (waiting on @noaov1 and @Yonatan-Starkware)
crates/blockifier/src/execution/syscalls/syscall_tests/out_of_gas.rs
line 37 at r2 (raw file):
// 'Out of gas' retdata: retdata![felt!["0x4f7574206f6620676173"]], gas_consumed: REQUIRED_GAS_STORAGE_READ_WRITE_TEST ,
please revert when you understand what makes the test fall
Code quote:
gas_consumed: REQUIRED_GAS_STORAGE_READ_WRITE_TEST
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 9 of 10 files at r1, 5 of 5 files at r2, all commit messages.
Reviewable status: all files reviewed, 5 unresolved discussions (waiting on @Yonatan-Starkware)
crates/blockifier/src/execution/deprecated_syscalls/mod.rs
line 111 at r2 (raw file):
b"GetTxSignature" => Ok(Self::GetTxSignature), b"Keccak" => Ok(Self::Keccak), b"KeccakRound" => Ok(Self::KeccakRound),
Please remove
Code quote:
b"KeccakRound" => Ok(Self::KeccakRound),
Previously, meship-starkware (Meshi Peled) wrote…
0 n_steps? |
3f2d271
to
380967f
Compare
74046d7
to
984a410
Compare
There was a problem hiding this 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 20 files reviewed, 5 unresolved discussions (waiting on @graphite-app[bot], @meship-starkware, and @noaov1)
crates/blockifier/src/execution/deprecated_syscalls/mod.rs
line 111 at r2 (raw file):
Previously, noaov1 (Noa Oved) wrote…
Please remove
Done.
984a410
to
057bee2
Compare
9e9eea0
to
7dd73e0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 4 files at r11, 2 of 2 files at r12, 1 of 1 files at r13, 4 of 4 files at r14, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @Yonatan-Starkware)
crates/blockifier/src/versioned_constants.rs
line 744 at r10 (raw file):
Previously, Yonatan-Starkware wrote…
just in the test.
I think it's better to remove it.
7dd73e0
to
00a9ce2
Compare
Previously, noaov1 (Noa Oved) wrote…
Done. |
There was a problem hiding this 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 r15, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @Yonatan-Starkware)
crates/blockifier/src/execution/syscalls/syscall_tests/out_of_gas.rs
line 22 at r15 (raw file):
use crate::versioned_constants::VersionedConstants; const SYSCALL_BASE_GAS_COST: u64 = 10000;
And then use:
let syscall_base_gas_cost = gas_costs.base.get_base_gas_cost(SYSCALL_BASE_GAS_COST);
Suggestion:
const SYSCALL_BASE_GAS_COST: &str = "syscall_base_gas_cost";
6f66dfd
to
9d03378
Compare
Previously, noaov1 (Noa Oved) wrote…
but we didn't impeled get_base_gas_cost. Should we? |
34237fd
to
e3700e9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 16 of 18 files at r16, 2 of 2 files at r17, 1 of 1 files at r18, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @Yonatan-Starkware)
crates/blockifier/src/execution/syscalls/syscall_tests/out_of_gas.rs
line 22 at r15 (raw file):
Previously, Yonatan-Starkware wrote…
but we didn't impeled get_base_gas_cost. Should we?
Yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 4 files at r11, 2 of 2 files at r12, 1 of 1 files at r13, 10 of 18 files at r16, 2 of 2 files at r17, 1 of 1 files at r18, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @Yonatan-Starkware)
Previously, noaov1 (Noa Oved) wrote…
Done. |
e3700e9
to
a47b870
Compare
There was a problem hiding this 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 r19, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @Yonatan-Starkware)
27b48b4
to
f9c5cc2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 5 of 18 files at r16, 3 of 3 files at r20, 1 of 1 files at r21, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @Yonatan-Starkware)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 2 files at r19, 1 of 3 files at r20, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @Yonatan-Starkware)
crates/blockifier/src/execution/syscalls/syscall_tests/out_of_gas.rs
line 43 at r21 (raw file):
// We hit the out of gas error right before executing the syscall. let syscall_base_gas_cost = gas_costs.base.get_base_gas_cost(SYSCALL_BASE_GAS_COST);
Will this work? If so, please remove get_base_gas_cost
.
Suggestion:
let syscall_base_gas_cost = gas_costs.base.syscall_base_gas_cost;
f9c5cc2
to
edc0aa0
Compare
Previously, noaov1 (Noa Oved) wrote…
works. Done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 3 files at r20, 2 of 2 files at r22, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @Yonatan-Starkware)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 3 files at r20, 1 of 1 files at r21.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @Yonatan-Starkware)
No description provided.