-
Notifications
You must be signed in to change notification settings - Fork 28
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
feat(starknet_state_sync): implement state sync get latest block number #2944
Conversation
e25ec06
to
f6a1c07
Compare
dbe2a1a
to
fd1726a
Compare
f6a1c07
to
cd47438
Compare
fd1726a
to
7287611
Compare
cd47438
to
b4be593
Compare
This stack of pull requests is managed by Graphite. Learn more about stacking. |
7287611
to
04f0dbf
Compare
b4be593
to
7e525a8
Compare
04f0dbf
to
8c370b3
Compare
7e525a8
to
5000672
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 7 files reviewed, 1 unresolved discussion (waiting on @noamsp-starkware)
crates/starknet_gateway/src/stateful_transaction_validator.rs
line 138 at r1 (raw file):
let state_reader = state_reader_factory.get_state_reader_from_latest_block().map_err(|e| { error!("Failed to get state reader from latest block: {}", e); GatewaySpecError::UnexpectedError { data: "Internal server error.".to_owned() }
Check this with @alonh5
8c370b3
to
505f90d
Compare
5000672
to
b5f9e76
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 7 files reviewed, 1 unresolved discussion (waiting on @ShahakShama)
crates/starknet_gateway/src/stateful_transaction_validator.rs
line 138 at r1 (raw file):
Previously, ShahakShama wrote…
Check this with @alonh5
This is fine. Didn't review the rest.
505f90d
to
dc6c133
Compare
b5f9e76
to
a203295
Compare
dc6c133
to
74ae549
Compare
a203295
to
a8a8da2
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 7 files at r1, 2 of 2 files at r2, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @noamsp-starkware)
crates/starknet_gateway/src/sync_state_reader.rs
line 121 at r3 (raw file):
impl StateReaderFactory for SyncStateReaderFactory { fn get_state_reader_from_latest_block(&self) -> StateResult<Box<dyn MempoolStateReader>> {
No reason to use StateResult. You can use StateSyncResult instead
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, 1 unresolved discussion (waiting on @ShahakShama)
crates/starknet_gateway/src/sync_state_reader.rs
line 121 at r3 (raw file):
Previously, ShahakShama wrote…
No reason to use StateResult. You can use StateSyncResult instead
StateReaderFactory defines this return value.
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, 1 unresolved discussion (waiting on @noamsp-starkware)
crates/starknet_gateway/src/sync_state_reader.rs
line 121 at r3 (raw file):
Previously, noamsp-starkware wrote…
StateReaderFactory defines this return value.
This just means that I put the comment on the wrong file. Fix it where you define StateReaderFactory
a8a8da2
to
d3e4bca
Compare
Artifacts upload workflows: |
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: 2 of 8 files reviewed, 1 unresolved discussion (waiting on @alonh5 and @ShahakShama)
crates/starknet_gateway/src/sync_state_reader.rs
line 121 at r3 (raw file):
Previously, ShahakShama wrote…
This just means that I put the comment on the wrong file. Fix it where you define StateReaderFactory
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 6 of 6 files at r4, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @noamsp-starkware)
No description provided.