Skip to content
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

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

Yael-Starkware
Copy link
Contributor

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@Yael-Starkware Yael-Starkware marked this pull request as ready for review January 7, 2025 07:40
Copy link
Contributor

@DvirYo-starkware DvirYo-starkware left a 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.

@Yael-Starkware Yael-Starkware force-pushed the yael/transaction_serialization_bugfix branch from 39da794 to bdc1a8d Compare January 7, 2025 10:58
Copy link
Contributor Author

@Yael-Starkware Yael-Starkware left a 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.

Copy link
Contributor

@DvirYo-starkware DvirYo-starkware left a 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.

@Yael-Starkware Yael-Starkware force-pushed the yael/transaction_serialization_bugfix branch from bdc1a8d to 8f85897 Compare January 7, 2025 12:49
Copy link
Contributor Author

@Yael-Starkware Yael-Starkware left a 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.

Copy link
Contributor

@DvirYo-starkware DvirYo-starkware left a 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: :shipit: complete! all files reviewed, all discussions resolved (waiting on @dafnamatsry)

@Yael-Starkware Yael-Starkware added this pull request to the merge queue Jan 7, 2025
Merged via the queue into main with commit 12e7766 Jan 7, 2025
14 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jan 9, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants