-
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
fix(sequencing): fix transactions serializtion #3149
Conversation
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 r1, all commit messages.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @dafnamatsry and @Yael-Starkware)
crates/sequencing/papyrus_consensus_orchestrator/resources/central_invoke_tx.json
line 18 at r1 (raw file):
"max_amount": "0x0", "max_price_per_unit": "0x0" },
Is no change needed in L1Handler
tx?
crates/sequencing/papyrus_consensus_orchestrator/src/cende/central_objects.rs
line 117 at r1 (raw file):
} }
Why not use a new type we defined instead of a map? As far as I know, it has the same serialization as a map.
crates/sequencing/papyrus_consensus_orchestrator/src/cende/central_objects.rs
line 145 at r1 (raw file):
pub fee_data_availability_mode: u32, pub hash_value: TransactionHash, }
Is there a reason for the order of the fields in a struct? If doesn't I think it will be better to save the order in all the transactions.
39da794
to
bdc1a8d
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: 3 of 4 files reviewed, 3 unresolved discussions (waiting on @dafnamatsry and @DvirYo-starkware)
crates/sequencing/papyrus_consensus_orchestrator/resources/central_invoke_tx.json
line 18 at r1 (raw file):
Previously, DvirYo-starkware wrote…
Is no change needed in
L1Handler
tx?
no, the L1handler collects fees on L1 with a different mechanism.
crates/sequencing/papyrus_consensus_orchestrator/src/cende/central_objects.rs
line 117 at r1 (raw file):
Previously, DvirYo-starkware wrote…
Why not use a new type we defined instead of a map? As far as I know, it has the same serialization as a map.
I was being consistent with the pythonic type definition - which is a mapping.
I can change it to be a struct if you think it's better.
crates/sequencing/papyrus_consensus_orchestrator/src/cende/central_objects.rs
line 145 at r1 (raw file):
Previously, DvirYo-starkware wrote…
Is there a reason for the order of the fields in a struct? If doesn't I think it will be better to save the order in all the transactions.
sure, will do in a separate PR. added a todo.
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 all commit messages.
Reviewable status: 3 of 4 files reviewed, 1 unresolved discussion (waiting on @dafnamatsry and @Yael-Starkware)
crates/sequencing/papyrus_consensus_orchestrator/src/cende/central_objects.rs
line 117 at r1 (raw file):
Previously, Yael-Starkware (YaelD) wrote…
I was being consistent with the pythonic type definition - which is a mapping.
I can change it to be a struct if you think it's better.
I think it will be better. We also do the same for transactions, as far as I remember.
bdc1a8d
to
8f85897
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: 3 of 4 files reviewed, 1 unresolved discussion (waiting on @dafnamatsry and @DvirYo-starkware)
crates/sequencing/papyrus_consensus_orchestrator/src/cende/central_objects.rs
line 117 at r1 (raw file):
Previously, DvirYo-starkware wrote…
I think it will be better. We also do the same for transactions, as far as I remember.
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 1 files at r3, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @dafnamatsry)
No description provided.