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

✨ Cairo 1 Validation #25

Merged
merged 9 commits into from
Nov 7, 2023

Conversation

EvolveArt
Copy link
Collaborator

@EvolveArt EvolveArt commented Nov 6, 2023

Solves #7 #18 #19

This PR adds full support for v2.1.0 config.
It also adds multi-threaded validation of transactions which drastically speeds up the process. Note that we limit to 95 tasks because Madara prevents more than 100 simultaneous connections.
It also moves transactions' validation after building reports to not skew results.

It also fixes few bugs and cleans some code.

Next step will be adding multi-threading to send transactions. Weirdly, Cairo 1 accounts are like 10x slower than Cairo 0 accounts to send transactions which I haven't understood why yet. It could come from the execution encoding in starknet-rs which is the only thing that really changes apart from the class hash.

src/utils.rs Show resolved Hide resolved
src/actions/shoot.rs Show resolved Hide resolved
src/actions/shoot.rs Show resolved Hide resolved
src/actions/shoot.rs Outdated Show resolved Hide resolved
src/actions/shoot.rs Outdated Show resolved Hide resolved
@d-roak d-roak merged commit 0255b21 into keep-starknet-strange:main Nov 7, 2023
3 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Nov 9, 2023
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.

2 participants