-
Notifications
You must be signed in to change notification settings - Fork 37
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
refactor: share the chain info as a config for the gateway #520
refactor: share the chain info as a config for the gateway #520
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @ArniStarkware and the rest of your teammates on |
9d9be32
to
8fd60c6
Compare
6a79105
to
caf0119
Compare
8fd60c6
to
867299e
Compare
caf0119
to
821aab8
Compare
867299e
to
c081dd8
Compare
821aab8
to
39149f1
Compare
39149f1
to
51cef37
Compare
c081dd8
to
7dcaf90
Compare
51cef37
to
e80ba45
Compare
7dcaf90
to
35f5961
Compare
e80ba45
to
afc98b9
Compare
35f5961
to
4b460e4
Compare
afc98b9
to
0307933
Compare
4b460e4
to
cc0e749
Compare
0307933
to
d6d49aa
Compare
cc0e749
to
98da56f
Compare
d6d49aa
to
3c381d8
Compare
98da56f
to
f6daeea
Compare
3c381d8
to
04dbb98
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #520 +/- ##
===========================================
- Coverage 74.18% 28.02% -46.16%
===========================================
Files 359 205 -154
Lines 36240 22162 -14078
Branches 36240 22162 -14078
===========================================
- Hits 26886 6212 -20674
- Misses 7220 15280 +8060
+ Partials 2134 670 -1464
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
f6daeea
to
081e3a9
Compare
04dbb98
to
bf0bc59
Compare
c795f11
to
6950008
Compare
728fd16
to
c4e9a61
Compare
6950008
to
cfc7945
Compare
c4e9a61
to
ae9880e
Compare
cfc7945
to
3c50e86
Compare
ae9880e
to
c7f9b7a
Compare
3c50e86
to
e1d1add
Compare
8b52b57
to
eebbf2e
Compare
9a77302
to
7df7bc3
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 6 files at r3, all commit messages.
Reviewable status: 2 of 7 files reviewed, 2 unresolved discussions (waiting on @ArniStarkware and @MohammadNassar1)
crates/gateway/src/stateful_transaction_validator_test.rs
line 58 at r3 (raw file):
validate_max_n_steps: block_context.versioned_constants().validate_max_n_steps, max_recursion_depth: block_context.versioned_constants().max_recursion_depth, },
Suggestion:
config: StatefulTransactionValidatorConfig::default()
crates/gateway/src/stateful_transaction_validator_test.rs
line 119 at r3 (raw file):
validate_max_n_steps: block_context.versioned_constants().validate_max_n_steps, max_recursion_depth: block_context.versioned_constants().max_recursion_depth, },
check if can use the fixture here
Suggestion:
config: StatefulTransactionValidatorConfig::default()
7df7bc3
to
2f22f2a
Compare
2f22f2a
to
0a62877
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, 2 unresolved discussions (waiting on @MohammadNassar1 and @Yael-Starkware)
crates/gateway/src/stateful_transaction_validator_test.rs
line 58 at r3 (raw file):
validate_max_n_steps: block_context.versioned_constants().validate_max_n_steps, max_recursion_depth: block_context.versioned_constants().max_recursion_depth, },
Done.
crates/gateway/src/stateful_transaction_validator_test.rs
line 119 at r3 (raw file):
Previously, Yael-Starkware (YaelD) wrote…
check if can use the fixture here
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 7 files at r2, 1 of 6 files at r3, 4 of 5 files at r4, all commit messages.
Reviewable status: 6 of 7 files reviewed, 1 unresolved discussion (waiting on @ArniStarkware and @MohammadNassar1)
crates/gateway/src/stateful_transaction_validator_test.rs
line 119 at r3 (raw file):
Previously, ArniStarkware (Arnon Hod) wrote…
Done.
so the fixture didn't work?
Previously, Yael-Starkware (YaelD) wrote…
It did. stateful_validator was removed. |
Previously, ArniStarkware (Arnon Hod) wrote…
stateful validator is now a fixture of the 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 1 of 5 files at r4.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @MohammadNassar1)
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:
complete! all files reviewed, all discussions resolved (waiting on @MohammadNassar1)
The
ChainInfo
is a part of the config that is relevant not only to the stateful validator but also to the conversionRpcTransaction
->ExecutableTransaction
. In this PR we move this config to be a part of theGatewayConfig
.This change is