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(devnet): loosened devnet chain id restrictions #448

Merged
merged 3 commits into from
Jan 8, 2025
Merged

Conversation

Trantorian1
Copy link
Collaborator

Pull Request type

  • Bugfix

What is the current behavior?

Current restrictions around devnet chain id to avoid replay attacks do not make entire sense and are a bit too strict.

Resolves: #302

What is the new behavior?

Devnet chain id restrictions have been loosed to only forbid devnets with STARKNET_MAINNET or STARKNET_SEPOLIA chain ids. An additinal warning has been added to the README to warn agains such potential replay attacks

Does this introduce a breaking change?

No

@Trantorian1 Trantorian1 added bug Report an issue or unexpected behavior sequencer Related to the sequencing logic and implementation labels Dec 30, 2024
@Trantorian1 Trantorian1 self-assigned this Dec 30, 2024
crates/node/src/main.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@notlesh notlesh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems fine to me, but I'm wondering why this is a big deal.

If I spin up a dev chain and use some private keys, I should know not to reuse private keys that I'm using on some other chain, and this should be sufficient to prevent any replay attacks of any value, right? Is there more to it?

@antiyro antiyro merged commit 9290378 into main Jan 8, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Report an issue or unexpected behavior sequencer Related to the sequencing logic and implementation
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

bug(devnet): incorrect error message when chain id isn't devnet
5 participants