-
Notifications
You must be signed in to change notification settings - Fork 25
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: remove most fields from statful validator output #521
refactor: remove most fields from statful validator output #521
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @ArniStarkware and the rest of your teammates on Graphite |
9d9be32
to
8fd60c6
Compare
a8ce0d8
to
5725d13
Compare
8fd60c6
to
867299e
Compare
5725d13
to
2f2745a
Compare
867299e
to
c081dd8
Compare
2f2745a
to
bac9642
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 5 files reviewed, all discussions resolved (waiting on @ayeletstarkware, @dafnamatsry, @MohammadNassar1, @Yael-Starkware, and @yair-starkware)
crates/gateway/src/gateway.rs
line 139 at r1 (raw file):
let validator = stateful_tx_validator.instantiate_validator(state_reader_factory)?; // TODO(Yael 31/7/24): refactor after IntrnalTransaction is ready, delete validate_info and // compute all the info outside of run_validate.
This TODO is still relevant.
Code quote:
// TODO(Yael 31/7/24): refactor after IntrnalTransaction is ready, delete validate_info and
// compute all the info outside of run_validate.
crates/gateway/src/gateway.rs
line 147 at r1 (raw file):
account: Account { sender_address: executable_tx.contract_address(), state: AccountState { nonce: validate_info.account_nonce },
This member is different from executable_tx.nonce()
.
One is the nonce of the transaction, while the other is the account's nonce.
Code quote:
validate_info.account_nonce
c081dd8
to
7dcaf90
Compare
bac9642
to
c52bed8
Compare
7dcaf90
to
35f5961
Compare
c52bed8
to
7aa9597
Compare
35f5961
to
4b460e4
Compare
7aa9597
to
0262503
Compare
4b460e4
to
cc0e749
Compare
0262503
to
ad0f9b7
Compare
cc0e749
to
98da56f
Compare
ad0f9b7
to
3cb3f93
Compare
98da56f
to
f6daeea
Compare
1a4a07f
to
811ebb9
Compare
a52dd31
to
9f74ad3
Compare
Benchmark movements: |
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 4 of 4 files at r10, all commit messages.
Reviewable status: 4 of 5 files reviewed, 2 unresolved discussions (waiting on @ayeletstarkware, @MohammadNassar1, @Yael-Starkware, and @yair-starkware)
811ebb9
to
f159d01
Compare
9f74ad3
to
735383b
Compare
f159d01
to
1cd81f0
Compare
735383b
to
580522c
Compare
1cd81f0
to
728fd16
Compare
580522c
to
df73a6d
Compare
728fd16
to
c4e9a61
Compare
df73a6d
to
688ea10
Compare
c4e9a61
to
ae9880e
Compare
688ea10
to
e482c6d
Compare
Benchmark movements: |
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 r11, all commit messages.
Reviewable status: 4 of 5 files reviewed, 2 unresolved discussions (waiting on @ayeletstarkware, @MohammadNassar1, @Yael-Starkware, and @yair-starkware)
e482c6d
to
1e1fbc9
Compare
1e1fbc9
to
7e19e82
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 r10, 2 of 2 files at r11.
Reviewable status: 4 of 5 files reviewed, all discussions resolved (waiting on @ayeletstarkware, @dafnamatsry, @MohammadNassar1, and @Yael-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 r8.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @ayeletstarkware, @dafnamatsry, @MohammadNassar1, and @Yael-Starkware)
Merge activity
|
The struct
ValidateInfo
holds all the information relevant to the rest of the transaction's lifecycle from the run of the validate. Most of its members are no longer needed as they can be obtained from theExecutableTransaction
.This change is